Import KVM/libvirt VMs to oVirt

Hi list, finally I managed to install oVirt on my new server and so far it is really great. The next step on my side it to migrate VMs from another server (KVM/libvirtd/virt-manager) to oVirt. I was trying to find something in the documentation but so far no luck. Google was pointing me to tow options: - virt-v2v - import-to-ovirt.pl (script from Richard WM Jones) Currently I'm trying to migrate a Win7 VM (with VirtIO) with import_to_ovirt bzt I receive the following error message: ./import-to-ovirt.pl: no operating system was found on the disk I'm executing the following command: ./import-to-ovirt.pl /path-to-image-file/disk.img hostname:/export-domain Is anyone able to support me here? As both systems are running KVM there should be a quite easy way to migrate the VMs or not? Best regards Christoph

On Sun, Dec 20, 2015 at 12:13 PM, <ovirt@timmi.org> wrote:
Hi list,
finally I managed to install oVirt on my new server and so far it is really great.
The next step on my side it to migrate VMs from another server (KVM/libvirtd/virt-manager) to oVirt. I was trying to find something in the documentation but so far no luck.
Google was pointing me to tow options:
- virt-v2v - import-to-ovirt.pl (script from Richard WM Jones)
Currently I'm trying to migrate a Win7 VM (with VirtIO) with import_to_ovirt bzt I receive the following error message: ./import-to-ovirt.pl: no operating system was found on the disk
I'm executing the following command: ./import-to-ovirt.pl /path-to-image-file/disk.img hostname:/export-domain
Is anyone able to support me here? As both systems are running KVM there should be a quite easy way to migrate the VMs or not?
Adding Richard. IIRC people managed to do that by merely creating a new vm and copying the existing one over the new empty disk. No idea about details, you might want to search the list archives. Best, -- Didi

Hi, thank you for the quick response. Yes I can confirm that I'm also able to perform this through copying of the image but then you need to know the exact file name of the disk you need to overwrite. Is there a way to see the file name also in the oVirt admin portal? Best regards Christoph Am 20.12.2015 um 11:24 schrieb Yedidyah Bar David:
On Sun, Dec 20, 2015 at 12:13 PM, <ovirt@timmi.org> wrote:
Hi list,
finally I managed to install oVirt on my new server and so far it is really great.
The next step on my side it to migrate VMs from another server (KVM/libvirtd/virt-manager) to oVirt. I was trying to find something in the documentation but so far no luck.
Google was pointing me to tow options:
- virt-v2v - import-to-ovirt.pl (script from Richard WM Jones)
Currently I'm trying to migrate a Win7 VM (with VirtIO) with import_to_ovirt bzt I receive the following error message: ./import-to-ovirt.pl: no operating system was found on the disk
I'm executing the following command: ./import-to-ovirt.pl /path-to-image-file/disk.img hostname:/export-domain
Is anyone able to support me here? As both systems are running KVM there should be a quite easy way to migrate the VMs or not? Adding Richard.
IIRC people managed to do that by merely creating a new vm and copying the existing one over the new empty disk. No idea about details, you might want to search the list archives.
Best,

On Sun, Dec 20, 2015 at 12:59 PM, <ovirt@timmi.org> wrote:
Hi,
thank you for the quick response.
Yes I can confirm that I'm also able to perform this through copying of the image but then you need to know the exact file name of the disk you need to overwrite.
Is there a way to see the file name also in the oVirt admin portal?
If you check the "Disks" tab, you'll see there an ID tab. For nfs/qcow, that's a directory name to be found under 'images' inside the storage domain. Under this directory you'll find several files (data, metadata and lease) per each snapshot of this disk. Not sure any of this is documented and/or intended for direct manipulation. Best,
Best regards Christoph
Am 20.12.2015 um 11:24 schrieb Yedidyah Bar David:
On Sun, Dec 20, 2015 at 12:13 PM, <ovirt@timmi.org> wrote:
Hi list,
finally I managed to install oVirt on my new server and so far it is really great.
The next step on my side it to migrate VMs from another server (KVM/libvirtd/virt-manager) to oVirt. I was trying to find something in the documentation but so far no luck.
Google was pointing me to tow options:
- virt-v2v - import-to-ovirt.pl (script from Richard WM Jones)
Currently I'm trying to migrate a Win7 VM (with VirtIO) with import_to_ovirt bzt I receive the following error message: ./import-to-ovirt.pl: no operating system was found on the disk
I'm executing the following command: ./import-to-ovirt.pl /path-to-image-file/disk.img hostname:/export-domain
Is anyone able to support me here? As both systems are running KVM there should be a quite easy way to migrate the VMs or not?
Adding Richard.
IIRC people managed to do that by merely creating a new vm and copying the existing one over the new empty disk. No idea about details, you might want to search the list archives.
Best,
-- Didi

got it. Thank you so much. Am 20.12.2015 um 12:19 schrieb Yedidyah Bar David:
On Sun, Dec 20, 2015 at 12:59 PM, <ovirt@timmi.org> wrote:
Hi,
thank you for the quick response.
Yes I can confirm that I'm also able to perform this through copying of the image but then you need to know the exact file name of the disk you need to overwrite.
Is there a way to see the file name also in the oVirt admin portal? If you check the "Disks" tab, you'll see there an ID tab.
For nfs/qcow, that's a directory name to be found under 'images' inside the storage domain. Under this directory you'll find several files (data, metadata and lease) per each snapshot of this disk. Not sure any of this is documented and/or intended for direct manipulation.
Best,
Best regards Christoph
Am 20.12.2015 um 11:24 schrieb Yedidyah Bar David:
On Sun, Dec 20, 2015 at 12:13 PM, <ovirt@timmi.org> wrote:
Hi list,
finally I managed to install oVirt on my new server and so far it is really great.
The next step on my side it to migrate VMs from another server (KVM/libvirtd/virt-manager) to oVirt. I was trying to find something in the documentation but so far no luck.
Google was pointing me to tow options:
- virt-v2v - import-to-ovirt.pl (script from Richard WM Jones)
Currently I'm trying to migrate a Win7 VM (with VirtIO) with import_to_ovirt bzt I receive the following error message: ./import-to-ovirt.pl: no operating system was found on the disk
I'm executing the following command: ./import-to-ovirt.pl /path-to-image-file/disk.img hostname:/export-domain
Is anyone able to support me here? As both systems are running KVM there should be a quite easy way to migrate the VMs or not? Adding Richard.
IIRC people managed to do that by merely creating a new vm and copying the existing one over the new empty disk. No idea about details, you might want to search the list archives.
Best,

