1,warming-up
specifying URIs to LibVirt;
Name parameter to Virconnectopen or
Virconnectopenreadonly
Virconnectptr conn = virconnectopenreadonly ("Test:///default");
/etc/libvirt/libvirt.conf
Uri_aliases = [
"Ruiyhail=qemu+ssh://[email Protected]/system",
"Sleet=qemu+ssh://[email Protected]/system",
]
Uri_default = "Qemu:///system"
A URL aliases should is a string made up;
Vir_connect_no_aliases parameter Virconnectopenauth
If the URI passed to virconnectopen* is Null,libvirt would use following logic to determine what URI to use;
Environment Variabe Libvirt_default_uri
Client configuration file Uri_default parameter
Probe
Specifying URIs to Virsh,virt-manager and Virt-install
In Virsh use the-c or--connect options
Virsh-c Test:///default List
Virsh_default_connect_uri
Libvirt_default_uri
Deprecated
Interactive Virsh shell;
Transport Layer Security
Tls
CA Certificate:/ETC/PKI/CA/CAERT.PEM
Server Certificate:/ETC/PKI/LIBVIRT/SERVERCERT.PEM
Server private key:/etc/pki/libvirt/private/serverkey.pem
PKI infrastructure Public keys
PID Process Idenntified
Offer rich syntax many features
Pass a NULL pointer to virconnectopen*
/etc/xen/xend-config.sxp
(Xend-unix-server Yes)
(Xend-http-server Yes)
Definitely not recommended for production use
Libvirt C-api