LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 11-22-2009, 01:21 PM   #1
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 700

Rep: Reputation: 96
converting a windows xp VMware virtual host for use on VirtualBox


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:
Code:
VBoxManage list systemproperties
If you want to change the default directories:
Code:
VBoxManage setproperty hdfolder /path/to/vmxfiles
VBoxManage setproperty machinefolder /path/to/xmlfiles
Create the virtual machine:
Code:
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 the original
installation of Windows was on real hardware or a VMware host.
Otherwise it is not recommended.
Code:
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.
Code:
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
shortly.

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,
then reboot.

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.
Code:
nohup VBoxHeadless --startvm MyHost --vrdp=off >/tmp/MyHost.log 2>&1 &
 
Old 11-23-2009, 09:33 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
The latest version of VBox supports vmdk's out of the box.
You just point and click
 
Old 12-01-2009, 11:40 AM   #3
canyonbreeze
LQ Newbie
 
Registered: Apr 2009
Posts: 18

Rep: Reputation: Disabled
Keep in mind that when doing this Windows may think the 'hardware' appears sufficiently different that it will want to be reactivated. Each key has a limited number of activations. Run a copy of your virtual machine instead of the original in case you lose the activation.
 
Old 12-05-2009, 01:24 PM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 700

Original Poster
Rep: Reputation: 96
Quote:
Originally Posted by canyonbreeze View Post
Keep in mind that when doing this Windows may think the 'hardware' appears sufficiently different that it will want to be reactivated. Each key has a limited number of activations. Run a copy of your virtual machine instead of the original in case you lose the activation.
Actually I didn't have any issues with this. Since I was running
VirtualBox on the same computer I had been running VMware on and
I selected hardware that was identical, the hardware in the VM
didn't appear to change.

Even if it had, it's just a matter of re-activating Windows, which
isn't a problem. I do agree with your point about making a backup
first...to me that goes without saying.
 
Old 12-07-2009, 11:22 AM   #5
canyonbreeze
LQ Newbie
 
Registered: Apr 2009
Posts: 18

Rep: Reputation: Disabled
Quote:
Originally Posted by carltm View Post
Even if it had, it's just a matter of re-activating Windows, which isn't a problem.
I did have this happen. There are a limited number of times a Windows Key can be activated. Unfortunately when I switched it from VMWare to VBox I could no longer activate XP with the original key.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xen vs. VirtualBox vs. VMware. which is better for running several virtual machines? accend Linux - Server 3 05-06-2009 10:35 AM
How secure is windows XP running as a virtualBox guest on a Slackware 12.2 host garyg007 Slackware 6 03-30-2009 12:15 PM
VirtualBox Windows XP on Fedora 10 Host only display 8bit 640x480 :( manuleka Linux - Newbie 2 03-15-2009 02:58 PM
VirtualBox Raw Access, Windows Host, Linux Guest Guitarist88 Linux - Newbie 2 11-14-2008 05:41 PM
How to install Suse 9.0 via ftp "as a virtual machine(vmware)" in windows-XP host megoon Linux - Networking 0 12-15-2003 05:53 AM


All times are GMT -5. The time now is 06:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration