Bug 239687

Summary: wanted: some way to get the console terminal
Product: [Fedora] Fedora Reporter: Gerd Hoffmann <kraxel>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: berrange, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-26 08:44:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gerd Hoffmann 2007-05-10 15:19:33 UTC
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

Comment 1 Daniel Veillard 2007-06-29 15:50:44 UTC
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 ?

Daniel

Comment 2 Gerd Hoffmann 2007-07-02 15:54:09 UTC
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").



Comment 3 Daniel Berrangé 2007-07-02 15:58:04 UTC
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.


Comment 4 Richard W.M. Jones 2007-07-02 16:07:07 UTC
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.

Comment 5 Daniel Veillard 2007-07-26 08:44:54 UTC
Okay, I added a ttyconsole command which does this, it's upstream
and will be in the next release (probably 0.3.2),

  thanks,

Daniel