- VirtualBox メニューの [デバイス] > [共有フォルダー設定]
- Windows (Host OS) に共有フォルダーを作成する (ユーザー\vbox_share)
- フォルダ追加アイコンを押す
- フォルダーのパス = 2. で作成したフォルダ
自動マウント = On
永続化する = On - マウントする
# mkdir /mnt/vbox_share # mount -t vboxsf vbox_share /mnt/vbox_share
- 動作確認
- Windows 側の vbox_share フォルダにファイルを置く
- CentOS で /mnt/vbox_share の中身を確認する
$ ls /mnt/vbox_share test.txt
- 起動時に自動マウントするように /etc/rc.local にマウントコマンドを追記する(★が追記箇所)
#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local mount -t vboxsf vbox_share /mnt/vbox_share ★
2015年4月23日木曜日
[CentOS][VirtualBox]共有フォルダー作成
[CentOS][VirtualBox]GNOME インストール
- インストール & 起動
# yum groupinstall "X Window System" "GNOME Desktop Environment" "Desktop" $ startx
- GNOME インストール前に Guest Additions をインストールしていると X Window system 関連のインストールがスキップされているので、再インストールする
- GNOME terminal のフォントがずれているので修正する
【修正前】

【修正後】

DejaVu Sans Mono フォントをインストールする# yum -y install dejavu-sans-mono-fonts
[CentOS][VirtualBox]ifconfig を実行すると eth0 が起動していない
- 起動時の設定ファイル /etc/sysconfig/network-scripts/ifcfg-eth0 を修正する
【変更前】ONBOOT=no
【変更後】ONBOOT=yes
- ネットワークを再設定
# /etc/inet.d/network restart
登録:
投稿 (Atom)