Libvirt Functions
PHP Manual

libvirt_domain_define_xml

(php-libvirt 0.1)

libvirt_domain_define_xmlDefine a domain, but does not start it.

Description

resource libvirt_domain_define_xml ( resource $connection , string $xml )

Define a domain, but does not start it. This definition is persistent, until explicitly undefined with libvirt_domain_undefine(). The domain is defined using XML description provided.

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 Functions
PHP Manual