[libvirt-users] /dev/pts linking option?

Daniel P. Berrange berrange at redhat.com
Wed Feb 24 07:41:56 UTC 2010

On Tue, Feb 23, 2010 at 08:14:12PM -0500, Jon Masters wrote:
> Folks,
> Does anyone know whether libvirt provides a means for me to guarantee a
> persistent link for my guest's virtual serial console? I need to have a
> consistent mapping (for example, a symlink that always points to the
> correct /dev/pts entry) so I can automate kgdb hookup on boot.

The /dev/pts path for a guest is always recorded in the XML, so just query
the XML file for it once it is running to discover the allocated path, or 
use the convenient 'virsh ttyconsole' command which prints just the path

|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

More information about the libvirt-users mailing list