[libvirt-users] LIBVIRT migration

Hello I''m developing a system using libvirt and I need to use "migrate" to move guest to different hosts. I'm testing using a cluster connected by ssh, and I'm connect ok trought them, using virsh and virt-manager. But if I try to migrate doing: *virsh # migrate --live scompi1 qemu+ssh://rionegro/system* I got: *error: monitor socket did not show up.: Connection refused* I've try using the virt-manager, but troughs: *Unable to migrate guest: Traceback (most recent call last): File "/usr/share/virt-manager/**virtManager/migrate.py", line 453, in _async_migrate vm.migrate(dstconn, migrate_uri, rate, live, secure) File "/usr/share/virt-manager/**virtManager/domain.py", line 230, in migrate self._backend.migrate(**destconn.vmm, flags, newname, interface, rate) File "/usr/lib/python2.6/dist-**packages/libvirt.py", line 429, in migrate if ret is None:raise libvirtError('**virDomainMigrate() failed', dom=self) libvirtError: monitor socket did not show up.: Connection refused* Someone can help me? Thank you very much. Marcela.

From: Marcela Castro León <mcastrol@gmail.com> To: libvirt-users@redhat.com Date: 01/04/2011 13:11 Subject: [libvirt-users] LIBVIRT migration Sent by: libvirt-users-bounces@redhat.com
Hello I''m developing a system using libvirt and I need to use "migrate" to move guest to different hosts. I'm testing using a cluster connected by ssh, and I'm connect ok trought them, using virsh and virt-manager.
But if I try to migrate doing:
virsh # migrate --live scompi1 qemu+ssh://rionegro/system
I got: error: monitor socket did not show up.: Connection refused
Please check that you used ssh-copy-id to copy your ssh key (the user you are logged in with when entering virsh) to the destination host's root account. Jürgen
I've try using the virt-manager, but troughs:
Unable to migrate guest: Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/migrate.py", line 453, in _async_migrate vm.migrate(dstconn, migrate_uri, rate, live, secure) File "/usr/share/virt-manager/virtManager/domain.py", line 230, in migrate self._backend.migrate(destconn.vmm, flags, newname, interface, rate) File "/usr/lib/python2.6/dist-packages/libvirt.py", line 429, in migrate if ret is None:raise libvirtError('virDomainMigrate() failed', dom=self) libvirtError: monitor socket did not show up.: Connection refused
Someone can help me? Thank you very much. Marcela.
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Hello I've put the root-key on the authorized_key file of all the host, and reboot the cluster, but I've got the same error with the two opcion (virt-manager and virsh). I think that is sth related to the authorization on the libvirtd.conf. This is my conf at all the hosts (see libvirtd.conf attached too)., I'd appreciate a lot if someone can tell me if it right (it's a developer cluster): *unix_sock_group = "libvirtd"* *unix_sock_ro_perms = "0777"* *unix_sock_rw_perms = "0777"* The user radic that execute is member of libvirtd group. Thank you. Marcela. errors: Virt Manager: When I try to migrate using virt-manager I still get *Unable to migrate guest: Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/migrate.py", line 453, in _async_migrate vm.migrate(dstconn, migrate_uri, rate, live, secure) File "/usr/share/virt-manager/virtManager/domain.py", line 230, in migrate self._backend.migrate(destconn.vmm, flags, newname, interface, rate) File "/usr/lib/python2.6/dist-packages/libvirt.py", line 429, in migrate if ret is None:raise libvirtError('virDomainMigrate() failed', dom=self) libvirtError: monitor socket did not show up.: Connection refused* VIRSH *virsh # migrate --live scompi1 qemu+ssh://rionegro/system* *error: monitor socket did not show up.: Connection refused* 2011/4/1 <jurgen.depicker@let.be>
From: Marcela Castro León <mcastrol@gmail.com> To: libvirt-users@redhat.com Date: 01/04/2011 13:11 Subject: [libvirt-users] LIBVIRT migration Sent by: libvirt-users-bounces@redhat.com
Hello I''m developing a system using libvirt and I need to use "migrate" to move guest to different hosts. I'm testing using a cluster connected by ssh, and I'm connect ok trought them, using virsh and virt-manager.
But if I try to migrate doing:
virsh # migrate --live scompi1 qemu+ssh://rionegro/system
I got: error: monitor socket did not show up.: Connection refused
Please check that you used ssh-copy-id to copy your ssh key (the user you are logged in with when entering virsh) to the destination host's root account.
Jürgen
I've try using the virt-manager, but troughs:
Unable to migrate guest: Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/migrate.py", line 453, in _async_migrate vm.migrate(dstconn, migrate_uri, rate, live, secure) File "/usr/share/virt-manager/virtManager/domain.py", line 230, in migrate self._backend.migrate(destconn.vmm, flags, newname, interface, rate) File "/usr/lib/python2.6/dist-packages/libvirt.py", line 429, in migrate if ret is None:raise libvirtError('virDomainMigrate() failed', dom=self) libvirtError: monitor socket did not show up.: Connection refused
Someone can help me? Thank you very much. Marcela.
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

