Libvirt-php Creating Domain
Posted
by
Alee
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Alee
Published on 2012-06-29T08:08:51Z
Indexed on
2012/06/29
9:23 UTC
Read the original article
Hit count: 411
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.
© Ask Ubuntu or respective owner