Guillaume Thouvenin
2013-Apr-03 08:52 UTC
[libvirt-users] Cannot recv data: Connection reset by peer
Hello, I'm trying to install and use libvirt 1.0.4 on an Ubuntu 12.04.2. I compiled libvirt by doing: $ ./configure --with-selinux=no --with-gnutls $ make $ sudo make install Everything works fine and are installed under /usr/local Then I started the libvirtd manually and try to start a linux container that has the following configuration: $ virsh -c lxc:/// dumpxml lxcvm1 <domain type='lxc'> <name>lxcvm1</name> <uuid>168edaae-e3b5-2d06-7c65-9aa444a6f234</uuid> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>2097152</currentMemory> <vcpu placement='static'>1</vcpu> <os> <type arch='x86_64'>exe</type> <init>/bin/sh</init> </os> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/local/libexec/libvirt_lxc</emulator> <filesystem type='mount' accessmode='passthrough'> <source dir='/home/thouveng/lxc_dir/lxcvm1/rootfs'/> <target dir='/'/> </filesystem> <console type='pty'> <target type='lxc' port='0'/> </console> </devices> </domain> When I start the container I have the following error: $ virsh -c lxc:/// start lxcvm1 error: Failed to start domain lxcvm1 error: internal error guest failed to start: PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=168edaae-e3b5-2d06-7c65-9aa444a6f234 LIBVIRT_LXC_UUID=168edaae-e3b5-2d06-7c65-9aa444a6f234 LIBVIRT_LXC_NAME=lxcvm1 /bin/sh error receiving signal from container: Input/output error The libvirtd is started with info option so I can see: 2013-04-03 08:49:20.167+0000: 17046: error : virNetSocketReadWire:1362 : Cannot recv data: Connection reset by peer 2013-04-03 08:49:20.267+0000: 17051: error : virLXCProcessStart:1248 : internal error guest failed to start: PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=168edaae-e3b5-2d06-7c65-9aa444a6f234 LIBVIRT_LXC_UUID=168edaae-e3b5-2d06-7c65-9aa444a6f234 LIBVIRT_LXC_NAME=lxcvm1 /bin/sh error receiving signal from container: Input/output error In libvirtd.conf I have: auth_unix_ro = "none" auth_unix_rw = "none" auth_tcp = "none" auth_tls = "none" And in libvirt.conf everything is commented. I have this error as normal user (in libvirtd group) and also as root. Any hints to go further in the debugging are welcome. Regards, Guillaume
Javi Legido
2013-Apr-03 09:46 UTC
[libvirt-users] Cannot recv data: Connection reset by peer
Bonjour Guillaume. There's a particular reason to compile libvirt rather than install the package for Ubuntu Server? And, there's a particular reason to use LXC? I'm not an expert, but if you just want to start using KVM and install a VM I can help you through a simpler method. Regards. Javier 2013/4/3 Guillaume Thouvenin <guillaume.thouvenin at polymtl.ca>> Hello, > > I'm trying to install and use libvirt 1.0.4 on an Ubuntu 12.04.2. I > compiled libvirt by doing: > > $ ./configure --with-selinux=no --with-gnutls > $ make > $ sudo make install > > Everything works fine and are installed under /usr/local > Then I started the libvirtd manually and try to start a linux container > that has the following configuration: > > $ virsh -c lxc:/// dumpxml lxcvm1 > <domain type='lxc'> > <name>lxcvm1</name> > <uuid>168edaae-e3b5-2d06-7c65-**9aa444a6f234</uuid> > <memory unit='KiB'>2097152</memory> > <currentMemory unit='KiB'>2097152</**currentMemory> > <vcpu placement='static'>1</vcpu> > <os> > <type arch='x86_64'>exe</type> > <init>/bin/sh</init> > </os> > <clock offset='utc'/> > <on_poweroff>destroy</on_**poweroff> > <on_reboot>restart</on_reboot> > <on_crash>destroy</on_crash> > <devices> > <emulator>/usr/local/libexec/**libvirt_lxc</emulator> > <filesystem type='mount' accessmode='passthrough'> > <source dir='/home/thouveng/lxc_dir/**lxcvm1/rootfs'/> > <target dir='/'/> > </filesystem> > <console type='pty'> > <target type='lxc' port='0'/> > </console> > </devices> > </domain> > > When I start the container I have the following error: > > $ virsh -c lxc:/// start lxcvm1 > error: Failed to start domain lxcvm1 > error: internal error guest failed to start: PATH=/bin:/sbin TERM=linux > container=lxc-libvirt container_uuid=168edaae-e3b5-**2d06-7c65-9aa444a6f234 > LIBVIRT_LXC_UUID=168edaae-**e3b5-2d06-7c65-9aa444a6f234 > LIBVIRT_LXC_NAME=lxcvm1 /bin/sh > error receiving signal from container: Input/output error > > The libvirtd is started with info option so I can see: > > 2013-04-03 08:49:20.167+0000: 17046: error : virNetSocketReadWire:1362 : > Cannot recv data: Connection reset by peer > 2013-04-03 08:49:20.267+0000: 17051: error : virLXCProcessStart:1248 : > internal error guest failed to start: PATH=/bin:/sbin TERM=linux > container=lxc-libvirt container_uuid=168edaae-e3b5-**2d06-7c65-9aa444a6f234 > LIBVIRT_LXC_UUID=168edaae-**e3b5-2d06-7c65-9aa444a6f234 > LIBVIRT_LXC_NAME=lxcvm1 /bin/sh > error receiving signal from container: Input/output error > > > In libvirtd.conf I have: > > auth_unix_ro = "none" > auth_unix_rw = "none" > auth_tcp = "none" > auth_tls = "none" > > And in libvirt.conf everything is commented. > > I have this error as normal user (in libvirtd group) and also as root. Any > hints to go further in the debugging are welcome. > > > Regards, > Guillaume > > ______________________________**_________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/**mailman/listinfo/libvirt-users<https://www.redhat.com/mailman/listinfo/libvirt-users> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130403/368471df/attachment.htm>