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

Michael March mmarch at gmail.com
Sat Jul 5 23:31:05 UTC 2008


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', '__del__', '__doc__', 
'__init__', '__module__', '_conn', '_o', 'attachDevice', 'autostart', 
'blockStats', 'connect', 'coreDump', 'create', 'destroy', 
'detachDevice', 'info', 'interfaceStats', 'maxMemory', 'maxVcpus', 
'migrate', 'name', 'pinVcpu', 'reboot', 'resume', 'save', 
'setAutostart', 'setMaxMemory', 'setMemory', 'setVcpus', 'shutdown', 
'suspend', 'undefine']

I don't see a method to start a domain up.. What am I missing here?

thanks!




More information about the libvir-list mailing list