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. What am I missing? -C-
Here is the configuration on pastebin, in case your mua ate it or you're viewing the mailman archive: http://pastebin.com/ByWHcb9x. Chris Haumesser wrote:> My configuration is very simply:
On 12/07/2011 03:53 PM, 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 fdThere have been some lxc fixes in the meantime; can you repeat this test on 0.9.8-rc2 to see if we have fixed it already? -- Eric Blake eblake at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 620 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20111207/cb404f2d/attachment.sig>
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 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 :|