vshRunConsole:77 : unable to open tty /dev/pts/3

Bug #542324 reported by Scott Moser
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libvirt (Debian)
Fix Released
Unknown
libvirt (Ubuntu)
Fix Released
Medium
Dustin Kirkland 

Bug Description

As reported in bug 523148 comment 3 (https://bugs.launchpad.net/bugs/523148/comments/3) , there is a bug with current lucid preventing 'virsh console' from working.

Copied from the link above:
| # virsh console guest1
| Connected to domain guest1
| Escape character is ^]
| 14:25:40.056: error : vshRunConsole:77 : unable to open tty /dev/pts/3 : No such file or directory
|
| When I dump the configuration of my VM, something is wrong with the path "/dev/pts/3" (there is a carriage return after the path).
|
| # virsh dumpxml guest1
| <domain type='kvm' id='2'>
| <name>guest1</name>
| ...
| <serial type='pty'>
| '/> <source path='/dev/pts/3
| <target port='0'/>
| </serial>
| '> <console type='pty' tty='/dev/pts/3
| '/> <source path='/dev/pts/3
| <target port='0'/>
| </console>
| ...
| </domain>

The 'path' entries are added by libvirt after launching a domain with:
    <serial type="pty">
      <target port="1"/>
    </serial>
    <console type='pty'>
      <target port='1'/>
    </console>
    </devices>

The solution is found at http://libvirt.org/git/?p=libvirt.git;a=commit;h=c0a9b6a5338e54b64a4a28415ffbdb6bcc2b38c5

Note, this is not a dupe of bug 523148. In lucid you wont get far enough to see that bug. Without the change console in 'virsh' is completely broken.

ProblemType: Bug
Architecture: amd64
Date: Sat Mar 20 00:21:50 2010
DistroRelease: Ubuntu 10.04
Package: libvirt-bin 0.7.5-5ubuntu13
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: User Name 2.6.32-16.25-server
SourcePackage: libvirt
Uname: Linux 2.6.32-16-server x86_64

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

Marking this triaged. I'll soon attach a tested patch.

Changed in libvirt (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Scott Moser (smoser) wrote :

Attaching the suggested debdiff to fix this. I've tested this locally.
The diff is from http://libvirt.org/git/?p=libvirt.git;a=commit;h=c0a9b6a5338e54b64a4a28415ffbdb6bcc2b38c5

Revision history for this message
Scott Moser (smoser) wrote :

Requesting sponsorship of attached debdiff.

Revision history for this message
Scott Moser (smoser) wrote :

re-attaching the same debdiff with correct bug number.

Changed in libvirt (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 0.7.5-5ubuntu14

---------------
libvirt (0.7.5-5ubuntu14) lucid; urgency=low

  * debian/patches/9018-fix-pty-console.patch: fix issue using
    console in virsh.
    (LP: #542324)
 -- Scott Moser <email address hidden> Fri, 19 Mar 2010 15:58:21 -0400

Changed in libvirt (Ubuntu):
status: Triaged → Fix Released
Changed in libvirt (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.