Define a domain, but does not start it.

libvirt_domain_create
libvirt_domain_destroy
Libvirt Functions
PHP Manual

# libvirt_domain_define_xml

(php-libvirt 0.1)

libvirt_domain_define_xml — Define 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_domain_undefine() - Undefine a domain
- libvirt_domain_create() - Launch a defined domain.

libvirt_domain_create
libvirt_domain_destroy
Libvirt Functions
PHP Manual