Libvirt-php Creating Domain
- by Alee
Could you tell me how to create a new domain?
From PHP API Reference guide: http://libvirt.org/php/api-reference.html
I have seen these functions:
(i) libvirt_image_create($conn, $name, $size, $format)
(ii) libvirt_domain_new($conn, $name, $arch, $memMB, $maxmemMB, $vcpus, $iso_image, $disks, $networks, $flags)
(iii) libvirt_domain_create($res)
(iv) libvirt_domain_create_xml($conn, $xml)
The problem I am facing is that i dont know the steps to create a new domain.
Either I have to create a new image first using libvirt_image_create .... or something else.