Hi Darcy,
on Mon, 01 Apr 2019 19:08:18 +0200 Darcy Boese writes:
> A client needs to migrate from a slightly older Ganeti deployment (using kvm
> machines) to vmware. I've set up a test machine on the Ganeti server and used
> the Ganeti tools to create the ova files ...
I have tried this too and ended up with my own solution. VMware calls
OVF/OVA Standard, but I think it's broken. Maybe ganetis ovfconverter, too.
So here are my steps:
* $ gnt-instance shutdown sample.vm.tld
* $ gnt-instance activate-disks sample.vm.tld
* for every disk of sample.vm.tld on its primary node:
$ qemu-img convert -p -t none -f raw -O vmdk -o adapter_type=lsilogic,compat6 ${src_dev} ${dest_path}/${vm}/disk_${idx}
* copy the VMDKs to ESX, or use shared NFS between Ganeti and ESX
* create a ESX-VM with CPU/RAM/HDDs from sample.vm.tld and import every disks data
$ vmkfstools --clonevirtualdisk ${src_path}/${vm}/disk_${idx} ${datastore}/${vm}/${disk}.vmdk -d thin -a pvscsi
This steps needs a two pass copy (qemu-img convert and vmkfstools). It seems
"clean" because you use VMDK-Format. However it seems also possible in
one/zero pass: If your ganeti VM is of disk template type sharedfile (NFS)
and you use the same NFS as Datastore in VMware, you just can copy or even
move the ganeti disks over *-flat VMDKs. The *-flat VMDKs are hidden from
vsphere GUI. It seems that this are just sparse data files, without
misplaced headers like adapter_type.
If your VMs are not sharedfile a single "qemu-img convert -f raw -O raw
${src_dev} /path/to/file" should produce, what can be reused over *-flat
VMDKs.
Just my 2¢, Sascha.