I found the problem,
Keep qemu.conf like this
dynamic_ownership = 0. To be able to use the images copied by OpenNebula,
change also the user and group under which the libvirtd is run to ??oneadmin??:
$ grep -vE '^($|#)' /etc/libvirt/qemu.conf user = "oneadmin" group = "oneadmin"
dynamic_ownership = 0
Thx Ruben S. Montero's mail.
Check KVM configuration to match
http://opennebula.org/documentation:rel3.8:kvmg#configuration
------------------ ???????? ------------------
??????: "????@'4?? ";<yangz...@qq.com>;
????????: 2013??10??3??(??????) ????4:11
??????: "users"<users@lists.opennebula.org>;
????: [one-user] migrate fail in some host
Hi,
there is a fail VM log of the action that migrate from host2 to host1 ,it can't
touch off the mv command to mv the vm image. So,when I migrate, it delete the
source file and do nothing to migrate the image to the destination ,telling me
"No such file or directory in the".
40:21 2013 [LCM][I]: New VM state is PROLOG_MIGRATE Thu Oct 3 15:40:21 2013
[TM][I]: ExitCode: 0 Thu Oct 3 15:40:23 2013 [TM][I]: mv: Moving
host2:/var/lib/one/datastores/0/80 to host1:/var/lib/one/datastores/0/80 Thu
Oct 3 15:40:23 2013 [TM][I]: ExitCode: 0 Thu Oct 3 15:40:23 2013 [LCM][I]:
New VM state is BOOT Thu Oct 3 15:40:24 2013 [VMM][I]: ExitCode: 0 Thu Oct 3
15:40:24 2013 [VMM][I]: Successfully execute network driver operation: pre. Thu
Oct 3 15:40:25 2013 [VMM][I]: Command execution fail:
/var/tmp/one/vmm/kvm/restore /var/lib/one//datastores/0/80/checkpoint host1 80
host1 Thu Oct 3 15:40:25 2013 [VMM][E]: restore: Command "virsh --connect
qemu:///system restore /var/lib/one//datastores/0/80/checkpoint" failed: error:
Failed to restore domain from /var/lib/one//datastores/0/80/checkpoint Thu Oct
3 15:40:25 2013 [VMM][I]: error: Unable to allow access for disk path
/var/lib/one//datastores/0/80/disk.0: No such file or directory Thu Oct 3
15:40:25 2013 [VMM][E]: Could not restore from
/var/lib/one//datastores/0/80/checkpoint Thu Oct 3 15:40:25 2013 [VMM][I]:
ExitCode: 1But migrate from host1 to host2 all is OKThu Oct 3 15:35:44 2013
[LCM][I]: New VM state is PROLOG_MIGRATE Thu Oct 3 15:35:44 2013 [TM][I]:
ExitCode: 0 Thu Oct 3 15:35:47 2013 [TM][I]: mv: Moving
host1:/var/lib/one/datastores/0/81 to host2:/var/lib/one/datastores/0/81 Thu
Oct 3 15:35:47 2013 [TM][I]: ExitCode: 0 Thu Oct 3 15:35:47 2013 [LCM][I]:
New VM state is BOOT Thu Oct 3 15:35:47 2013 [VMM][I]: ExitCode: 0 Thu Oct 3
15:35:47 2013 [VMM][I]: Successfully execute network driver operation: pre. Thu
Oct 3 15:35:49 2013 [VMM][I]: ExitCode: 0 Thu Oct 3 15:35:49 2013 [VMM][I]:
Successfully execute virtualization driver operation: restore. Thu Oct 3
15:35:49 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-vsctl set Port vnet3
tag=302". Thu Oct 3 15:35:49 2013 [VMM][I]: post: Executed "sudo
/usr/bin/ovs-ofctl add-flow ovsbr0
in_port=66,dl_src=02:00:c0:a8:b6:80,priority=40000,actions=normal". Thu Oct 3
15:35:49 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl add-flow ovsbr0
in_port=66,priority=39000,actions=drop". Thu Oct 3 15:35:49 2013 [VMM][I]:
post: Executed "sudo /usr/bin/ovs-ofctl add-flow ovsbr0
in_port=67,dl_src=02:00:63:09:09:7c,priority=40000,actions=normal". Thu Oct 3
15:35:49 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl add-flow ovsbr0
in_port=67,priority=39000,actions=drop". Thu Oct 3 15:35:49 2013 [VMM][I]:
ExitCode: 0 Thu Oct 3 15:35:49 2013 [VMM][I]: Successfully execute network
driver operation: post. Thu Oct 3 15:35:49 2013 [LCM][I]: New VM state is
RUNNINGI using the default system datastore ,and ssh mode,can you tell me where
is the problem location.
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org