Examples
libvirt_connect
Libvirt
PHP Manual

# Libvirt Functions

## Table of Contents

- libvirt_connect — Get a connection to the Hypervisor
- libvirt_domain_block_stats — provide block device statistics for the block device on domain.
- libvirt_domain_create_xml — Launch a new guest domain, based on an XML description
- libvirt_domain_create — Launch a defined domain.
- libvirt_domain_define_xml — Define a domain, but does not start it.
- libvirt_domain_destroy — Destroy the domain object
- libvirt_domain_get_connect — Returns connection resource for a domain
- libvirt_domain_get_id — Get the hypervisor ID number for the domain
- libvirt_domain_get_info — Extract information about a domain
- libvirt_domain_get_job_info — Extract information about progress of a background job on a domain. Will return an error if the domain is not active.
- libvirt_domain_get_name — Get the public name for that domain
- libvirt_domain_get_uuid_string — Get the UUID for a domain as string.
- libvirt_domain_get_uuid — Get the UUID for a domain as binary string.
- libvirt_domain_get_xml_desc — Provide an XML description of the domain
- libvirt_domain_interface_stats — provide interface statistics for the virtual network interface on domain.
- libvirt_domain_lookup_by_id — Try to look up a domain based on the hypervisor ID number
- libvirt_domain_lookup_by_name — Try to look up a domain by its name.
- libvirt_domain_lookup_by_uuid_string — Try to look up a domain by its UUID (textual)
- libvirt_domain_lookup_by_uuid — Try to look up a domain by its UUID (binary)
- libvirt_domain_memory_peek — Read the contents of a domain's memory
- libvirt_domain_memory_stats — provide memory statistics for the domain.
- libvirt_domain_migrate_to_uri — Migrate the domain object from its current host to the destination host defined by URI
- libvirt_domain_migrate — Migrate the domain object from its current host to the destination host defined by a connection
- libvirt_domain_reboot — Reboot a domain
- libvirt_domain_resume — Resume an suspended domain
- libvirt_domain_shutdown — Shutdown a domain
- libvirt_domain_suspend — Suspend a domain
- libvirt_domain_undefine — Undefine a domain
- libvirt_get_active_domain_count — Get the number of active domains.
- libvirt_get_domain_count — Get the number of all domains
- libvirt_get_hostname — Get hostname on which the hypervisor is running
- libvirt_get_inactive_domain_count — get the number of defined domains
- libvirt_get_last_error — Get the last libvirt error
- libvirt_list_active_domains — Get active domains
- libvirt_list_defined_domains — Get inactive domains
- libvirt_list_domains — List all domains
- libvirt_list_storagepools — List all storagepools
- libvirt_list_volumes — List all volumes in a storagepool
- libvirt_node_get_info — Extract hardware information about the node
- libvirt_storagepool_get_info — Get storagepool information
- libvirt_storagepool_lookup_by_name — Lookup storagepool resource by name
- libvirt_storagevolume_create_xml — Create a new storage volume based on XML input
- libvirt_storagevolume_get_info — Get storagevolume information
- libvirt_storagevolume_get_xml_desc — Get storagevolume information in XML format
- libvirt_storagevolume_lookup_by_name — Lookup volume resource by name
- libvirt_version — Get libvirt version

Examples
libvirt_connect
Libvirt
PHP Manual