Linux install: TODO
MacOS install:
brew install libvirt qemu
MacOS:
aspect | path |
---|---|
config folder | /usr/local/etc/libvirt |
main daemon config file | /usr/local/etc/libvirt/libvirtd.conf |
runtime directory | /usr/local/var/run/libvirt |
domains directory | TODO |
in /usr/local/etc/libvirt/libvirtd.conf
:
# disable listening for secure TLS connections on the public TCP/IP port
listen_tls = 0
# Allow users of group "admin" to connect to libvirtd via socket:
unix_sock_group = "admin"
unix_sock_rw_perms = "0770"
host management
client management
Get a connection URI
uri
Connect to qemu:///system
sudo virsh
To always connect to qemu:///system
by default (provided socket is configured):
export LIBVIRT_DEFAULT_URI="qemu:///system"
virsh
virsh capabilities
virsh # capabilities