5

I am trying to convert several VMware images towards Virtualbox images. I have succesfully been able to convert my Windows Server 2003 image, but I haven't been able to convert any Windows Server 2008 image.

I found 2 solutions on the internet.

One solution involves creating a new image giving the previous .vmdk as hard disk. When I try to startup the image, I get a blue screen during booting. (I also tried to delete VMware tools before importing the image, which didn't work).

The other solution involved exporting the image to an OVF image and then open it with Virtualbox. This image got stuck in the "windows is loading" screen.

Host OS: Windows 7 Enterprise Guest OS: Windows Server 2008

Bart Burg
  • 155
  • 1
  • 2
  • 7

4 Answers4

6

Stick with the first solution.

The HDD types need to match. If you were using SCSI on VMware you need to be using SCSI in VirtualBox. In rare occasions you actually need to experiment a bit with disk types (ie a SCSI VMware disk will work properly only on SATA controler in VirtualBox, go figure).

Another thing that causes instability and bootup problems are IO APIC and PAE/Nx settings under System. Experiment with those. It can take couple of boots till you get it right but so far I've never had a physical (or virtual) machine I couldn't get onto VirtualBox using VMware tools.

Bojan Markovic
  • 339
  • 3
  • 9
  • The virtual machine now boots up until "Loaded: \Windows\system32\driver\crcdisk.sys" (booting in safe mode). Does this mean I can presume the harddiks type is correct? – Bart Burg May 02 '12 at 12:27
  • Thank you, this did work! After a long boot, it worked. After the first boot, the boot time is normal. – Bart Burg May 08 '12 at 11:09
  • This worked for me as well. When you attach an existing vmdk disk to a Virtualbox machine, it defaults to SATA. You need to remove the disk from that controller, then add a SAS controller (LSI Logic), and then attach the disk to that controller. As Bart said above, the first boot will take extra long, but after that it will be fine. – Charles Burge Apr 09 '18 at 18:09
3

You need to delete the Disk controller, Add new SAS Controller and attach to it the Disk Image. It will work! ;)

I'Mike
  • 31
  • 1
1

I tried both versions mentioned in the question. Unfortunately neither of them worked. In the end, I was successfully able to migrate my VMware VM to VirtualBox using a third approach.

Important! First, I would like to mention that I did this only with test machines and never with a machine used in routine. I would not rely on a migrated VM for routine use.

I successfully migrated two Windows 2008 VMs using the following approach.

  1. Uninstall VMware tools

  2. Create a full clone of the VM to get a clean simple state without any snapshots. As a result, I have a VM with two virtual disk images, one single .vmdk file for each disk (C and D drive).

  3. Create a new VM in VirtualBox without disks (Do not add a virtual hard drive).

  4. Copy the virtual disk image files (vmdk) into the newly created VirtualBox VM folder. If you want, you can rename the disk files. I did that at this point, because, I wanted to have the disk type (C and D) reflected in the file name.

  5. In VMware the disks were connected with a virtual SCSI adapter. The SCSI controller from VirtualBox for some reasons did not work with the virtual disks I had.

  6. Therefore, I did open the settings of the just created VM, and added a IDE controller.

  7. Then, I did choose to add a hard disk, and selected choose existing disk and selected the .vmdk file representing the first disk of the VM. Because, I had two disks, I did repeat this step once for the second disk. You also need to pay attention which on is disk 1 and which one is disk 2. If the OS is on disk 2, the VM will not boot.

  8. Boot the VM. It should boot now. If Windows does not boot, because no BIOS, Windows, etc. found. Try to check, if your first disk is really the system disk.

  9. Install the VirtualBox guest add-ons.

If the two solutions mentioned in the questions do not work for you, you probably want to give this one a try. Good luck!

Simon
  • 11
  • 1
1

Thanks for information above - this is what worked for me for Windows 2003:

  1. Uninstall VMWare tools when booted in VMWare workstation (I didn't do this on first attempt and I had problems with some services not starting and I was unable to remove VMWare tools when booted under Virtual Box)

  2. Combined vmdk file into 1 file (as vmdk had been created with default of split into files of no more than 2GB). You can use vmware-vdiskmanager for this but I was running out of space on vmdk so I created a new bigger vmdk in VMWare workstation, then booted virtual machine using a Linux Live CD (I used Ubuntu 12.04) and did a dd from old disk to new disk and then I extended partition using gparted (on Linux Live CD) into the unused part of the bigger vmdk.

  3. Ticked "Enable IO APIC" for Extended Features on System-Motherboard on vbox virtual machine - without doing this, the virtual machine would start to boot, but never complete.

  4. I changed vmdk to be under SCSI controller and this is what is was under in VMWare, but I later changed it to under IDE (as Primary Master) and this also worked.

  5. Windows 2003 doesn't have a SAS driver and I wanted to be able to use SAS too, so I installed driver from http://www.lsi.com/products/io-controllers/pages/lsi-sas-1064.aspx

  6. Installed virtualbox additions - this resolved base system device driver which had a question mark in Device Manager and installed video driver which allows any resolution video screen which changes as you resize window.

Hope this helps other people.

Mike