Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1001 Bytes

libvirt.md

File metadata and controls

61 lines (47 loc) · 1001 Bytes

libvirtd

Linux install: TODO

MacOS install:

brew install libvirt qemu

Configuration

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"

virt-admin

host management

virsh

client management

basic

connection

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

hypervisor info

virsh capabilities
virsh # capabilities