On Fri, Apr 01, 2011 at 02:28:36PM +0200, jurgen.depicker@let.be wrote:
From: Marcela Castro León <mcastrol@gmail.com> To: libvirt-users@redhat.com Date: 01/04/2011 13:11 Subject: [libvirt-users] LIBVIRT migration Sent by: libvirt-users-bounces@redhat.com
Hello I''m developing a system using libvirt and I need to use "migrate" to move guest to different hosts. I'm testing using a cluster connected by ssh, and I'm connect ok trought them, using virsh and virt-manager.
But if I try to migrate doing:
virsh # migrate --live scompi1 qemu+ssh://rionegro/system
I got: error: monitor socket did not show up.: Connection refused
Please check that you used ssh-copy-id to copy your ssh key (the user you are logged in with when entering virsh) to the destination host's root account.
This error message shows that libvirt did *not* have any trouble actually connecting to libvirtd on the dest host. It actually means that QEMU on the target host failed to startup. You should check /var/log/libvirt/qemu/scompi1.log for any further details as to why it failed to start. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

Hello Daniel: In the log I found that libvirt coudn't find image file. I solved that, but know I've got: *virsh # migrate scompi1 qemu+ssh://rionegro/system error: Unknown failure * The log on target (rionegro:/var/log/libvirt/qemu/scompi1.log) say: LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -S -M pc-0.12 -enable-kvm -m 4096 -smp 4 -name scompi1 -uuid 355123af-b683-9fa6-ca31-10506c9ab9da -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/scompi1.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/home/radic/mvdata/imagenes/scompi1.img,if=ide,index=0,boot=on,format=raw -drive if=ide,media=cdrom,index=2,format=raw -net nic,macaddr=52:54:00:05:d1:2a,vlan=0,model=virtio,name=virtio.0 -net tap,fd=32,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 127.0.0.1:0 -vga cirrus -incoming tcp:0.0.0.0:49163 char device redirected to /dev/pts/1 *pci_add_option_rom: failed to find romfile "pxe-virtio.bin"* At one forum I've read that it can be solved installing the package kvm-pxe. It's ok? Thank you very much. Marcela. 2011/4/1 Daniel P. Berrange <berrange@redhat.com>
On Fri, Apr 01, 2011 at 02:28:36PM +0200, jurgen.depicker@let.be wrote:
From: Marcela Castro León <mcastrol@gmail.com> To: libvirt-users@redhat.com Date: 01/04/2011 13:11 Subject: [libvirt-users] LIBVIRT migration Sent by: libvirt-users-bounces@redhat.com
Hello I''m developing a system using libvirt and I need to use "migrate" to move guest to different hosts. I'm testing using a cluster connected by ssh, and I'm connect ok trought them, using virsh and virt-manager.
But if I try to migrate doing:
virsh # migrate --live scompi1 qemu+ssh://rionegro/system
I got: error: monitor socket did not show up.: Connection refused
Please check that you used ssh-copy-id to copy your ssh key (the user you are logged in with when entering virsh) to the destination host's root account.
This error message shows that libvirt did *not* have any trouble actually connecting to libvirtd on the dest host.
It actually means that QEMU on the target host failed to startup. You should check /var/log/libvirt/qemu/scompi1.log for any further details as to why it failed to start.
Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/:| |: http://libvirt.org -o- http://virt-manager.org:| |: http://autobuild.org -o- http://search.cpan.org/~danberr/:| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc:|

