Renich Bon Ciric
2012-Sep-13 00:20 UTC
[libvirt-users] How to migrate over TCP without certs
Hey guys, I have a private network and I trust it! /me hides behind trees... So, in order to exercise my trust, I wanna migrate guests over TCP; with and without shared storage. This is: - I want to migrate from host1 to host2; which have shared storage; over TCP without certs - I want to migrate from host1 to host99, which don't have shared storage, over TCP without certs I am asking because, every time I try anythng, it complains: error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory If I need to setup this cacert, no problem; point me to it! Anyway, thank you for taking the time to read this email. Fedora 17 x86_64 libvirt-0.9.11.5-3.fc17.x86_64 qemu-kvm-1.0.1-1.fc17.x86_64 private network on vlan2, Dual 10 Gbps bonded (20, perhaps?) -- It's hard to be free... but I love to struggle. Love isn't asked for; it's just given. Respect isn't asked for; it's earned! Renich Bon Ciric http://www.woralelandia.com/ http://www.introbella.com/
Daniel P. Berrange
2012-Sep-13 08:54 UTC
[libvirt-users] How to migrate over TCP without certs
On Wed, Sep 12, 2012 at 07:20:15PM -0500, Renich Bon Ciric wrote:> Hey guys, > > I have a private network and I trust it! /me hides behind trees... > > So, in order to exercise my trust, I wanna migrate guests over TCP; > with and without shared storage. > > This is: > > - I want to migrate from host1 to host2; which have shared storage; > over TCP without certs > - I want to migrate from host1 to host99, which don't have shared > storage, over TCP without certs > > I am asking because, every time I try anythng, it complains: > error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such > file or directory > > If I need to setup this cacert, no problem; point me to it!The libvirtd config defaults to TLS, so you need to explicitly turn that off by editing /etc/libvirt/libvirtd.conf and set listen_tls=0 and listen_tcp=1 Even though you "trust" your network, I'd still advise doing some level of auth. If you configure SASL with TCP, and use the Digest-MD5 protocol for SASL you'll get reasonably strong password auth + channel encryption. http://libvirt.org/auth.html#ACL_server_username 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 :|
Martin Kletzander
2012-Sep-13 09:33 UTC
[libvirt-users] How to migrate over TCP without certs
On 09/13/2012 02:20 AM, Renich Bon Ciric wrote:> Hey guys, > > I have a private network and I trust it! /me hides behind trees... > > So, in order to exercise my trust, I wanna migrate guests over TCP; > with and without shared storage. > > This is: > > - I want to migrate from host1 to host2; which have shared storage; > over TCP without certs > - I want to migrate from host1 to host99, which don't have shared > storage, over TCP without certs > > I am asking because, every time I try anythng, it complains: > error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such > file or directory > > If I need to setup this cacert, no problem; point me to it! >I'd be glad to help with setting up the certs if you want. I've always found it long, hard and stressing, but there is a _great_ how-to [1] that makes it super fast and easy. Plus it's fun and it's free ;-) Feel free to ask if you have any more questions. Have a nice day, Martin [1] http://libvirt.org/remote.html#Remote_certificates