Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error connecting to virsh console: unable to get tty attributes #4

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 5 comments
Labels

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

Enable a serial console on a kvm virtual machine. Then edit conman.conf to access this console through libvirt:

console name="foo" dev="/usr/bin/virsh console foo"

What is the expected output? What do you see instead?

Instead of successfully spawning a "virsh console" process that the client can interact with, the following output is observed in the console log for foo:

<ConMan> Console [foo] connected to "virsh" (pid 23456) at 06-10 12:34.
12:34:56.789: error : vshRunConsole:88 : unable to get tty attributes: Invalid argument
Connected to domain foo
Escape character is ^]
<ConMan> Console [foo] disconnected from "virsh" (pid 23456) after 0s at 06-10 12:34.

What version of the software are you using? On what operating system?

conman-0.2.5
libvirt-bin-0.8.1-1 (Debian Squeeze)

Please provide any additional information below.

The virsh error is triggered by a failed call to tcgetattr(STDIN_FILENO,&ttyattr) in libvirt-0.8.1/tools/console.c.

Original issue reported on code.google.com by chris.m.dunlap on 10 Jun 2010 at 9:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants