Need help with migrating a virtual machine from VMware to KVM #10984
-
Hi everyone! I need to migrate a Windows virtual machine from a remote data center. I initially tried using qemu-img for the conversion because I don’t have direct access to vCenter. Linux VMs migrated from this datacenter, started without any issues, but the Windows VM shows ‘No bootable device’. I pre-installed the virt-io drivers in guest OS beforehand. I’ve tried changing the rootDiskController to ide and scsi, but without success. I also tried running bootrec /rebuildbcd, but that didn’t work either. I am using: I would appreciatу any assistance in resolving this problem. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi @SviridoffA Can you try with NFS as primary storage (and then try migrating the volume to Linstor if it's supported) ? |
Beta Was this translation helpful? Give feedback.
-
@SviridoffA CloudStack's Import tool requires NFS or local primary storage for VMware to KVM migration. Regarding issues starting the VMs converted using qemu-img, could you check whether the boot type needs to be updated to UEFI to match the source VM? |
Beta Was this translation helpful? Give feedback.
-
Hi guys! @rajujith and @sureshanaparti Thank you for your replies. As I understand from your replies, the Import tool does not support Linstor. Thank you for that information. To use NFS, it seems I would likely need to deploy another CloudStack cluster; I’ll consider this. Because I dont wont to introduce another primary storage into the current cluster. Regarding the disk conversion using qemu-img, I haven’t been successful thus far. I’ve attempted to set the VM’s UEFI parameter to LEGACY and SECURE modes, while also experimenting with various controller types (IDE, SCSI, VIRTIO). I’ve also tried set up OS type to Windows PV, but unfortunately, without any success. I’ve also attempted to convert the disk using StarWind, but I’m still encountering the “No bootable device” error.” |
Beta Was this translation helpful? Give feedback.
-
Guys, thank you everyone for your assistance. I successfully migrated the virtual machine. I’m using Ubuntu on the KVM hosts, and OVMF was already installed. I created a file /etc/cloudstack/agent/uefi.properties and configured it with:
configured VM with: UEFI - secure, controller - virtio after this I get BSOD - inaccessible boot device
After this I'm able to boot my VM without any problem. |
Beta Was this translation helpful? Give feedback.
Regarding the
No bootable device
error: just making sure, did you configure UEFI support in your KVM hosts? (i.e installovmf
and create/etc/cloudstack/agent/uefi.properties
)