chardev: opening backend "pty" failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Natty |
Invalid
|
Undecided
|
Unassigned | ||
lxc (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn | ||
Natty |
Fix Released
|
High
|
Stéphane Graber |
Bug Description
I'm unable to start qemu virtual machine because of the following error:
error: Failed to start domain test
error: internal error unable to start guest: chardev: opening backend "pty" failed
The reason I'm posting this on libvirtd, is because I'm able to run the exact same command (as printed in the log file) manually - and it works. I believe qemu bails because openpty() fails - as a direct result of chown() failing.
Both qemu and libvirtd is running as root - and apparmor is not active.
This could be a capabilies issue.
(from strace)
[pid 3058] getuid() = 0
....
[pid 3058] chown("/dev/pts/3", 0, 5) = -1 EPERM (Operation not permitted)
(from /proc/[pid of libvirtd]/status)
Uid: 0 0 0 0
Gid: 0 0 0 0
CapPrm: ffffffffffffffff
CapEff: ffffffffffffffff
CapBnd: ffffffffffffffff
(from /proc/[pid of qemu]/status)
Uid: 0 0 0 0
Gid: 0 0 0 0
CapPrm: fffffffc00000000
CapEff: fffffffc00000000
CapBnd: fffffffc00000000
(ls -la /dev/pts)
drwxr-xr-x 2 root root 0 2010-04-19 09:30 .
c--------- 1 root root 5, 2 2010-07-19 13:55 ptmx
(mount)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,mode=
(qemu-log)
LC_ALL=C PATH=/usr/
Any ideas?
Changed in lxc (Ubuntu): | |
status: | New → Invalid |
Changed in libvirt (Ubuntu Natty): | |
status: | New → Invalid |
Changed in lxc (Ubuntu Natty): | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → natty-updates |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in lxc (Ubuntu Natty): | |
status: | Triaged → Fix Committed |
tags: |
added: verification-done removed: verification-needed |
Problem solved, I think.
/dev/pts was wrongly mounted as: 620,mode= 620)
none on /dev/pts type devpts (rw,mode=
... when it should be: nosuid, gid=5,mode= 0620)
none on /dev/pts type devpts (rw,noexec,
This could now be an initramfs issue - I installed dropbear recently and it starts up udev and various other initramfs-scripts.
This is not an libvirt bug.. never was ;)
So where does the bug belong now?