[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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/
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]