Red Hat Bugzilla – Bug 239687
wanted: some way to get the console terminal
Last modified: 2007-11-30 17:12:04 EST
Description of problem:
wishlist: new command for virsh to get the console device, like "virsh
vncdisplay dom" but for the text console. suggested name: console-tty
Well you can get the information from 'dumpxml' output, it's just a matter
of filtering, virsh could do it, but is that worth adding a new command ?
When it is worth a separate command for the vnc graphical console, the same
should apply to the text console, no?
It would provide easy access to the tty for scripting purposes, for example to
attach the console to a screen window (screen as in "terminal multiplexer app").
As Gerd says in comment #2, we already have a vncdisplay command - principally
because parsing XML from a shell script is a horrific task. Same motivation
applies for getting the console path - both are reasonably commonly needed bits
of info about a VM for shell scripting purposes.
It's be nice if Fedora bundled the xpath command
(http://www.xml.com/lpt/a/954), which makes shell
scripting this all quite easy.
Okay, I added a ttyconsole command which does this, it's upstream
and will be in the next release (probably 0.3.2),