[libvirt-users] How to open virtual machine console using python libvirt.

deepak at fluentsoft.com deepak at fluentsoft.com
Mon May 26 12:02:52 UTC 2014


 

Hi,

How to open virtual machine console using python libvirt.
I tried openConsole function,it returning integer 0 and not opening any
console.
code
====
 import libvirt
 conn = libvirt.open('qemu+ssh://root@192.168.1.6/system')
 vm=conn.lookupByName("vm1-1")
 stream=onn.newStream(libvirt.VIR_STREAM_NONBLOCK)
 vm.openConsole(None,stream, 0)

Regards,
 Deepak S
 

-------------------------
Message sent via Atmail Open - http://atmail.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140526/3da7f8bc/attachment.htm>


More information about the libvirt-users mailing list