[ovirt-users] can't import vm from KVM host

Nelson Lameiras nelson.lameiras at lyra-network.com
Mon Sep 19 12:11:32 EDT 2016


Well I think I have a rather "classical" environment :

This is the test setup I created (from scratch) in order to simulate future migrations (which will be used to migrate our hundreds of vm in production)

On one side, I have a x86_64 centos7.2+KVM hosting one VM with 2 iscsi disks : 
  1 LVM block device /dev/mapper/vg_01-lv_sys, using virtio
  1 block device /dev/sdc, using virtio

on the other side, I have a x86_64 centos 7.2 oVirt cluster (2 hosts, same hardware as KVM hosts) installed with 4.0.3 oVirt (hosts and engine) fully upgraded to 4.0.4RC1 (hosts and engine)
Target would be oVirt iscsi Data Domain disk (which is irrelevant because the problem I'm describing arises before selecting oVirt target)

I'm using the GUI to test the native import capabilities of oVirt "Import VM"
When selecting KVM import, putting correct URL data (using either tcp or ssh transport), I get a list of VM machines running in the KVM cluster (for this exemple, only the one VM described above), but the disk count is always 0. Which makes it impossible to import the VM.

I should add that I made the same VM import using "local hard drives" (ie. local raw file) and it works as expected, I can see one or multiple disks and import them easily to oVirt. The problem seems to manifest itself only when importing disks using block devices directly.

Do you need more information from me, or make more tests?

thanks a lot,
nelson

----- Original Message -----
From: "Shahar Havivi" <shavivi at redhat.com>
To: "Nelson Lameiras" <nelson.lameiras at lyra-network.com>, "Nisim Simsolo" <nsimsolo at redhat.com>
Cc: users at ovirt.org
Sent: Sunday, September 18, 2016 9:24:13 AM
Subject: Re: [ovirt-users] can't import vm from KVM host

On 16.09.16 10:14, Nelson Lameiras wrote:
> I upgraded to oVirt 4.0.4 RC1 to test this issue (engine and hosts) and I still have the same problem.
> 
> Migration GUI still shows zero disks when the source VM had block disk devices.
Yes...
I was verify and merged to 4.0.4

Is your source and target block device (tested as well...)
What else can you tell us about your environment?

Nisim Any idea?

> 
> Can you confirm that the issue 1362525 has been integrated in this RC?
> Should I do some additional actions in order to see/make it work?
> 
> Thanks,
> Nelson
> 
> ----- Original Message -----
> From: "Shahar Havivi" <shavivi at redhat.com>
> To: "Nelson Lameiras" <nelson.lameiras at lyra-network.com>, "Nisim Simsolo" <nsimsolo at redhat.com>
> Cc: users at ovirt.org
> Sent: Sunday, August 28, 2016 8:45:48 AM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> On 25.08.16 11:32, Nelson Lameiras wrote:
> > Thanks for your answer. I do not think that I'm experiencing that same bug exactly.
> > 
> > The issue 1362525 (below) concerns a KVM VM with iSCSI disk being importend to RHEV that does not perform well.
> > 
> > In my case, when oVirt GUI proposes me the list of machines on KVM host to import, each machine as a "disk count" next to it.
> > - This "disk count" is correct if the VM has it's storage on a raw/qcow file (local) - and import goes well
> > - But "disk count" is 0 (always) if the VM has it's storage on a block device (ie iscsi) - and import is not possible at all!
> > 
> > It seems to me that current oVirt migration tool is unable to read/analyse distant VM machines with block device storage... Maybe I'm analysing this issue wrongly.
> Yes,
> This was the issue as well - seeing zero disks when the source VM had block disk devices.
> 
> Adding Nisim to verify it.
> 
> > 
> > Thanks,
> > nelson
> > ----- Original Message -----
> > From: "Shahar Havivi" <shavivi at redhat.com>
> > To: "Nelson Lameiras" <nelson.lameiras at lyra-network.com>
> > Cc: users at ovirt.org
> > Sent: Tuesday, August 23, 2016 12:19:13 PM
> > Subject: Re: [ovirt-users] can't import vm from KVM host
> > 
> > On 23.08.16 11:24, Nelson Lameiras wrote:
> > > Hello,
> > Hi,
> > 
> > We do have a bug on that issue:
> > https://bugzilla.redhat.com/show_bug.cgi?id=1362525
> > and its handled.
> > 
> > Thanks,
> >  Shahar.
> > > 
> > > I'm trying to import virtual machines from a KVM host (centos 7.2) to an oVirt 4.0.2 Cluster using the "import" feature on GUI.
> > > 
> > > If the original VM is using RAW/QCOW2 files as storage, everything works fine. 
> > > 
> > > But if the original VM is using a special block special device as storage (like a LVM or SAN volume), it's simply not recognized. 
> > > The VM does appear in the import list of the KVM host, but it's disk count is 0!
> > > 
> > > Is this a known technical obstacle or am I doing something wrong ?
> > > 
> > > below is the storage part of the xml describing the original VM :
> > > <disk type='block' device='disk'>
> > >   <driver name='qemu' type='raw' cache='none' io='native'/>
> > >   <source dev='/dev/mapper/vg_01-lv_sys'/>
> > >   <target dev='vda' bus='virtio'/>
> > >   <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
> > > </disk>
> > > <disk type='block' device='disk'>
> > >   <driver name='qemu' type='raw' cache='none' io='native'/>
> > >   <source dev='/dev/sdc'/>
> > >   <target dev='vdb' bus='virtio'/>
> > >   <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
> > > </disk>
> > > 
> > > We have hundreds of virtual machines in production with this type of configuration... How can we migrate them safely to oVirt?
> > > 
> > > thanks
> > > 
> > > Nelson
> > > _______________________________________________
> > > Users mailing list
> > > Users at ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/users


More information about the Users mailing list