virt-v2v/tests/basic-test.sh

18 lines
664 B
Bash
Executable File

#!/bin/bash -
set -e
set -x
# This only makes sure that virt-v2v isn't totally broken.
# virt-v2v is extensively tested on real guests by the QE
# team using a mix of automated and manual testing.
# The various services exposed by the modular libvirt daemons are not
# immediately available / running after installing their packages (via the
# "libvirt-daemon-kvm" metapackage); we need to start them manually. The
# simplest command for starting them all is the one below, from
# <https://lists.corp.redhat.com/archives/osci-list/2023-June/001238.html>.
systemctl isolate multi-user.target
virt-builder -vx fedora-30
virt-v2v -vx -i disk fedora-30.img -o null