Re: [ovirt-users] virt-v2v converting multi-disk
Hi - let's keep all replies on the mailing list so the information benefits everyone. On Sat, Mar 05, 2016 at 12:21:51PM -0600, Clint Boggio wrote: > 2. Ran your tool on the disk image with a destination of "." And > your tool put it directly in without having to use network > bandwidth. The tool in this case is "import-to-ovirt", I guess (since they already run on KVM it must be)? > This procedure works the best as the legacy KVM environment is > Ubuntu based and permissions problems keep me from massaging the > disk images while they live in the firm grip of sudo hell that is > Ubuntu. > How will your import tool react to my procedure, in terms of the > three disk images ? import-to-ovirt can handle multiple disk images. If the disk images are part of a single guest, then you should specify them all in one command line run, ie: sudo ./import-to-ovirt.pl disk1 disk2 disk3 mountpoint If the disk images are independent guests then you must run import-to-ovirt three times. > Will I have to run it on all three images ? > > Will the tool "see" that the second and third images are siblings of > the main first image I import and put them in the same place, > perhaps appending them to each other as one big disk ? No, you need to specify it by running import-to-ovirt once per guest. > Or will I have to run the tool on the first disk, then somehow add > the second two disks to the newly imported machine through the GUI ? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] virt-v2v converting multi-disk
On Mon, Feb 29, 2016 at 06:31:31PM -0600, Clint Boggio wrote: > > I've tried the -i libvirtxml method and it fails and I suspect it's > because the legacy KVM environment is Ubuntu based. Any tricks or > pointers would be appreciated. Run `virt-v2v -v -x -i libvirtxml [...]' and capture the complete output and post it somewhere. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] virt-v2v converting multi-disk
Thanks Rich for the clarification and thanks Moran for getting me to the right human :-) I'll be searching for the import feature tomorrow after I build out the main storage domain and the datacenter goes green. I REALLY appreciate all you guys do, and the help you provide. I've tried the -i libvirtxml method and it fails and I suspect it's because the legacy KVM environment is Ubuntu based. Any tricks or pointers would be appreciated. I typically scp the VM image file to the root of the export domain and use the -i method because of the limitation of Ubuntu. Thank you again > On Feb 29, 2016, at 6:24 AM, Richard W.M. Jones wrote: > >> On Mon, Feb 29, 2016 at 01:44:19PM +0200, Moran Goldboim wrote: >> +Richard, v2v maintainer. >> >>> On Sat, Feb 27, 2016 at 8:45 PM, Clint Boggio wrote: >>> >>> I'm in the process of migrating a series of VM's from KVM environment, to >>> an OVirt environment. I've used virt-v2v to convert quite a few M$ and >>> Linux machines with great success. > > You don't really need to use virt-v2v when the guest already runs on > KVM. The latest oVirt supports direct import of disk images, and > there is also my import script for older versions of oVirt which > didn't have this feature: > > http://git.annexia.org/?p=import-to-ovirt.git;a=summary > > -- > > Nevertheless I'll answer the rest of these questions because it's an > interesting topic for people importing from other hypervisors ... > >>> Coming up I've got to convert a Linux VM that has 3 virtual disks. Inside >>> that VM, the three disks are part of an LVM volume. >>> >>> 1. How will virt-v2v handle these three virtual disks ? > > Should just work. > >>> 2. On which disk image will I run virt-v2v ? > > On all 3 :-) Are you using `-i disk' input mode? That only supports a > single disk, but you can use `-i libvirtxml' mode instead, and then > you can specify as many input disks as you want: > > http://libguestfs.org/virt-v2v.1.html#minimal-xml-for--i-libvirtxml-option > >>> 3. Will virt-v2v "follow" the three images and convert the machine or will >>> I have to somehow tell it to include all three disks ? > > You always have to tell virt-v2v. > >>> 4. Shall I have all three images together in the same directory when I run >>> the tool ? > > With `-i libvirtxml' it doesn't matter. You specify the XML file, and > that contains references to the disks. > >>> 5. Is this the appropriate forum for this question ? > > Yup. > > Rich. > >>> As of the writing of this question I'll be using OVirt 3.6 updated on a 4 >>> node cluster running CentOS 7 , and the most recent version of virt-v2v as >>> is available on Fedora 23. >>> >>> ___ >>> Users mailing list >>> Users@ovirt.org >>> http://lists.ovirt.org/mailman/listinfo/users > > -- > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > virt-top is 'top' for virtual machines. Tiny program with many > powerful monitoring features, net stats, disk stats, logging, etc. > http://people.redhat.com/~rjones/virt-top ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] virt-v2v converting multi-disk
On Mon, Feb 29, 2016 at 01:44:19PM +0200, Moran Goldboim wrote: > +Richard, v2v maintainer. > > On Sat, Feb 27, 2016 at 8:45 PM, Clint Boggio wrote: > > > I'm in the process of migrating a series of VM's from KVM environment, to > > an OVirt environment. I've used virt-v2v to convert quite a few M$ and > > Linux machines with great success. You don't really need to use virt-v2v when the guest already runs on KVM. The latest oVirt supports direct import of disk images, and there is also my import script for older versions of oVirt which didn't have this feature: http://git.annexia.org/?p=import-to-ovirt.git;a=summary -- Nevertheless I'll answer the rest of these questions because it's an interesting topic for people importing from other hypervisors ... > > Coming up I've got to convert a Linux VM that has 3 virtual disks. Inside > > that VM, the three disks are part of an LVM volume. > > > > 1. How will virt-v2v handle these three virtual disks ? Should just work. > > 2. On which disk image will I run virt-v2v ? On all 3 :-) Are you using `-i disk' input mode? That only supports a single disk, but you can use `-i libvirtxml' mode instead, and then you can specify as many input disks as you want: http://libguestfs.org/virt-v2v.1.html#minimal-xml-for--i-libvirtxml-option > > 3. Will virt-v2v "follow" the three images and convert the machine or will > > I have to somehow tell it to include all three disks ? You always have to tell virt-v2v. > > 4. Shall I have all three images together in the same directory when I run > > the tool ? With `-i libvirtxml' it doesn't matter. You specify the XML file, and that contains references to the disks. > > 5. Is this the appropriate forum for this question ? Yup. Rich. > > As of the writing of this question I'll be using OVirt 3.6 updated on a 4 > > node cluster running CentOS 7 , and the most recent version of virt-v2v as > > is available on Fedora 23. > > > > ___ > > Users mailing list > > Users@ovirt.org > > http://lists.ovirt.org/mailman/listinfo/users > > -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] virt-v2v converting multi-disk
+Richard, v2v maintainer. On Sat, Feb 27, 2016 at 8:45 PM, Clint Boggio wrote: > I'm in the process of migrating a series of VM's from KVM environment, to > an OVirt environment. I've used virt-v2v to convert quite a few M$ and > Linux machines with great success. > > Coming up I've got to convert a Linux VM that has 3 virtual disks. Inside > that VM, the three disks are part of an LVM volume. > > 1. How will virt-v2v handle these three virtual disks ? > 2. On which disk image will I run virt-v2v ? > 3. Will virt-v2v "follow" the three images and convert the machine or will > I have to somehow tell it to include all three disks ? > 4. Shall I have all three images together in the same directory when I run > the tool ? > 5. Is this the appropriate forum for this question ? > > As of the writing of this question I'll be using OVirt 3.6 updated on a 4 > node cluster running CentOS 7 , and the most recent version of virt-v2v as > is available on Fedora 23. > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] virt-v2v converting multi-disk
I'm in the process of migrating a series of VM's from KVM environment, to an OVirt environment. I've used virt-v2v to convert quite a few M$ and Linux machines with great success. Coming up I've got to convert a Linux VM that has 3 virtual disks. Inside that VM, the three disks are part of an LVM volume. 1. How will virt-v2v handle these three virtual disks ? 2. On which disk image will I run virt-v2v ? 3. Will virt-v2v "follow" the three images and convert the machine or will I have to somehow tell it to include all three disks ? 4. Shall I have all three images together in the same directory when I run the tool ? 5. Is this the appropriate forum for this question ? As of the writing of this question I'll be using OVirt 3.6 updated on a 4 node cluster running CentOS 7 , and the most recent version of virt-v2v as is available on Fedora 23. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users