Hello: I've installed the package kvm-pxe on target host, and the error *pci_add_option_rom: failed to find romfile "pxe-virtio.bin" *dissappeared from the log, but the migrate still doesn't work, and it continue saying: virsh # migrate scompi1 qemu+ssh://rionegro/system error: Unknown failure I'd appreciate a lot any help. Thank you. Marcela 2011/4/1 Marcela Castro León <mcastrol@gmail.com>
Hello Daniel: In the log I found that libvirt coudn't find image file. I solved that, but know I've got: *virsh # migrate scompi1 qemu+ssh://rionegro/system error: Unknown failure *
The log on target (rionegro:/var/log/libvirt/qemu/scompi1.log) say: LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -S -M pc-0.12 -enable-kvm -m 4096 -smp 4 -name scompi1 -uuid 355123af-b683-9fa6-ca31-10506c9ab9da -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/scompi1.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/home/radic/mvdata/imagenes/scompi1.img,if=ide,index=0,boot=on,format=raw -drive if=ide,media=cdrom,index=2,format=raw -net nic,macaddr=52:54:00:05:d1:2a,vlan=0,model=virtio,name=virtio.0 -net tap,fd=32,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 127.0.0.1:0 -vga cirrus -incoming tcp: 0.0.0.0:49163 char device redirected to /dev/pts/1 *pci_add_option_rom: failed to find romfile "pxe-virtio.bin"*
At one forum I've read that it can be solved installing the package kvm-pxe. It's ok?
Thank you very much.
Marcela.
2011/4/1 Daniel P. Berrange <berrange@redhat.com>
On Fri, Apr 01, 2011 at 02:28:36PM +0200, jurgen.depicker@let.be wrote:
From: Marcela Castro León <mcastrol@gmail.com> To: libvirt-users@redhat.com Date: 01/04/2011 13:11 Subject: [libvirt-users] LIBVIRT migration Sent by: libvirt-users-bounces@redhat.com
Hello I''m developing a system using libvirt and I need to use "migrate" to move guest to different hosts. I'm testing using a cluster connected by ssh, and I'm connect ok trought them, using virsh and virt-manager.
But if I try to migrate doing:
virsh # migrate --live scompi1 qemu+ssh://rionegro/system
I got: error: monitor socket did not show up.: Connection refused
Please check that you used ssh-copy-id to copy your ssh key (the user you are logged in with when entering virsh) to the destination host's root account.
This error message shows that libvirt did *not* have any trouble actually connecting to libvirtd on the dest host.
It actually means that QEMU on the target host failed to startup. You should check /var/log/libvirt/qemu/scompi1.log for any further details as to why it failed to start.
Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

Hello I'm having problem using migration. I'm working on ubuntu 10.4 and this versions of libvirt and virsh: virsh # version Compiled against library: libvir 0.7.5 Using library: libvir 0.7.5 Using API: QEMU 0.7.5 Running hypervisor: QEMU 0.12.3 This is the error. *virsh # migrate scompi1 qemu+ssh://rionegro/system error: Unknown failure * This is the log on the destination, that show that there is no communication problem, but it has a problem starting the guest on destination. radic@rionegro:~$ sudo cat /var/log/libvirt/qemu/scompi1.log [sudo] password for radic: LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -S -M pc-0.12 -enable-kvm -m 4096 -smp 4 -name scompi1 -uuid 355123af-b683-9fa6-ca31-10506c9ab9da -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/scompi1.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/home/radic/mvdata/imagenes/scompi1.img,if=ide,index=0,boot=on,format=raw -drive if=ide,media=cdrom,index=2,format=raw -net nic,macaddr=52:54:00:05:d1:2a,vlan=0,model=virtio,name=virtio.0 -net tap,fd=33,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 127.0.0.1:0 -vga cirrus -incoming tcp:0.0.0.0:49153 char device redirected to /dev/pts/1 LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -S -M pc-0.12 -enable-kvm -m 4096 -smp 4 -name scompi1 -uuid 355123af-b683-9fa6-ca31-10506c9ab9da -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/scompi1.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/home/radic/mvdata/imagenes/scompi1.img,if=ide,index=0,boot=on,format=raw -drive if=ide,media=cdrom,index=2,format=raw -net nic,macaddr=52:54:00:05:d1:2a,vlan=0,model=virtio,name=virtio.0 -net tap,fd=33,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 127.0.0.1:0 -vga cirrus -incoming tcp:0.0.0.0:49154 char device redirected to /dev/pts/2 LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -S -M pc-0.12 -enable-kvm -m 4096 -smp 4 -name scompi1 -uuid 355123af-b683-9fa6-ca31-10506c9ab9da -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/scompi1.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/home/radic/mvdata/imagenes/scompi1.img,if=ide,index=0,boot=on,format=raw -drive if=ide,media=cdrom,index=2,format=raw -net nic,macaddr=52:54:00:05:d1:2a,vlan=0,model=virtio,name=virtio.0 -net tap,fd=33,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 127.0.0.1:0 -vga cirrus -incoming tcp:0.0.0.0:49155 char device redirected to /dev/pts/2 I'm attaching the xml of the scompi1 that i'm trying to migrate. I'd apprciate a lot any help. Marcela

Al 01/04/11 22:29, En/na Marcela Castro León ha escrit:
Hello: I've installed the package kvm-pxe on target host, and the error /*pci_add_option_rom: failed to find romfile "pxe-virtio.bin" */dissappeared from the log, but the migrate still doesn't work, and it continue saying:
Hi, try installing the kvm-pxe package with apt-get.
participants (4)
-
Daniel P. Berrange
-
Francesc Guasch
-
jurgen.depicker@let.be
-
Marcela Castro León