[libvirt-users] lxc errors on 0.9.7

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: hw 38320e75-1ba0-d85a-6138-532a3a66f13d 102400 102400 1 exe /bin/bash destroy restart destroy /usr/lib/libvirt/libvirt_lxc 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 fd
There 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@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

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 :|

Daniel P. Berrange wrote:
Nothing, only type='pty' is supported for consoles in LXC.
Oops, I had accidentally pasted the wrong (experimental) config. I get the exact same error when I use type='pty'. See: http://pastebin.com/gC946Y0m Is it possible that the libvirt_lxc emulator is getting called with a missing or incorrect value for its -c argument? It did work for me under 0.9.2. I had trouble building 9.6 and 9.8-rc2 deb packages for squeeze, so did not test those versions yet. -C-

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 :|
participants (4)
-
Chris Haumesser
-
Chris Haumesser
-
Daniel P. Berrange
-
Eric Blake