Enabling libvirtd TLS listening on Fedora 20

After a little thrashing, I got libvirtd TLS listening working on my Fedora 20 laptop.

Image courtesy of Red Hat, licensed under CC-BY-SA-3.0

First, follow the steps here to create your certificates.

The default config options in /etc/libvirt/libvirtd.conf should be good, but if you want to explicitly set them, you’d need something like this:

listen_tls = 1
listen_tcp = 0
listen_addr = ""
tls_port = "16514"

In /etc/sysconfig/libvirtd you want:


Open up your firewall:

# firewall-cmd --add-service libvirt-tls
# firewall-cmd --permanent --add-service libvirt-tls

Finally, restart libvirtd:

# systemctl restart libvirtd.service

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s