[libvirt-users] Is it possible to in live migration?

Hi all, In live migration using shared memory, there would be a following step to input the password after typing: migrate --live vm_name qemu+ssh://Destination_IP/system. . I wonder if it is possible to include the password in the URI so that the password procedure can be avoided? Thanks, Yi

You can't include password in URI, but if you use SSH to connect remote libvirt host then you may password-less SSH login, for instance: libvirt@client$ ssh-keygen -t rsa [...] Enter passphrase (empty for no passphrase): [...] libvirt@client$ ssh-copy-id -i ~/.ssh/id_rsa.pub libvirt@server Good Luck! Alex ----- Original Message ----- From: "GaoYi" <gaoyi709@gmail.com> To: libvirt-users@redhat.com Sent: Monday, June 25, 2012 12:27:44 PM Subject: [libvirt-users] Is it possible to in live migration? Hi all, In live migration using shared memory, there would be a following step to input the password after typing: migrate --live vm_name qemu+ssh://Destination_IP/system. . I wonder if it is possible to include the password in the URI so that the password procedure can be avoided? Thanks, Yi _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Thanks, Alex. How about qemu+tcp? can it be used for live migration without additional input procedure. Right now I got little information about it. Any help will be much appreicated. Yi 2012/6/25 Alex Jia <ajia@redhat.com>
You can't include password in URI, but if you use SSH to connect remote libvirt host then you may password-less SSH login, for instance:
libvirt@client$ ssh-keygen -t rsa [...] Enter passphrase (empty for no passphrase): [...]
libvirt@client$ ssh-copy-id -i ~/.ssh/id_rsa.pub libvirt@server
Good Luck! Alex
----- Original Message ----- From: "GaoYi" <gaoyi709@gmail.com> To: libvirt-users@redhat.com Sent: Monday, June 25, 2012 12:27:44 PM Subject: [libvirt-users] Is it possible to in live migration?
Hi all,
In live migration using shared memory, there would be a following step to input the password after typing:
migrate --live vm_name qemu+ssh://Destination_IP/system.
. I wonder if it is possible to include the password in the URI so that the password procedure can be avoided?
Thanks,
Yi
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Il giorno Lun 25 Giu 2012 16:28:44 CEST, GaoYi ha scritto:
Thanks, Alex. How about qemu+tcp? can it be used for live migration without additional input procedure. Right now I got little information about it. Any help will be much appreicated. Yi
To avoid security you can use TLS for encryption, but I think that for what are you searching, ssh shared keys are the best choice (and IMHO, ssh + keys is always the best choice). -- RaSca Mia Mamma Usa Linux: Niente è impossibile da capire, se lo spieghi bene! rasca@miamammausalinux.org http://www.miamammausalinux.org

I will try ssh key. Thanks, Yi 2012/6/25 RaSca <rasca@miamammausalinux.org>
Il giorno Lun 25 Giu 2012 16:28:44 CEST, GaoYi ha scritto:
Thanks, Alex. How about qemu+tcp? can it be used for live migration without additional input procedure. Right now I got little information about it. Any help will be much appreicated. Yi
To avoid security you can use TLS for encryption, but I think that for what are you searching, ssh shared keys are the best choice (and IMHO, ssh + keys is always the best choice).
-- RaSca Mia Mamma Usa Linux: Niente č impossibile da capire, se lo spieghi bene! rasca@miamammausalinux.org http://www.miamammausalinux.org
participants (3)
-
Alex Jia
-
GaoYi
-
RaSca