[libvirt] Create domain using libvirt-php

2012-04-04 Thread Ali Raza Memon
Hello...! I want to create a new domain using libvirt-php, and after creating I want to start it. I have seen this to create new domain: libvirt_domain_new($conn, $name, $arch, $memMB, $maxmemMB, $vcpus, $iso_image, $disks, $networks, $flags) So in the above sysntax what should I pass in

[libvirt] Need Help To Destroy Virtual Machines

2012-04-03 Thread Ali Raza Memon
Hello...! I am using libvirt-php for controlling my xen virtual machines. For this I have installed libvirt-php along with xampp server. Now I need to create a web based controll panel application which shows me running vms, and some options like Shutdown, Pause, Create, Destroy. My aim is,

[libvirt] LIBVIRT-PHP List of domains

2012-03-26 Thread Ali Raza Memon
Hi.. I am trying to get the names of all the xen domains using libvirt-php. I saw this php script: ?php $conn = libvirt_connect('null', false); $doms = libvirt_list_domains($conn); print_r($doms); ? It gives me error. Could you please tell me how to connect to xen hypervisor? I