2011年2月28日星期一

迁移已有的 WinXP系统 到 VirtualBox 虚拟机中

From: http://blog.subaquatic.net/archives/virtualbox-p2v-success/

Steps:
  1. Get a copy of VMware Converter.  use the standalone version, and if you don’t have an enterprise agreement or license with them, you will need this version too.
  2. Install it.
  3. Run VMware Converter and convert the physical host that you installed it to. 
    I opted to write the conversion to an external USB drive, and it took about 2 hours to migrate a 37GB disk.  Converter opted for multiple .vmdk’s instead of one monolithic image.  In the past this is where we had to apply some black magic to get VirtualBox to work with a .vmdk.  With the new 2.1 series (this was tested on 2.1.2), VirtualBox is able to use vmdk’s.  With 2.1.2 (possibly earlier), it can deal with a sliced image making this processes extremely simple.
  4. Import the VMDK into VirtualBox.  Make sure that you grab the correct vmdk and not one of the slices.
  5. Create the new guest and attach the VMDK.
  6. In the setting configuration of the guest, make sure that you initially have the “IO APIC” selected.
  7. The machine should boot without a complaint but will run slowly due to IO APIC.
  8. In your new Windows guest, open up the device manager and update the driver for “ACPI Uniprocessor PC”.  Update the driver to use “Advanced Configutation and Power Interface (ACPI) PC” instead.
  9. Shutdown the guest and modify the settings and unselect the “IO APIC”.
  10. Startup the VM and enjoy a newly converted guest!
From: http://www.ubuntugeek.com/howto-convert-vmware-image-to-virtualbox-image.html

VirtualBox is a virtual emulator like VMWare workstation. It has many of the features VMWare has, as well as some of its own.

Note:- Before Converting make a backup copy of your vmware image

Solution 1
We are going to use qemu-img tool to this.QEMU disk image utility
First Install qemu  qemu-img is included with qemu package using the following command
sudo apt-get install qemu
Convert a VMWare Image to VirtualBox Image
Convert VMWare image called        debian.vmdk       to         /tmp/debian.bin
qemu-img convert debian.vmdk /tmp/debian.bin
Now use VBoxManage to get back image in native format:
VBoxManage convertdd /tmp/debian.bin debian.vdi
Solution 2
VirtualBox can run VMs created by VMware Workstation or Server for this you need to import vmdk files using the following procedure
  • Start Virtual Box
  • Goto File > Virtual Disk Manager
  • Click Add.  Locate and select the copied .vmdk file. Click OK.
  • Create a New VM as usual using the added vmdk file
  • oot the VM

没有评论:

发表评论