Here is a quick guide to importing Windows XP virtual machines
created in VMware into a VirtualBox environment.
If possible, uninstall VMware-Tools from the virtual host
before shutting it down. You cannot uninstall VMware-Tools
from a Windows virtual host that is not running on VMware.
Stop VMware services and set it to not start automatically.
Or you can uninstall VMware. Just be certain that you will
not run VMware and VirtualBox at the same time.
Download and install VirtualBox.
To see the current settings:
VBoxManage list systemproperties
If you want to change the default directories:
VBoxManage setproperty hdfolder /path/to/vmxfiles
VBoxManage setproperty machinefolder /path/to/xmlfiles
Create the virtual machine:
VBoxManage -q createvm --register --name MyHost
VBoxManage -q modifyvm MyHost --memory 256 --boot1 disk --nic1 bridged
VBoxManage -q modifyvm MyHost --ostype WindowsXP
VBoxManage -q modifyvm MyHost --bridgeadapter1 eth0
VBoxManage -q modifyvm MyHost --hda /path/to/MyHost.vmdk
VBoxManage -q modifyvm MyHost --dvd /usr/share/virtualbox/VBoxGuestAdditions.iso
VBoxManage -q modifyvm MyHost --vrdpauthtype external
Note, the following command is required
to be run if
installation of Windows was on real hardware or a VMware host.
it is not recommended.
VBoxManage -q modifyvm MyHost --ioapic on
The first time you start the VM you will want access to the
console. You can only have access to single VM's console on
port 3389 of the server at a time. Make sure port 3389 is
available before running this.
VBoxHeadless --startvm MyHost
Use an RDP client such as rdesktop or MSTSC to connect to the
server. Be patient waiting for the mouse and keyboard to
respond. Windows needs to discover the new hardware. Cancel
any driver updates, since you will be installing new drivers
After Windows finishes setting up, browse to your cdrom drive
and run VBoxWindowsAdditions.exe if it doesn't start automatically.
If you hadn't uninstalled the VMware-Tools package, you'll need
to update the driver for the network card. Change it to the
"AMD PCNET Family" driver. If you use dhcp or limit access to
your network by MAC address, run ipconfig /all and note the
new MAC address. Update any required dhcp or network settings,
Now is the time to configure video mode and similar settings.
Set up and test remote access by RDP. Once you have it working,
shutdown the virtual host. From now on, use this command to
start the virtual host, which will leave port 3389 on the server
available for other VMs if needed.
nohup VBoxHeadless --startvm MyHost --vrdp=off >/tmp/MyHost.log 2>&1 &