Skip to content

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

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions