[one-users] Migrate error with OpenNebula 3.4.1 using KVM hypervisor on Ubuntu 12.05 box

Duverne, Cyrille cyrille.duverne at euranova.eu
Thu Sep 26 03:02:56 PDT 2013


Hello Thai,

Looks like the ownership of disk.1 isn't correct, this might be due to
bad "dynamic_ownership" config in "/etc/libvirt/qemu.conf".

Could you run : "sudo cat /etc/libvirt/qemu.conf | grep ownership"
If you get dynamic_ownership=1 , please edit the file and set it to 0

To gain access on the disk.1 of your VM, run : "sudo chown
oneadmin:oneadmin /var/lib/one/var//datastores/0/8/disk.1"

And try to livemigrate your VM again, and try to create a new one and
livemigrate it as well.

Hope you'll fix your issue.
Kind regards
Cyrille

At Thursday, 26/09/2013 on 9:51 thái bình wrote:

Dear Cyrille,

I got mistake editing the commad ls. I correct it output in the red.

Best regards,
NDTBinh 

-------------------------
  From: thái bình 
To: "Duverne, Cyrille" ; "users at lists.opennebula.org"  
Sent: Thursday, September 26, 2013 2:44 PM
Subject: Re: [one-users] Migrate error with OpenNebula 3.4.1 using
KVMhypervisor on Ubuntu 12.05 box

Dear Cyrlle,

Thanks for your support.

According to your metions, here is the output I got out:

oneadmin at OneVMHost:~/var/11$ ls -lArth
/var/lib/one/var//datastores/0/8/disk.1
-rw-rw---- 1 libvirt-qemu kvm 370K Sep 26 00:12
/var/lib/one/var//datastores/0/8/disk.1

oneadmin at OneVMHost:~/var/11$ cat /etc/group |grep oneadmin
root:x:0:oneadmin
oneadmin:x:10000:oneadmin
kvm:x:110:oneadmin
libvirtd:x:111:thaibinhtt,oneadmin
oneadmin at OneVMHost:~/var/11$

Best Regards,
NDTBinh

-------------------------
  From: "Duverne, Cyrille" 
To: thái bình ; "users at lists.opennebula.org"  
Sent: Wednesday, September 25, 2013 11:18 PM
Subject: Re: [one-users] Migrate error with OpenNebula 3.4.1 using KVM
hypervisor on Ubuntu 12.05 box

Hello Thai,

Could you give the output of : ls
-lArth /var/lib/one/var//datastores/0/8/disk.1 ?
Another thought : Is "oneadmin" part of the "libvirt" group ?

Cheers
Cyrille
Eura Nova
Twitter : @CydsWorld

At Tuesday, 24/09/2013 on 19:58 thái bình wrote:

Dear,

I am trying to live migrate from KVM host to another KVM host but I
always catch an error message which I quote below. Does anyone know
the reason and how to solve this problem ?

oneadmin at OneVMHost:~/var/8$ cat vm.log
Tue Sep 24 10:20:48 2013 [DiM][I]: New VM state is ACTIVE.
Tue Sep 24 10:20:48 2013 [LCM][I]: New VM state is PROLOG.
Tue Sep 24 10:21:31 2013 [TM][I]: clone: Cloning ../../win2k3sp2.qcow2
in OneVMHost:/var/lib/one/var//datastores/0/8/disk.0
Tue Sep 24 10:21:31 2013 [TM][I]: ExitCode: 0
Tue Sep 24 10:21:32 2013 [TM][I]: context: Generating context block
device at OneVMHost:/var/lib/one/var//datastores/0/8/disk.1
Tue Sep 24 10:21:32 2013 [TM][I]: ExitCode: 0
Tue Sep 24 10:21:32 2013 [LCM][I]: New VM state is BOOT
Tue Sep 24 10:21:32 2013 [VMM][I]: Generating deployment file:
/var/lib/one/var/8/deployment.0
Tue Sep 24 10:21:32 2013 [VMM][I]: ExitCode: 0
Tue Sep 24 10:21:32 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Tue Sep 24 10:21:33 2013 [VMM][I]: ExitCode: 0
Tue Sep 24 10:21:33 2013 [VMM][I]: Successfully execute virtualization
driver operation: deploy.
Tue Sep 24 10:21:33 2013 [VMM][I]: ExitCode: 0
Tue Sep 24 10:21:33 2013 [VMM][I]: Successfully execute network driver
operation: post.
Tue Sep 24 10:21:33 2013 [LCM][I]: New VM state is RUNNING
Tue Sep 24 10:30:49 2013 [LCM][I]: New VM state is SAVE_MIGRATE
Tue Sep 24 10:31:04 2013 [VMM][I]: ExitCode: 0
Tue Sep 24 10:31:04 2013 [VMM][I]: Successfully execute virtualization
driver operation: save.
Tue Sep 24 10:31:04 2013 [VMM][I]: ExitCode: 0
Tue Sep 24 10:31:04 2013 [VMM][I]: Successfully execute network driver
operation: clean.
Tue Sep 24 10:31:04 2013 [LCM][I]: New VM state is PROLOG_MIGRATE
Tue Sep 24 10:31:04 2013 [TM][I]: ExitCode: 0
Tue Sep 24 10:31:04 2013 [TM][I]: ExitCode: 0
Tue Sep 24 10:31:04 2013 [LCM][I]: New VM state is BOOT
Tue Sep 24 10:31:04 2013 [VMM][I]: ExitCode: 0
Tue Sep 24 10:31:04 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Tue Sep 24 10:31:05 2013 [VMM][I]: Command execution fail:
/var/tmp/one/vmm/kvm/restore
/var/lib/one/var//datastores/0/8/checkpoint VMHost1 8 VMHost1
Tue Sep 24 10:31:05 2013 [VMM][E]: restore: Command "virsh --connect
qemu:///system restore /var/lib/one/var//datastores/0/8/checkpoint"
failed: error: Failed to restore domain from
/var/lib/one/var//datastores/0/8/checkpoint
Tue Sep 24 10:31:05 2013 [VMM][I]: error: unable to open disk path
/var/lib/one/var//datastores/0/8/disk.1: Permission denied
Tue Sep 24 10:31:05 2013 [VMM][E]: Could not restore from
/var/lib/one/var//datastores/0/8/checkpoint
Tue Sep 24 10:31:05 2013 [VMM][I]: ExitCode: 1
Tue Sep 24 10:31:05 2013 [VMM][I]: Failed to execute virtualization
driver operation: restore.
Tue Sep 24 10:31:05 2013 [VMM][E]: Error restoring VM: Could not
restore from /var/lib/one/var//datastores/0/8/checkpoint
Tue Sep 24 10:31:05 2013 [DiM][I]: New VM state is FAILED

Many thanks,
NDTBinh

_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130926/3114d7bf/attachment-0002.htm>


More information about the Users mailing list