Re: [libvirt] vshRunConsole:77 : unable to open tty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Jan 29, 2010, at 9:09 PM, Matthias Bolte wrote:

2010/1/29 Ruben Kerkhof <ruben@xxxxxxxxxxxxxxxx>:
Hi all,

I'm unable to open a serial console to a kvm virtual machine with virsh
console:

[root@phy003 ~]# virsh console f12
Connected to domain f12
Escape character is ^]
20:43:48.282: error : vshRunConsole:77 : unable to open tty /dev/ pts/1 : No
such file or directory

If you look carefully to the message above, there's a space after / dev/pts/1

I can also see this in the xml:

[root@phy003 ~]# virsh dumpxml f12 > f12.xml


   <console type='pty' tty='/dev/pts/1^M'>
     <source path='/dev/pts/1^M'/>
     <target port='0'/>
   </console>
   <console type='pty' tty='/dev/pts/1^M'>
     <source path='/dev/pts/1^M'/>
     <target port='0'/>
   </console>

I've run gdb over virsh, and this is what virDomainGetXMLDesc returns:
<console type='pty' tty='/dev/pts/1\r'>

I'm not sure if this has already been fixed, this is
libvirt-0.7.5-3.fc12.x86_64 from the rawhide preview repo on F12, with
qemu-kvm-0.12.2-4.fc12.x86_64

Any help would be appreciated.

Ruben Kerkhof


I think this was fixed after the 0.7.5 release by this commit

http://libvirt.org/git/?p=libvirt.git;a=commit;h=c0a9b6a5338e54b64a4a28415ffbdb6bcc2b38c5

Matthias

Thanks, that did the trick!

Ruben



--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]