On Sun, Dec 20, 2015 at 12:24:08PM +0200, Yedidyah Bar David wrote:
On Sun, Dec 20, 2015 at 12:13 PM, <ovirt@timmi.org> wrote:
Hi list,
finally I managed to install oVirt on my new server and so far it is really great.
The next step on my side it to migrate VMs from another server (KVM/libvirtd/virt-manager) to oVirt. I was trying to find something in the documentation but so far no luck.
Google was pointing me to tow options:
- virt-v2v - import-to-ovirt.pl (script from Richard WM Jones)
Currently I'm trying to migrate a Win7 VM (with VirtIO) with import_to_ovirt bzt I receive the following error message: ./import-to-ovirt.pl: no operating system was found on the disk
The error means libguestfs doesn't think there is anything on your source disk (disk.img), eg it is blank or there is no detectable operating system on it. Do: export LIBGUESTFS_DEBUG=1 export LIBGUESTFS_TRACE=1 ./import-to-ovirt.pl [....] and capture the full output. From that output it is possible to work out why inspection of the source disk failed. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW

Hi Richard, please find the output in the attachment. Best regards and thank you for your support Christoph Am 20.12.2015 um 12:51 schrieb Richard W.M. Jones:
On Sun, Dec 20, 2015 at 12:13 PM, <ovirt@timmi.org> wrote:
Hi list,
finally I managed to install oVirt on my new server and so far it is really great.
The next step on my side it to migrate VMs from another server (KVM/libvirtd/virt-manager) to oVirt. I was trying to find something in the documentation but so far no luck.
Google was pointing me to tow options:
- virt-v2v - import-to-ovirt.pl (script from Richard WM Jones)
Currently I'm trying to migrate a Win7 VM (with VirtIO) with import_to_ovirt bzt I receive the following error message: ./import-to-ovirt.pl: no operating system was found on the disk The error means libguestfs doesn't think there is anything on your
On Sun, Dec 20, 2015 at 12:24:08PM +0200, Yedidyah Bar David wrote: source disk (disk.img), eg it is blank or there is no detectable operating system on it.
Do:
export LIBGUESTFS_DEBUG=1 export LIBGUESTFS_TRACE=1 ./import-to-ovirt.pl [....]
and capture the full output. From that output it is possible to work out why inspection of the source disk failed.
Rich.

On Sun, Dec 20, 2015 at 02:05:30PM +0100, ovirt@timmi.org wrote:
./import-to-ovirt.pl: no operating system was found on the disk
Looks like you need to install either libguestfs-winsupport (assuming the host is RHEL/CentOS), because this is required to process any Windows disk images. libguestfs-winsupport can be found here for RHEL < 7.2: https://people.redhat.com/~rjones/libguestfs-winsupport/ and is included in the base OS in RHEL >= 7.2. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/

Hi Rich, the host is a CentOS (latest). libguestfs-winsupport root@lxedna import-to-ovirt-7edfc4e]# rpm -qa | grep -i libguestfs-winsupport libguestfs-winsupport-7.2-1.el7.x86_64 Best regards Christoph Am 20.12.2015 um 14:12 schrieb Richard W.M. Jones:
./import-to-ovirt.pl: no operating system was found on the disk Looks like you need to install either libguestfs-winsupport (assuming
On Sun, Dec 20, 2015 at 02:05:30PM +0100, ovirt@timmi.org wrote: the host is RHEL/CentOS), because this is required to process any Windows disk images.
libguestfs-winsupport can be found here for RHEL < 7.2:
https://people.redhat.com/~rjones/libguestfs-winsupport/
and is included in the base OS in RHEL >= 7.2.
Rich.

On Sun, Dec 20, 2015 at 02:15:21PM +0100, ovirt@timmi.org wrote:
Hi Rich,
the host is a CentOS (latest).
libguestfs-winsupport
root@lxedna import-to-ovirt-7edfc4e]# rpm -qa | grep -i libguestfs-winsupport libguestfs-winsupport-7.2-1.el7.x86_64
Right, sorry, that's a bug in import-to-ovirt. I've just pushed a fix to the git repo. Thanks for your patience! Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/

Hi Rich, wow that was fast!!! This is working great!!!! Best regards and merry Christmas Christoph Am 20.12.2015 um 18:02 schrieb Richard W.M. Jones:
On Sun, Dec 20, 2015 at 02:15:21PM +0100, ovirt@timmi.org wrote:
Hi Rich,
the host is a CentOS (latest).
libguestfs-winsupport
root@lxedna import-to-ovirt-7edfc4e]# rpm -qa | grep -i libguestfs-winsupport libguestfs-winsupport-7.2-1.el7.x86_64 Right, sorry, that's a bug in import-to-ovirt. I've just pushed a fix to the git repo.
Thanks for your patience!
Rich.
participants (3)
-
ovirt@timmi.org
-
Richard W.M. Jones
-
Yedidyah Bar David