From bc066c316759945045d5e0ee982f1f929ca4861b Mon Sep 17 00:00:00 2001 From: Kiran Chavala Date: Tue, 25 Feb 2025 14:32:31 +0530 Subject: [PATCH 1/4] added steps to install ovftool and virt-win on debian --- .../importing_vmware_vms_into_kvm.rst | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst b/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst index c8d6b1822f..fc05aa7cd8 100644 --- a/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst +++ b/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst @@ -24,7 +24,13 @@ The virt-v2v output (progress) is logged in the CloudStack agent logs, to help a :: + dnf install virt-v2v + + cat <> /etc/cloudstack/agent/agent.properties virtv2v.verbose.enabled=true + EOF + + systemctl restart cloudstack-agent Installing virt-v2v on Ubuntu KVM hosts does not install nbdkit which is required in the conversion of VMware VCenter guests. To install it, please execute: @@ -62,12 +68,57 @@ You can also install the RPM manually from https://fedorapeople.org/groups/virt/ For Debian-based distributions: +Ubuntu don’t seem to ship the virtio-win package with drivers, which causes virt-v2v not to convert the VMWare Windows guests to virtio profiles. This could result in slow IDE drives and Intel E1000 NICs. As a workaround, we can follow the below steps to install the package from the RPM on all KVM hosts running the virt-v2v: + :: apt install virtio-win (if the package is not available, then manual steps will be required to install the virtio drivers for windows) + + wget https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.noarch.rpm + + # install “alien” which can convert rpms to debs + apt -y install alien + + # the conversion, can take a while + alien -d virtio-win.noarch.rpm + + # install the resulting deb + dpkg -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 + + dpkg -i *srvany*.deb + The OVF tool (ovftool) must be installed on the destination KVM hosts if the hosts should export VM files (OVF) from vCenter. If not, the management server exports them (the management server doesn't require ovftool installed). +Steps to install ovftool + +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 + + #create a soft link + + ln -s /$HOME/ovftool/ovftool /usr/bin/ovftool + +If you are hitting the following error when running ovftool, install the dependecy + +./ovftool.bin: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory + + :: + + dnf install libnsl + + Usage ----- From 11edad861fc41f87026bfb0a8f4e1fc5b04fbd7a Mon Sep 17 00:00:00 2001 From: Kiran Chavala Date: Thu, 27 Feb 2025 11:19:36 +0530 Subject: [PATCH 2/4] changed the unzip path for ovftool --- .../virtual_machines/importing_vmware_vms_into_kvm.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst b/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst index fc05aa7cd8..53c5fe05d8 100644 --- a/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst +++ b/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst @@ -104,11 +104,11 @@ Download the ovftool from https://developer.broadcom.com/tools/open-virtualizati :: - unzip VMware-ovftool-4.6.3-24031167-lin.x86_64.zip + unzip VMware-ovftool-4.6.3-24031167-lin.x86_64.zip -d /usr/local/bin #create a soft link - ln -s /$HOME/ovftool/ovftool /usr/bin/ovftool + ln -s /usr/local/bin/ovftool/ovftool /usr/bin/ovftool If you are hitting the following error when running ovftool, install the dependecy From 7221ef6c0b6c1d1dc791b52131cf90ad1ed043d8 Mon Sep 17 00:00:00 2001 From: kiranchavala Date: Thu, 27 Feb 2025 14:53:46 +0530 Subject: [PATCH 3/4] Update source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst updated the zip path Co-authored-by: NuxRo --- .../virtual_machines/importing_vmware_vms_into_kvm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst b/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst index 53c5fe05d8..f05ca21e74 100644 --- a/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst +++ b/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst @@ -104,7 +104,7 @@ Download the ovftool from https://developer.broadcom.com/tools/open-virtualizati :: - unzip VMware-ovftool-4.6.3-24031167-lin.x86_64.zip -d /usr/local/bin + unzip VMware-ovftool-4.6.3-24031167-lin.x86_64.zip -d /usr/local/ #create a soft link From 3499c4eaac698616f125157bcef682e2f3879508 Mon Sep 17 00:00:00 2001 From: kiranchavala Date: Thu, 27 Feb 2025 14:54:00 +0530 Subject: [PATCH 4/4] Update source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst updated the soft link Co-authored-by: NuxRo --- .../virtual_machines/importing_vmware_vms_into_kvm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst b/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst index f05ca21e74..d62f19b30c 100644 --- a/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst +++ b/source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst @@ -108,7 +108,7 @@ Download the ovftool from https://developer.broadcom.com/tools/open-virtualizati #create a soft link - ln -s /usr/local/bin/ovftool/ovftool /usr/bin/ovftool + ln -s /usr/local/ovftool/ovftool /usr/local/bin/ovftool If you are hitting the following error when running ovftool, install the dependecy