Skip to content

Commit 4c251b2

Browse files
Update instructions for importing VMware VMs into KVM
Clarify installation instructions for virt-v2v and virtio drivers, including logging and error handling for Windows VMs.
1 parent 108a9a7 commit 4c251b2

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,22 @@ Requirements on the KVM hosts
1919
-----------------------------
2020

2121
The CloudStack agent does not install the virt-v2v binary as a dependency. The virt-v2v binary must be installed manually on KVM hosts, or the migration will fail.
22+
Newer versions of virt-v2v - v2.7.x on EL9, v2.4.x on Ubuntu 24.04 - are strongly advised. Older version of virt-v2v - e.g. v1.4.x should be avoided.
2223

2324
The virt-v2v output (progress) is logged in the CloudStack agent logs, to help administrators track the progress on the Instance conversion processes. The verbose mode for virt-v2v can be enabled by adding the following line to /etc/cloudstack/agent/agent.properties and restart cloudstack-agent:
2425

26+
EL variants:
27+
2528
::
2629

27-
dnf install virt-v2v
30+
dnf install virt-v2v / apt install virt-v2v
2831

2932
echo "virtv2v.verbose.enabled=true" >> /etc/cloudstack/agent/agent.properties
3033
3134
systemctl restart cloudstack-agent
3235

3336

34-
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:
37+
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:
3538

3639
::
3740

@@ -55,10 +58,9 @@ Ubuntu 22.04 LTS, 24.04 LTS
5558

5659
Importing Windows VMs from VMware requires installing the virtio drivers for Windows on the hypervisor hosts for the virt-v2v conversion.
5760
The Fedora-provided ``virtio-win`` RPM installs the drivers under ``/usr/share/virtio-win``, which is one of virt-v2v's
58-
default search paths.
61+
default search paths.
5962

6063
On EL-based hosts, including RHEL, Oracle Linux, Rocky Linux and Alma Linux, install the Fedora-provided RPM directly.
61-
The ``virtio-win`` package may not be available from the enabled distribution repositories on EL8 or EL9 hosts.
6264

6365
::
6466

@@ -68,32 +70,32 @@ The ``virtio-win`` package may not be available from the enabled distribution re
6870
ls -l /usr/share/virtio-win
6971

7072

71-
For Debian-based distributions:
72-
73-
Ubuntu does not always ship a ``virtio-win`` package with the Windows drivers, which causes virt-v2v not to convert
74-
the VMware Windows guests to virtio profiles. This can result in slow IDE drives and Intel E1000 NICs. As a workaround,
75-
download the Fedora RPM and convert it to a DEB on all KVM hosts running virt-v2v:
73+
For Debian-based distributions (alien is needed for conversion of .rpm to .deb pavckage:
7674

7775
::
7876

79-
apt -y install alien
8077
wget -O virtio-win.noarch.rpm https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.noarch.rpm
81-
78+
apt -y install alien
8279
alien -d virtio-win.noarch.rpm
80+
8381
dpkg -i virtio-win*.deb
8482
ls -l /usr/share/virtio-win
8583

86-
In addition to this, install the package below to avoid the error
87-
``virt-v2v: error: One of rhsrvany.exe or pvvxsvc.exe is missing in /usr/share/virt-tools``.
88-
84+
On some distros, the Windows helper binary "rhsrvany.exe" which is used for Windows firstboot scripts and some other actions might be missing.
85+
To avoid virt-v2v error like ``virt-v2v: error: One of rhsrvany.exe or pvvxsvc.exe is missing in /usr/share/virt-tools`` - check if the file exists (it's actually a symbolic link):
86+
``ls -la /usr/share/virt-tools/rhsrvany.exe``
87+
If the file does not exist - proceed with the commands below (EL8 and EL9 hosts usually already have this in place, so are not affected)
8988
::
90-
91-
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
92-
89+
90+
Ubuntu-based distros
91+
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
92+
[ -f /usr/bin/alien ] || apt -y install alien
9393
alien -d srvany.rpm
94-
9594
dpkg -i *srvany*.deb
96-
95+
mkdir -p /usr/share/virt-tools
96+
ln -sf /usr/i686-w64-mingw32/sys-root/mingw/bin/rhsrvany.exe /usr/share/virt-tools/rhsrvany.exe
97+
ln -sf /usr/i686-w64-mingw32/sys-root/mingw/bin/pnp_wait.exe /usr/share/virt-tools/pnp_wait.exe
98+
ls -la /usr/share/virt-tools/rhsrvany.exe
9799

98100
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).
99101

0 commit comments

Comments
 (0)