On Thu, Dec 08, 2011 at 09:06:01AM +0000, Daniel P. Berrange wrote:
On Wed, Dec 07, 2011 at 02:53:41PM -0800, Chris Haumesser wrote:
> I'm testing 0.9.7 now with lxc, and get the following error when trying
> to start a container:
>
> 2011-12-07 22:49:26.293: 1997: error : lxcControllerRun:1158 :
> unsupported configuration: Expected exactly one TTY fd
>
> My configuration is very simply:
>
> <domain type='lxc'>
> <name>hw</name>
> <uuid>38320e75-1ba0-d85a-6138-532a3a66f13d</uuid>
> <memory>102400</memory>
> <currentMemory>102400</currentMemory>
> <vcpu>1</vcpu>
> <os>
> <type arch='x86_64'>exe</type>
> <init>/bin/bash</init>
> </os>
> <clock offset='utc'/>
> <on_poweroff>destroy</on_poweroff>
> <on_reboot>restart</on_reboot>
> <on_crash>destroy</on_crash>
> <devices>
> <emulator>/usr/lib/libvirt/libvirt_lxc</emulator>
> <console type='pty'>
> <target type='lxc' port='0'/>
> </console>
> </devices>
> </domain>
>
> If I try to add any different type of console, I get an error that only
> pty consoles are supported.
Nothing, only type='pty' is supported for consoles in LXC. The other
console types like tcp, udp, fifo, etc are only supported by QEMU
Actually it is a stupid mistake on my part, which affects LXC
guests which do not have any <filesystem> element. The patch
is here:
https://www.redhat.com/archives/libvir-list/2011-December/msg00409.html
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|