Ask Your Question
1

live-migration with qemu is possible?

asked 2014-02-14 12:29:54 -0500

outrosdiasvirao gravatar image

updated 2014-02-24 16:19:21 -0500

smaffulli gravatar image

I'm trying live-migration with qemu in a virtualized environment with VirtualBox VMs (not with KVM)

I get mount the NFS among controller and compute nodes, and I can see the instances directory in all compute nodes (this is directory is shared).

I can perform 'migrate' command in terminal and in the dashboard with success. So, the installation seems to be working correctly.

However, the 'live-migration' command is not working in the line command, and no errors are put in the terminal. I'm trying as follow:

# nova live-migration MY_UUID_VM_INSTANCE my_host_destine

No errors are sent to the terminal, and in the dashboard no action is performed after this command.

I'm receiving this error: /var/log/nova-all.log ERROR: Exception during message handling... ... File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4162, in pre_live_migration self._create_images_and_backing(context, instance, instance_dir, UnboundLocalError: local variable 'instance_dir' referenced before assignment

I guess that 'now' is something related at libvirt.

What I'm doing wrong? I already perform a live migration without openstack using only KVM in physical hosts. I guess that the problem could be the usage of qemu. Someone could help me?

edit retag flag offensive close delete

Comments

I'm receiving this error: /var/log/nova-all.log ERROR: Exception during message handling... ... File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4162, in pre_live_migration self._create_images_and_backing(context, instance, instance_dir, UnboundLocalError: local variable 'instance_dir' referenced before assignment I guess that 'now' is something related at libvirt. What I'm doing wrong. Someone could help me?

outrosdiasvirao ( 2014-02-17 11:35:29 -0500 )edit

Yes, it's possible. I followed this http://www.mirantis.com/blog/tutorial-openstack-live-migration-with-kvm-hypervisor-and-nfs-shared-storage/ using QEMU (not KVM) in VirtualBox and it worked.

darragh-oreilly ( 2014-02-25 08:17:53 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-02-15 04:07:59 -0500

Mathias Ewald gravatar image

What do you mean by "not working"? No live-migration performed? Can you verify live-migration works manually with a non-nova controlled instance? Generally, the live-migration process is independent of KVM and performed by QEMU only (KVM is just a bunch of kernel modules accellerating CPU instruction virtualization). Libvirt should spawn a Qemu process on the destination host which listens on a port. Then tell the source QEMU process to sync the VM over. Can you verify this works? Also check with and without libvirt and watch libvirt logs.

edit flag offensive delete publish link more

Comments

Hi, I solved this bug as follow: https://bugs.launchpad.net/openstack-manuals/+bug/1280330

outrosdiasvirao ( 2014-02-28 15:22:04 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2014-02-14 12:29:54 -0500

Seen: 168 times

Last updated: Feb 24