
On Sun, May 18, 2014 at 06:52:58PM +0400, Fl@sh wrote:
Hi, guys! I began to write qt-virt-manager (https://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 -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|