Skip to content

added steps to install ovftool and virt-win on debian #483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ The virt-v2v output (progress) is logged in the CloudStack agent logs, to help a

::

dnf install virt-v2v

cat <<EOF >> /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:
Expand Down Expand Up @@ -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 -d /usr/local/

#create a soft link

ln -s /usr/local/ovftool/ovftool /usr/local/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
-----

Expand Down