Update 3: copy libvirtd.service to /etc/systemd/system. And only edit the file under /etc (Thanks to randomuser)
Update 2: edit the actual solution for Fedora 21 as inspired by IBM KC document.
Update: A much better (with some security) solution from IBM Knowledge Center:
http://www-01.ibm.com/support/knowledgecenter/linuxonibm/liaat/liaatkvmsecsrmsasl.htm
=== Part 2: 2nd solution based on IBM KC document linked above ===
change /etc/libvirt/libvirtd.conf
-> listen_tls = 0
-> listen_tcp = 1
-> tcp_port = "16509"
-> auth_tcp = "sasl"
(if not already exist)
copy /lib/systemd/system/libvirtd.service /etc/systemd/system
change /etc/systemd/system/libvirtd.service, in [Service] section
-> ExecStart=/usr/sbin/libvirtd -l $LIBVIRTD_ARGS
** just added "-l" to this line.
create a SASL user, this is straight from the IBM document
# saslpasswd2 -a libvirt admin
Password:
Again (for verification):
=== End of Part 2===
=== Part 1: Original non-secure solution ===
Now, I managed to have Virt-Manager connect to a remote host.
As it is unsecure, thus it is disabled by Fedora 21 by default.
These is what I did:
- @server, enable libvirtd to listen on TCP without authentication
- @server, modify libvirtd unit file for systemd to add the "-l" parameter
At least now my Virt-Manager@workstation can connect, start / shutdown , view Display for a pre-existing guest.
I am going to install a new guest using remote Virt-Manager next.
=== End of Part 1 ===
Note: Both method works to manage pre-existing VMs plus Create New, Delete, Start / Stop, etc.
Regards,
Sampson