Libvirt Basic use case based on C API

Source: Internet
Author: User

1,virconnectgetlibversion

API Call Obtain the version of Libvirt software in the host

It takes a connection pointer and unsigned long pointer as input,

2,virconnectgetversion

API call obtain version of the host virtualization software on use

3,virconnectgeturi

API Call obtain URI current connection

4,virconnectisencrypted

API call determines whether the established virtualizationhypervisors is encrypted

5,virconnectissecure

API call to determine if virtual Conn is encrypted

If succesful returns 1 for a secure connection and 0 for a insecure connection

If an error occurred-1 would be returned;

6,libvirt enevt Loop integration;

Libvirt APIs use a basic request/response architecture it is generally synchronous

Libvirt application calls a Libvirt API (the request) which doesn ' t return until the action is complete (The response)

A LIBVIRTD server can also generate asynchronous messages and send them to
The Libvirt application

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.