Launch a new guest domain, based on an XML description

libvirt_domain_block_stats
libvirt_domain_create
Libvirt Functions
PHP Manual

# libvirt_domain_create_xml

(php-libvirt 0.1)

libvirt_domain_create_xml — Launch a new guest domain, based on an XML description

### Description

resource libvirt_domain_create_xml ( resource `$connection` , string `$xml` )

Launch a new guest domain, based on an XML description similar to the one returned by libvirt_domain_get_xml_desc(). This function may requires privileged access to the hypervisor. The domain is not persistent, so its definition will disappear when it is destroyed, or if the host is restarted (see libvirt_domain_define_xml() to define persistent domains).

### Parameters

`connection`

  Libvirt connection obtained by calling libvirt_connect().

`xml`

  XML description of the domain. For more details see » http://www.libvirt.org/formatdomain.html

### Return Values

Returns `FALSE` on failure and domain resource on success

### See Also

- libvirt_domain_define_xml() - Define a domain, but does not start it.

libvirt_domain_block_stats
libvirt_domain_create
Libvirt Functions
PHP Manual