[one-users] Cannot suspend or migrate/livemigrate a VM

Csom Gyula csom at interface.hu
Mon Jun 21 06:59:15 PDT 2010


Hi Daniele,

we are just testing live migration as well, with one of my colleagues. So far we
have discovered the following that might help you:

The built in ONE KVM driver [1] uses ssh libvirt transport [2], that is ONE calls
virsh by passing a qemu+ssh URI, something like this:

virsh -c qemu:///system migrate --live deployment_id qemu+ssh://dest_host/system

So one reason for the B->A failure could be the lack of SSH credentials at host B.
You might test whether oneadmin can ssh into host A from host B. If not you
may copy oneadmin's private key to host B or configure ssh agent.

If the above doesn't work you may debug libvirt [3] to see what's happening
behind the scenes. You may issue something like this on both hosts A and B:

sudo su -c "export LIBVIRT_DEBUG=1; export LIBVIRT_LOG_OUTPUTS=\"1:file:/tmp/libvirt.log\"; /etc/init.d/libvirt-bin restart"

Then check libvirt logs...

Cheers,
Gyula

---

[1] ONE KVM driver:
http://dev.opennebula.org/projects/opennebula/repository/revisions/master/entry/src/vmm_mad/kvm/one_vmm_kvm.rb

[2] libvirt transports: http://libvirt.org/remote.html#Remote_transports

[3] libvirt logging: http://libvirt.org/logging.html

________________________________
Feladó: users-bounces at lists.opennebula.org [users-bounces at lists.opennebula.org] ; meghatalmazó: Daniele Fetoni [daniele.fetoni at hotmail.it]
Küldve: 2010. június 21. 14:53
Címzett: tinova at fdi.ucm.es; users at lists.opennebula.org
Tárgy: Re: [one-users] Cannot suspend or migrate/livemigrate a VM

Hi Tino, and thanks for reply

I am still suffering this...and it's exactly as you said...from host A to B everything is OK, but if I try to restore the VM from B to A, (live)migration fails.
Sadly, I cannot see if I can migrate to C... we are using just few computer, two hosts and  a PC without VT as frontend.
As soon as I can prove this (I need another machine with VTs, we are using KVM) I'll tell you.
Thanks again!!!

Daniele

> From: tinova at fdi.ucm.es
> Date: Mon, 21 Jun 2010 13:16:09 +0200
> Subject: Re: [one-users] Cannot suspend or migrate/livemigrate a VM
> To: daniele.fetoni at hotmail.it
> CC: users at lists.opennebula.org
>
> Hi Daniele,
>
> Are you still suffering this? If I get you correctly, you cannot
> (live)migrate one VM more than once.
>
> * So you migrate one VM from hostA to hostB, that goes allright.
> * You migrate from hostB to hostA, and that fails
> * Can you migrate from hostB to hostC?
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez, Grid & Virtualization Technology
> Engineer/Researcher: http://www.dsa-research.org/tinova
> DSA Research Group: http://dsa-research.org
> Globus GridWay Metascheduler: http://www.GridWay.org
> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>
>
>
> On Fri, Jun 18, 2010 at 4:06 PM, Daniele Fetoni
> <daniele.fetoni at hotmail.it> wrote:
> > Maybe, I have solved my issue, but I still have one question.
> > Now I can migrate/livemigrate or suspend VMs, but I can do one of these
> > operations just ONE TIME: if I migrate a VM, then re-migrate to the first
> > host, I got error on qemu///session, because, qemu doesn't find the VM
> > domain.
> >
> > I wonder if this is normal, or I have still a problem.
> > If so, I'll report specific logs.
> >
> > Thanks again
> >
> > Daniele Fetoni
> >
> > ________________________________
> > From: daniele.fetoni at hotmail.it
> > To: users at lists.opennebula.org
> > Date: Fri, 18 Jun 2010 12:38:08 +0200
> > Subject: [one-users] Cannot suspend or migrate/livemigrate a VM
> >
> >
> > Hi
> >
> > I'm using opennebula 1.4, qemu-kvm and a nfs shared folder.
> > When I try to suspend a VM previously created and working, or even if I try
> > to migrate/livemigrate it, I obtain always the same error:
> >
> > Fri Jun 18 12:23:03 2010 [LCM][I]: New VM state is BOOT
> > Fri Jun 18 12:23:03 2010 [VMM][I]: Generating deployment file:
> > /srv/cloud/one/var/0/deployment.0
> > Fri Jun 18 12:23:04 2010 [LCM][I]: New VM state is RUNNING
> > Fri Jun 18 12:23:22 2010 [LCM][I]: New VM state is SAVE_SUSPEND
> > Fri Jun 18 12:23:23 2010 [VMM][I]: Command execution fail: 'touch
> > /srv/cloud/one/var/0/images/checkpoint;virsh --connect qemu:///system save
> > one-0 /srv/cloud/one/var/0/images/checkpoint'
> > Fri Jun 18 12:23:23 2010 [VMM][I]: STDERR follows.
> > Fri Jun 18 12:23:23 2010 [VMM][I]: error: Failed to save domain one-0 to
> > /srv/cloud/one/var/0/images/checkpoint
> > Fri Jun 18 12:23:23 2010 [VMM][I]: error: operation failed: failed to create
> > '/srv/cloud/one/var/0/images/checkpoint'
> > Fri Jun 18 12:23:23 2010 [VMM][I]: ExitCode: 1
> > Fri Jun 18 12:23:23 2010 [VMM][E]: Error saving VM state, -
> > Fri Jun 18 12:23:23 2010 [LCM][I]: Fail to save VM state. Assuming that the
> > VM is still RUNNING (will poll VM).
> > Fri Jun 18 12:23:23 2010 [VMM][I]: VM running but new state from monitor is
> > PAUSED.
> > Fri Jun 18 12:23:23 2010 [LCM][I]: VM is suspended.
> > Fri Jun 18 12:23:23 2010 [DiM][I]: New VM state is SUSPENDED
> >
> > I have seen in archives this is a common problem, but none of the threads I
> > read was helpful in my case.
> >
> > I think this is a permission problem, nebula cannot write che checkpoint,
> > but don't know how solve this (owning one location is not helpful, neither
> > change qemu///system to qemu///session)
> >
> > I can ssh passwordless all hosts from front end and viceversa.
> > I tried to use ssh instead of nfs, but there is the loop problem, as in
> > http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2009-May/000412.html
> >
> > How can I solve this????
> >
> > Thanks in advance
> >
> > Fetoni Daniele
> >
> > ________________________________
> > nome.cognome @... Verifica la disponibilità sui NUOVI domini
> > ________________________________
> > Un mondo di personalizzazioni per Messenger, PC e cellulare, scaricale
> > gratis!
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >

________________________________
Un mondo di personalizzazioni per Messenger, PC e cellulare, scaricale gratis!<http://www.pimpit.it/>



More information about the Users mailing list