Connection URIs
To control a hypervisor, libvirt tools must first connect to it. You will use a URI to specify the location of the hypervisor. For KVM use a qemu:// URI and for Xen use xen://. For backwards compatibility virsh will also accept just plain xen, which it will treat as xen:///. If no connection option is given, virsh will try to connect to the URI given in the environment variable LIBVIRT_DEFAULT_URI. If none exists, it will probe the defaults in whatever hypervisor drivers it has available.
You can also make a connection to a remote server. For security reasons you will usually use SSH to do this by using an xen+ssh:// or qemu+ssh:// URI.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access