Archive for the ‘How-to’ Category

Accessing VirtualBox shared folder from Windows Server 2008 guest OS

July 15, 2009

If you need to access VirtualBox shared folders from a Windows Server 2008 guest OS, do not use the Network entry in Windows Explorer to map a network drive, since you will not be able to view the share.

The easiest way is to load the command line in Windows Server 2008, and assuming your VirtualBox shared folder is named sharename, execute the following command to map the shared folder to drive x.

net use x: \\vboxsvr\sharename

Copying / Cloning VirtualBox 3 vdi files

If you need to create a new copy of a VirtualBox machine, i.e. clone the machine, do not copy the vdi files directly. If you do so, when you try to add the hard disk using the Virtual Media Manager you will get an error that an existing hard disk is already mounted.

VirtualBox stores a unique identifier UUID, similar to a GUID, within each vdi file and if it matches the UUID of an already mounted hard disk it will not allow you to add the copied hard disk.

The proper way to do this is through the command line VBoxManage utility. Strangely enough cloning functionality although available through this utility is not yet integrated into the GUI.

Anyway, before you can clone a vdi file make sure that there are no snapshots associated or if you have you need to merge all changes before you continue.

Here I show how to use the VBoxManage utility from a Linux terminal, in this case Ubuntu distro. If your host OS is Windows read Cloning and Copying VirtualBox virtual machines.

In Linux all you need to do is load the terminal, go to the location where the vdi file you want to clone is stored, and then execute the following command:

VBoxManage clonehd "original hdd.vdi" "cloned hdd.vdi"

That is all there is to it. Note that this process can take up quite some time. It all depends on the size of the vdi file you want to clone and your physical hard drive speed.