Skip to content

Commit 8b19b59

Browse files
authored
added steps to install ovftool and virt-win on debian (#483)
1 parent 924fb17 commit 8b19b59

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

source/adminguide/virtual_machines/importing_vmware_vms_into_kvm.rst

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

2525
::
2626

27-
virtv2v.verbose.enabled=true
27+
dnf install virt-v2v
28+
29+
echo "virtv2v.verbose.enabled=true" >> /etc/cloudstack/agent/agent.properties
30+
31+
systemctl restart cloudstack-agent
2832

2933

3034
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 +66,57 @@ You can also install the RPM manually from https://fedorapeople.org/groups/virt/
6266

6367
For Debian-based distributions:
6468

69+
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:
70+
6571
::
6672

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

6997
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).
7098

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

0 commit comments

Comments
 (0)