Skip to content

Commit bc066c3

Browse files
committed
added steps to install ovftool and virt-win on debian
1 parent e42e70f commit bc066c3

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ The virt-v2v output (progress) is logged in the CloudStack agent logs, to help a
2424

2525
::
2626

27+
dnf install virt-v2v
28+
29+
cat <<EOF >> /etc/cloudstack/agent/agent.properties
2730
virtv2v.verbose.enabled=true
31+
EOF
32+
33+
systemctl restart cloudstack-agent
2834

2935

3036
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/
6268

6369
For Debian-based distributions:
6470

71+
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:
72+
6573
::
6674

6775
apt install virtio-win (if the package is not available, then manual steps will be required to install the virtio drivers for windows)
76+
77+
wget https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.noarch.rpm
78+
79+
# install “alien” which can convert rpms to debs
80+
apt -y install alien
81+
82+
# the conversion, can take a while
83+
alien -d virtio-win.noarch.rpm
84+
85+
# install the resulting deb
86+
dpkg -i virtio-win*.deb
87+
88+
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“.
89+
90+
::
91+
92+
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
93+
94+
alien -d srvany.rpm
95+
96+
dpkg -i *srvany*.deb
97+
6898

6999
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).
70100

101+
Steps to install ovftool
102+
103+
Download the ovftool from https://developer.broadcom.com/tools/open-virtualization-format-ovf-tool/latest
104+
105+
::
106+
107+
unzip VMware-ovftool-4.6.3-24031167-lin.x86_64.zip
108+
109+
#create a soft link
110+
111+
ln -s /$HOME/ovftool/ovftool /usr/bin/ovftool
112+
113+
If you are hitting the following error when running ovftool, install the dependecy
114+
115+
./ovftool.bin: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
116+
117+
::
118+
119+
dnf install libnsl
120+
121+
71122
Usage
72123
-----
73124

0 commit comments

Comments
 (0)