Environment:
XenServer 5.6 SP2
ESXi 5.1
Cause:
During the conversion, I uninstalled the XenServer tools. When I went to use VMConverter on the machine it couldn't find the disk due to drivers on the SCSI controller. So, I went to select a generic driver for the controller and low and behold, I selected the wrong one and rebooted. ACK Of course I was greeted by the BSOD.
Solution:
I could have just rebuilt the machine, but it was one of those pain machines (ie, reconfiguring it would be more painful then spending an hour seeing if I could fix it).
- Export from XenServer to XVA format
- I tried to export to OVF, but it would fail and after some quick looking on the citrix forums it looked like it would likely be easier to export to xva then convert to ovf
- XenConvert v2.3.1 (version 2.5 doesn't have the options necessary to do this)
- From = Xen Virtual Appliance
- To OVF
- This converts to OVF format which gives you 2 files, an OVF and a VHD
- WinImage v8.5 (http://www.winimage.com/download.htm)
- Disk dropdown
- Convert virtual hard disk image
- Select the OVF (vhd file)
- OK
- Type name and change save as type to vmdk
- When you click save the conversion starts
- At the end you don't need to mount it with winimage
- Create a new virtual machine using the datastore that you want.
- Edit the VM and delete the Hard Disk
- Browse the datastore and delete the vmdk file
- Veeam FastSCP (I used the older version)
- Copy the 2 files that WinImage created to the datastore VM Folder
- both are vmdk files. One will be large the other small. Both are required for this to work (otherwise when you add a hard disk in the next step it won't see it)
- Back in VMWare now
- Add hard disk
- Browse to the VMDK and select it
- Boot
- Login and install tools
- Restart
- Change the disk from IDE to SCSI
- In VMWare edit the VM and add a new hard disk of 1GB using SCSI (this pulls the controller into the image)
- Delete the disk you just created
- shutdown the VM
- Now we have to edit the vmdk, this can be done using vi, but I'm a windows guy so I used notepad++ on my workstation
- pull a copy of the small vmdk down to your local drive using Veeam FastSCP
- edit with notepad++
- modify the line "ddb.adapterType = "ide" change to "lsilogic"
- save and push the file back up to the datastore overwriting
- Delete the primary IDE hard disk
- Browse the datastore and delete the 1GB vmdk that we created earlier (for getting the LSI controller installed)
- Add new hard disk and point to the vmdk
- It will find it as SCSI / LSI Logic
- Note: if you have a CDROM, it will be IDE 0:1, so you'll want to delete it and re-add it so that it picks up IDE 0:0
- Boot
Your results may vary :)