Hi all
I'm trying to do a live migration with non-shared storage on CentOS 7. It was working well doing it from CentOS 6 to CentOS 7 but not between to CentOS 7 machines. I read that this feature was removed in RHEL/CentOS 7 but should be available in the CentOS-QEMU-EV repository. But I still get the error using qemu-kvm-ev:
error: internal error: unable to execute QEMU command 'migrate': this feature or command is not currently supported
My installed libvirt and qemu packets are:
libvirt-2.0.0-10.el7_3.5.x86_64 libvirt-client-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-config-network-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-config-nwfilter-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-interface-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-lxc-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-network-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-nodedev-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-nwfilter-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-qemu-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-secret-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-storage-2.0.0-10.el7_3.5.x86_64 libvirt-glib-0.2.3-1.el7.x86_64 libvirt-python-2.0.0-2.el7.x86_64 qemu-img-ev-2.6.0-28.el7_3.6.1.x86_64 qemu-kvm-common-ev-2.6.0-28.el7_3.6.1.x86_64 qemu-kvm-ev-2.6.0-28.el7_3.6.1.x86_64 qemu-kvm-tools-ev-2.6.0-28.el7_3.6.1.x86_64
My command is: virsh migrate --live --copy-storage-all --persistent --undefinesource --tunnelled --p2p --verbose --xml server.xml server qemu+ssh://xxx@a.b.c.d/system
Any help would be greatly appreciated.
Thanks, Valentin
Adding Paolo
On Thu, Mar 16, 2017 at 1:50 PM, Valentin Guggiana valentin@guggiana.ch wrote:
Hi all
I'm trying to do a live migration with non-shared storage on CentOS 7. It was working well doing it from CentOS 6 to CentOS 7 but not between to CentOS 7 machines. I read that this feature was removed in RHEL/CentOS 7 but should be available in the CentOS-QEMU-EV repository. But I still get the error using qemu-kvm-ev:
error: internal error: unable to execute QEMU command 'migrate': this feature or command is not currently supported
My installed libvirt and qemu packets are:
libvirt-2.0.0-10.el7_3.5.x86_64 libvirt-client-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-config-network-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-config-nwfilter-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-interface-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-lxc-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-network-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-nodedev-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-nwfilter-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-qemu-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-secret-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-storage-2.0.0-10.el7_3.5.x86_64 libvirt-glib-0.2.3-1.el7.x86_64 libvirt-python-2.0.0-2.el7.x86_64 qemu-img-ev-2.6.0-28.el7_3.6.1.x86_64 qemu-kvm-common-ev-2.6.0-28.el7_3.6.1.x86_64 qemu-kvm-ev-2.6.0-28.el7_3.6.1.x86_64 qemu-kvm-tools-ev-2.6.0-28.el7_3.6.1.x86_64
My command is: virsh migrate --live --copy-storage-all --persistent --undefinesource --tunnelled --p2p --verbose --xml server.xml server qemu+ssh://xxx@a.b.c.d /system
Any help would be greatly appreciated.
Thanks, Valentin _______________________________________________ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Valentin,
Please check if the VM guest has vm-tools installed else the “virsh migrate --live” parameter requirement is not fulfilled else you has to turn off the VM guest and do the offline “virsh migrate” without “--live” options. Hope that helps.
Xlord
From: CentOS-virt [mailto:centos-virt-bounces@centos.org] On Behalf Of Sandro Bonazzola Sent: Thursday, March 16, 2017 10:57 PM To: Discussion about the virtualization on CentOS centos-virt@centos.org; Paolo Bonzini pbonzini@redhat.com Subject: Re: [CentOS-virt] unable to execute QEMU command 'migrate': this feature or command is not currently supported
Adding Paolo
On Thu, Mar 16, 2017 at 1:50 PM, Valentin Guggiana <valentin@guggiana.ch mailto:valentin@guggiana.ch > wrote:
Hi all
I'm trying to do a live migration with non-shared storage on CentOS 7. It was working well doing it from CentOS 6 to CentOS 7 but not between to CentOS 7 machines. I read that this feature was removed in RHEL/CentOS 7 but should be available in the CentOS-QEMU-EV repository. But I still get the error using qemu-kvm-ev:
error: internal error: unable to execute QEMU command 'migrate': this feature or command is not currently supported
My installed libvirt and qemu packets are:
libvirt-2.0.0-10.el7_3.5.x86_64 libvirt-client-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-config-network-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-config-nwfilter-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-interface-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-lxc-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-network-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-nodedev-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-nwfilter-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-qemu-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-secret-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-storage-2.0.0-10.el7_3.5.x86_64 libvirt-glib-0.2.3-1.el7.x86_64 libvirt-python-2.0.0-2.el7.x86_64 qemu-img-ev-2.6.0-28.el7_3.6.1.x86_64 qemu-kvm-common-ev-2.6.0-28.el7_3.6.1.x86_64 qemu-kvm-ev-2.6.0-28.el7_3.6.1.x86_64 qemu-kvm-tools-ev-2.6.0-28.el7_3.6.1.x86_64
My command is: virsh migrate --live --copy-storage-all --persistent --undefinesource --tunnelled --p2p --verbose --xml server.xml server qemu+ssh://xxx@a.b.c.d/system
Any help would be greatly appreciated.
Thanks, Valentin _______________________________________________ CentOS-virt mailing list CentOS-virt@centos.org mailto:CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Dear Xlord
Please check if the VM guest has vm-tools installed else the “virsh migrate --live” parameter requirement is not fulfilled else you has to turn off the VM guest and do the offline “virsh migrate” without “--live” options. Hope that helps.
As far as I know (and it definitely worked in CentOS 6 and from CentOS 6 to CentOS 7) no guest tools are needed. But I tried it nevertheless: did not work :(
Live migration with shared storage works fine but in my case I need to do live migrations without shared storage (in order to free running hosts to upgrade their OSes and setup shared storage)
I suspect either that the qemu-kvm binary from qemu-kvm-ev-2.6.0-28 is missing this feature or it is called without a needed option. Comparing running qemu-kvm processes on CentOS 6 and CentOS 7 I can see that those on CentOS 6 have -enable-kvm on the command lime but those on CentOS 7 have not.
How can the qemu-kvm binary be checked to see if the feature is enabled?
Thanks, Valentin
Hum..if the live migration is not happening on a shared storage, then I think it is best to have offline migration copy to image and hook up to the destinated server instead, this is a short-cut path I suppose.
Xlord
-----Original Message----- From: CentOS-virt [mailto:centos-virt-bounces@centos.org] On Behalf Of Valentin Guggiana Sent: Monday, March 20, 2017 8:47 PM To: Discussion about the virtualization on CentOS centos-virt@centos.org; 'Paolo Bonzini' pbonzini@redhat.com Subject: Re: [CentOS-virt] unable to execute QEMU command 'migrate': this feature or command is not currently supported
Dear Xlord
Please check if the VM guest has vm-tools installed else the "virsh migrate --live" parameter requirement is not fulfilled else you has to turn off the VM guest and do the offline "virsh migrate" without "--live" options. Hope that helps.
As far as I know (and it definitely worked in CentOS 6 and from CentOS 6 to CentOS 7) no guest tools are needed. But I tried it nevertheless: did not work :(
Live migration with shared storage works fine but in my case I need to do live migrations without shared storage (in order to free running hosts to upgrade their OSes and setup shared storage)
I suspect either that the qemu-kvm binary from qemu-kvm-ev-2.6.0-28 is missing this feature or it is called without a needed option. Comparing running qemu-kvm processes on CentOS 6 and CentOS 7 I can see that those on CentOS 6 have -enable-kvm on the command lime but those on CentOS 7 have not.
How can the qemu-kvm binary be checked to see if the feature is enabled?
Thanks, Valentin _______________________________________________ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Dear Xlord
Hum..if the live migration is not happening on a shared storage, then I think it is best to have offline migration copy to image and hook up to the destinated server instead, this is a short-cut path I suppose.
It must be live. In the meantime is was able to do it. The problem is that tunneled no longer works. Adapting the firewall and using direct was ok. Seems that live migration with non-shared storage does not work through a tunnel but with shared storage tunneled still does! Thanks anyway for you advise.
- Valentin