Hi, guys! I began to write qt-virt-manager (github.com/F1ash/qt-virt-manager), using libvirt API. I'm currently trying to implement a terminal for LXC-containers, but I do not have enough knowledge and experience. As I understand it, i must use virDomainOpenConsole, which binds virStream with working domain (Virtual Machine). But how to use this stream, I do not know ( I found qterminalwidget to implement the terminal, but I do not know how to tie them). Can anyone suggest how can I do? -- Fl@sh
Daniel P. Berrange
2014-May-19 10:37 UTC
Re: [libvirt-users] help to implement LXC terminal
On Sun, May 18, 2014 at 06:52:58PM +0400, Fl@sh wrote:> Hi, guys! > I began to write qt-virt-manager > (github.com/F1ash/qt-virt-manager), using libvirt API. > I'm currently trying to implement a terminal for > LXC-containers, but I do not have enough knowledge and > experience. As I understand it, i must use > virDomainOpenConsole, which binds virStream with working > domain (Virtual Machine). But how to use this stream, I do > not know ( I found qterminalwidget to implement the terminal, > but I do not know how to tie them). Can anyone suggest how > can I do?The best bet is to look at the virt-manager source. The serialcon.py file wires up a virStream to a VTE widget (the GNOME terminal emulator widget) Regards, Daniel -- |: berrange.com -o- flickr.com/photos/dberrange :| |: libvirt.org -o- virt-manager.org :| |: autobuild.org -o- search.cpan.org/~danberr :| |: entangle-photo.org -o- live.gnome.org/gtk-vnc :|