วันอาทิตย์ที่ 7 มิถุนายน พ.ศ. 2552

[ VirtualBox ] share file between windows 7 ( in VM ) and ubuntu 9.04

Note that the following steps can also adapt to any OS in VM.

1) Windows 7 ( in VM )
1.1) Installed Guest Additions... using method here.

1.2) go to,
Devices > Shared Folders...

put <folder path> and <folder name>

1.3) go to windows 7 in VM.
execute
net use x: \\vboxsvr\<folder name in step 2>

2) Ubuntu 12.04 ( in VM )

2.1) Share Folder on VirtualBox
2.1.1) In VirtualBox, settings > Shared Folders > add
Folder path : [on local]
path: [on VM]
auto-mount : unchecked ( auto-mount does not work in my case, windows 7 + (virtual)ubuntu 12.04. I could see folder in /media/sf.. but could not see files inside folder. Therefore, manual mount method is below )
permanent : check ( this will be added under "Machine Folders" section of VirtualBox)
2.2) Manual mount on ubuntu
2.2.1) mount
$ mkdir ~/new
$ sudo mount -t vboxsf New ~/new
2.3) Auto mount when start machine
2.3.1) If we want auto mount when start machine, add this in /etc/fstab
New /home/user/new vboxsf defaults 0 0
NOTE :
We may need to add `vboxsf` to `/etc/modules` to run `vboxsf` on startup ( ref : http://askubuntu.com/questions/252853/how-to-mount-a-virtualbox-shared-folder-at-startup ) 

ref : http://askubuntu.com/questions/456400/why-cant-i-access-a-shared-folder-from-within-my-virtualbox-machine
, http://www.howtogeek.com/187703/how-to-access-folders-on-your-host-machine-from-an-ubuntu-virtual-machine-in-virtualbox/

3) VMWare with ubuntu
If you use [VMware] with ubuntu, follow this instructions

ไม่มีความคิดเห็น:

LinkWithin

Related Posts Plugin for WordPress, Blogger...