Score:3

Migrating Ubuntu 18.04 LTS from hyper-v to ESXi

cn flag

I'm trying to migrate a Ubuntu server 18.04 from hyper-v to VMWare VCenter 7.0.2. I found out after the fact that 18.04 is not supported by the VCenter converter 6.2. Is there anyway to successfully migrate this over from hyper-v? I tried running a repair of GRUB since that is the issue by the looks of it, but it does not work.

EDIT: Starwinds logs

4/7 8:51:12.819 43f4 Facility ???INFO: CV2V_ConverterApp::InitInstance: SetDllDirectory: C:\Program Files\StarWind Software\StarWind V2V Converter\lib
4/7 8:51:12.819 43f4 Facility ???INFO: CV2V_ConverterApp::InitInstance: File Version: 9.0.1.268
4/7 8:51:12.824 43f4 Facility ???INFO: CV2V_ConverterApp::InitInstance: Load language IDR_XML_ENGLISH
4/7 8:51:12.824 43f4 Facility ???INFO: CV2V_ConverterApp::InitInstance: Set current language English
4/7 8:51:12.827 43f4 Facility ???INFO: CPS_V2V_Converter::CPS_V2V_Converter: Version MajorVersion 10, MinorVersion 0, BuildNumber 19042
4/7 8:51:12.830 43f4 Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\Windows\system32\wbem\wmiutils.dll - c9c70000
4/7 8:51:12.831 43f4 Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\Windows\system32\wbem\wmiutils.dll - c9c70000
4/7 8:51:19.054 43f4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eHYPERVConnection
4/7 8:51:25.332 43f4 Facility ???INFO: WrapperHyperV::connect: Host - \\luciussextius\root\virtualization\v2
4/7 8:51:25.475 43f4 Facility ???INFO: WrapperHyperV::init_version: HyperV version: 6.3.9600
4/7 8:51:25.478 43f4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eInputVM
4/7 8:51:31.508 43f4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eLocationTo
4/7 8:51:33.492 43f4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eESXConnectionTo
4/7 8:51:50.747 43f4 Facility ???INFO: WrapperESXI::connect: m_url - https://10.16.0.99/sdk
4/7 8:51:50.805 43f4 Facility ???INFO: WrapperESXI::connect: fullName -  , key - 52e25633-51de-8f2c-4bdc-f1ea78518924
4/7 8:51:50.805 43f4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eVMSettingsESX
4/7 8:51:50.865 43f4 Facility ???INFO: VMConverter::ESXIConverter::GetHostListInfo: ESX version: 7.0.2
4/7 8:51:50.865 43f4 Facility ???INFO: VMConverter::ESXIConverter::GetHostListInfo: ESX version: 7.0.2
4/7 8:52:01.765 43f4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eConverting
4/7 8:52:01.779 51e8 Facility ???INFO: CPPConverting::Convert: InConvertType: 8, OutConvertType: 6
4/7 8:52:01.876 51e8 Facility ???INFO: VMConverter::ESXIConverter::CreateVM: createVM is false, 
4/7 8:52:01.876 51e8 Facility ???ERROR: CPPConverting::ConverterESX: Create VM error
4/7 8:52:01.882 51e8 Facility ???INFO: WrapperHyperV::connect: Host - \\luciussextius\root\virtualization\v2
4/7 8:52:01.949 51e8 Facility ???INFO: WrapperHyperV::init_version: HyperV version: 6.3.9600
4/7 8:52:01.952 51e8 Facility ???ERROR: CPPConverting::Convert: FAILED```
Score:3
gb flag

You can try using StarWind V2V Converter to migrate you Ubuntu 18.04 VM. I have just tested conversion of newly deployed Ubuntu 18.04 on Hyper-V to ESXi. No issues so far. Might help: https://www.starwindsoftware.com/starwind-v2v-converter

TL_Arwen avatar
cn flag
Does the VM have to be shutdown to do the conversion? I did a test with it on and it failed.
Stuka avatar
gb flag
You need to shutdown the VM to convert it.
TL_Arwen avatar
cn flag
This didn't work. Wouldn't even attempt to convert it. I even merged all the check points.
Stuka avatar
gb flag
Did you receive any error? I haven't faced any issue.
TL_Arwen avatar
cn flag
See my edit above to see logs.
Stuka avatar
gb flag
As far as I can see, it can't create VM. You can try converting VHDX of your VM to VMDK and then create new VM with this VMDK.
TL_Arwen avatar
cn flag
I did try that as well. It failed. I'm going to have to just do this all from scratch and copy the data over.
Score:1
gi flag

If the export from Hyper-V is an ova / ovf there should be no need for any extra converter.

Just make sure, you consolidate any existing snapshot, remove mounted devices, ISO etc. - Export the VM. And after successful export just import the new ovf / ova file.

If grub comes up, it means that the boot process was successful...for the first part, if it stops, any failure/error message would be needed to investigate.

But most of the time the problem is, that the fstab doesn't contain a UUID but just the /dev/sd name, which can be wrong because of new hardware settings or device order.

For example:
/dev/sda is the first detected disk of IDE/SATA/SCSI type. In this case, emulated(full virtualized) by the hypervisor.

/dev/vda is the first detected paravirtualizated disk driver. It is faster than emulated sdX devices if both are referred to the same disk, because there are less overhead in its operation compared to an emulated drive.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.