Libvirt C-api

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.