VirtualBox+linux

VirtualBox: access shared folders from Windows XP guest OS


September 28th, 2007
From the VirtualBox's menu, go to Devices → Shared Folders... to add/remove the folders of the host operating system that you would like to share with the guest operating system (Windows XP, in this example). When done click Ok.

Now we are going to access the folders we added. DO NOT open My Network Places! Instead open a new explorer instance. You can do that by pressing WinKey-E or by executing the explorer command (Start → Run... → type "explorer" → Ok). You should see a windows that looks like this:



Now, carefully click on the expand icon (expand icon) right next to My Network Places. Make sure you click exactly on the expand icon. If you accidentally clicked on My Network Places, you ruined everything and you will have to go back and start all over again. After expanding the My Network Places branch, you should be able to see Entire Network right underneath:


Now expand the Entire Network branch, too, and you should be able to see VirtualBox Shared Folders:




Open VirtualBox Shared Folders. Normally, you should be able to see your shared folders in there.




VirtualBox update to 4.0.4


VirtualBox has been moved from non-free to contrib with 4.0, so please adjust your repository settings.

Add one of the following lines according to your distribution to your /etc/apt/sources.list:


(Up to version 3.2 the packages were located in the non-free section, starting with version 4.0 are located in the contrib section)


ゲストOSでのUSB機器の利用


VirtualBoxのインストール後にホストOSを一度でも再起動したのならば,ゲストOSのUSBサポートは有効になっているはずです。VirtualBoxメニューの[デバイス]-[USBデバイス]の中から,ゲストOSに渡したいUSB機器を選択します。USBメモリを選択すると,ゲストOSのデスクトップにアイコンが現れ利用可能になります(図10)。

図10 USB機器を選択するとゲストOSで使えるようになる

図10 USB機器を選択するとゲストOSで使えるようになる
Ubuntu上でVirtualBoxを動かす

WindowsとUbuntuを共存させるためだけではなく、VirtualBoxは様々な状況で役に立ちます。ホスト OSをUbuntuとして,さらにUbuntuをゲストOSとして起動させると,実マシンに変更を加える前に,仮想マシンで実験して確かめるなどの検証環境として役立ちます。また,Ubuntuの開発版(alpha版やbeta版)などは仮想マシン内で動かすのが最適でしょう。

Ubuntu用のVirtualBoxはuniverseリポジトリに含まれていて,非常に簡単に使い始めることができます。ただし,Ubuntuのリポジトリから入手できるVirtualBoxはGPLv2でライセンスされているOpen Source Edition(OSE)と呼ばれるもので,VirtualBox PUELが適用されるバイナリ版(non-free版とも呼ばれる)と比べて,ゲストOSでのUSBサポートなどの機能が削られています(注5)。

注5
   詳しい違いはVirtualBoxのサイトを参照してください。

OSEをインストールする場合は,[アプリケーション]-[アクセサリ]-[端末]を開いて以下のコマンドを実行します(注6)。もちろんapt-getの代わりにSynapticで作業してもかまいません。
9.10の場合

$ sudo apt-get install virtualbox-ose virtualbox-guest-additions

9.04の場合

$ sudo apt-get install virtualbox-ose

注6
   virtualbox-guest-additionsはmultiverseリポジトリに含まれています。

インストールが終了したら[アプリケーション]-[アクセサリ]-[VirtualBox OSE]から起動します。

バイナリ版(non-free版)をインストールする場合は,端末で以下のコマンドを順に実行していきます。

まず,VirtualBoxのリポジトリを追加します。
9.10の場合

$ echo 'deb http://download.virtualbox.org/virtualbox/debian karmic non-free' | sudo tee /etc/apt/sources.list.d/virtualbox.list

9.04の場合

$ echo 'deb http://download.virtualbox.org/virtualbox/debian jaunty non-free' | sudo tee /etc/apt/sources.list.d/virtualbox.list

次に公開鍵を追加します。


続いて,インストールします。

$ sudo apt-get install virtualbox-3.0 dkms

インストールが終わったら,ゲストOSでのUSBサポートを有効化するために,[システム]-[システム管理]-[ユーザとグループ]を開きます。

画面下部に表示されている鍵アイコンをクリックしてパスワードを入力します(図11)。VirtualBoxを使用するユーザを選択して「プロパティ」をクリックします。

「ユーザの権限」タブで「VirtualBoxを使用できる」にチェックを入れます(図12)。

図11 鍵アイコンをクリックして,変更可能にする

図11 鍵アイコンをクリックして,変更可能にする

図12 「VirtualBoxを使用できる」にチェックを入れる

図12 「VirtualBoxを使用できる」にチェックを入れる

ここまでの作業を終えたら一度再起動します。

再起動後に[アプリケーション]-[システムツール]-[Sun VirtualBox]から起動すれば,ゲストOSでUSB機器が使用できるようになります。









end

タグ:

+ タグ編集
  • タグ:
最終更新:2011年04月12日 12:39
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。