Virtualbox
Virtualbox allows you to run a VM for Linux, Windows or anything else.
Getting Shared Folders working
- Guest OS: Ubuntu 12.04
- Host OS: Windows 7 x64
-
Set up a new folder in Windows e.g.
C:\vm
which will be used to host the shared folder -
Configure the Guest Folder in the Virtualbox UI through Machine > Settings… > Shared Folders and create:
- Type: Machine folder
- Folder path:
C:\vm
- Folder name:
vm
- Auto-mount, make permanent
-
Mount the Guest Additions CD in the Virtualbox UI through Devices > Insert Guest Additions CD Image…
-
Install the Linux Guest Additions from your Linux terminal (as
root
):
mount /dev/cdrom /mnt # or any other mountpoint
cd /mnt
./VBoxLinuxAdditions.run
reboot
- You should now have a new system path
/media/sf_vm
but you won’t be able to access it except asroot
. You need to add your user ID to thevboxsf
user group:
usermod -a -G vboxsf jevon
id jevon # list groups
-
Finally, you need to restart your SSH session so that the new groups can be picked up.
-
Optionally, create a symlink to the media folder so it’s easier to find:
ln -s /media/sf_vm ~/vm