Re: [libvirt] 'starting' a domain using Python libvirt..

2008-07-06 Thread Daniel P. Berrange
On Sat, Jul 05, 2008 at 04:31:05PM -0700, Michael March wrote: I'm trying to figure out how to start a domain .. and I can't figure out what method to use.. When I do this: dir(conn.lookupByName('my-vm-1')) I get these options: ['ID', 'OSType', 'UUID', 'UUIDString', 'XMLDesc',

Re: [libvirt] Xen config files again

2008-07-06 Thread Daniel P. Berrange
On Sat, Jul 05, 2008 at 10:21:36PM -0400, Thomas Moyer wrote: I've seen in the src tree that there are functions to read and use Xen configuration files. Are these functions available in the Python bindings or do I need to use C to get access to them? What I am mostly interested in

Re: [libvirt] Xen config files again

2008-07-06 Thread Thomas Moyer
You told me earlier that I can pass the name of the VM (which has a corresponding .cfg file in /etc/xen) to lookupByName() and then use getXMLDesc() to get information in XML format about the VM, but it would appear that at least the first function is only useful for running VM's not for

Re: [libvirt] save / restore for KVM

2008-07-06 Thread Matthias Pfafferodt
Hello, Am Samstag, 5. Juli 2008 18:48:13 schrieb Daniel P. Berrange: On Sat, Jul 05, 2008 at 01:59:26PM +0200, Matthias Pfafferodt wrote: Hello, I try to save a KVM domain which has its hard disk on a LVM volume. I can execute the command to save the domain but restore fails # virsh

Re: [libvirt] 'starting' a domain using Python libvirt..

2008-07-06 Thread Michael March
On Sat, Jul 05, 2008 at 04:31:05PM -0700, Michael March wrote: I'm trying to figure out how to start a domain .. and I can't figure out what method to use.. When I do this: dir(conn.lookupByName('my-vm-1')) I get these options: ['ID', 'OSType', 'UUID', 'UUIDString',

Re: [libvirt] Xen config files again

2008-07-06 Thread Daniel P. Berrange
On Sun, Jul 06, 2008 at 08:59:55AM -0400, Thomas Moyer wrote: You told me earlier that I can pass the name of the VM (which has a corresponding .cfg file in /etc/xen) to lookupByName() and then use getXMLDesc() to get information in XML format about the VM, but it would appear that at

Re: [libvirt] storage_conf.c: In function 'virStorageSize'

2008-07-06 Thread Jaime Traver
hi, thank Atsushi SAKAI i has fixed the problem with your recomendations, but now it is happened the following *libvirt_proxy.c: En la funciĆ³n `main': libvirt_proxy.c:844: aviso: implicit declaration of function `fprintf' libvirt_proxy.c:844: error: `stderr' undeclared (first use in this