Issue while migrating window or ubuntu VM from VMware vcenter #10620
-
followed all the required steps mentioned in this document regarding the prerequisites for migrating VMs from "Import-Export Insatnce"section in cloudstackUI. Also since it was windows VM we had also install following tools on the KVM host. wget https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.noarch.rpm install “alien” which can convert rpms to debsapt -y install alien the conversion, can take a whilealien -d virtio-win.noarch.rpm install the resulting debdpkg -i virtio-win*.deb In addition to this, we need to install the below package as well to avoid the error “virt-v2v: error: One of rhsrvany.exe or pvvxsvc.exe is missing in /usr/share/virt-tools“. wget -nd -O srvany.rpm https://kojipkgs.fedoraproject.org//packages/mingw-srvany/1.1/4.fc38/noarch/mingw32-srvany-1.1-4.fc38.noarch.rpm alien -d srvany.rpm When installing virt-v2v on Ubuntu KVM hosts, the “nbdkit” package (which is required to convert VMware Instances) is not installed by default. To install it, execute the following command: apt install virt-v2v The OVF tool (ovftool) must be installed on the KVM hosts if the hosts should export VM files (OVF) from vCenter. If not, the management server exports them using internal java lib code. Download the ovftool from https://developer.broadcom.com/tools/open-virtualization-format-ovf-tool/latest unzip VMware-ovftool-4.6.3-24031167-lin.x86_64.zip -d /usr/local/ #create a soft link ln -s /usr/local/ovftool/ovftool /usr/local/bin/ovftool Error However we keep getting this error now. These are the agent.log outputs Windows VM. 2025-03-18 16:36:23,028 INFO [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (agentRequest-Handler-5:[]) (logid:1c3c47aa) Attempting to convert the instance Win-Sr-2022-Std-CloudStack from VMware to KVM Ubuntu VM 025-03-18 16:18:44,042 INFO [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (agentRequest-Handler-1:[]) (logid:81a64e31) Attempting to convert the instance ubuntutest from VMware to KVM |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Hi @verendrakalsi thanks for the detailed description. From your logs on the KVM host it seems that the root cause is the connectivity between the conversion KVM host and the vCenter and ESXi hosts.
Can you check the connectivity between them? |
Beta Was this translation helpful? Give feedback.
-
yes we have configured the communication between both the network and now we had moved forwarded but now whichever guest OS VM we try to migrate we get this permission denied error. And all the mount points are with "nobody nogroup" permission 2025-03-28 17:25:07,687 INFO [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (agentRequest-Handler-5:[]) (logid:ca57fdc5) Cleaning up temporary disk 5cb56dc9-6baf-4bea-af93-94055cfe1e62-sda after conversion from temporary location |
Beta Was this translation helpful? Give feedback.
-
Today, again i tried and got this error and the migration failed 2025-04-01 15:58:34,865 INFO [kvm.storage.LibvirtStorageAdaptor] (agentRequest-Handler-5:[]) (logid:a5187f7a) Attempting to remove storage pool c4b7aab4-b56d-349c-89d9-8c612bb0731d from libvirt |
Beta Was this translation helpful? Give feedback.
-
Uploading host04 - agent.log… However, now both ubuntu or Windows machines get migrated to the KVM hosts but unable to boot. Scraping through the logs, I cloud find these bootloader related errors. Going to update same details in the github issue as well. I will attached the agent log to the github issue. n_cloudstack/ progress) Can't locate Bootloader/Tools.pm in @inc (you may need to install the Bootloader::Tools module) (@inc entries checked: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.38.2 /usr/local/share/perl/5.38.2 /usr/lib/x86_64-linux-gnu/perl5/5.38 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.38 /usr/share/perl/5.38 /usr/local/lib/site_perl). |
Beta Was this translation helpful? Give feedback.
-
Conclusion: This is related to the EUFI=SECURE VM setting not being set automatically after VM was migrated - need to add it manually, then VM will boot fine. |
Beta Was this translation helpful? Give feedback.
Had the same issue just yesterday. Nobody:nogroup can origin from the nfs-export not having the no_root_squash option active (OR using nfsv4 with default domain-string, like in my case, see: #10841 )
Although activity here stopped a month ago, you (and others) might find this helpful.