[libvirt-users] libvirt v1.0.2 fails to boot LXC container, but v1.0.0 works

Gao feng gaofeng at cn.fujitsu.com
Wed Mar 6 01:27:15 UTC 2013


On 2013/03/06 06:13, Dennis Jenkins wrote:
> On Mon, Feb 11, 2013 at 3:57 AM, Michal Privoznik <mprivozn at redhat.com> wrote:
>> On 08.02.2013 21:46, Dennis Jenkins wrote:
>>> On Fri, Feb 8, 2013 at 12:38 PM, Dennis Jenkins
>>> <dennis.jenkins.75 at gmail.com> wrote:
>>>> Hello.
>>>>
>>>> tl;dr = v1.0.0 can boot my LXC containers, v.1.0.1 and v.1.0.2 fails.
>>>> Paraphrased error message: "lxcContainerMountProcFuse:616 : Failed to
>>>> mount ..../meminfo"
>>>>
>>>>     I'd like to know if my host is misconfigured, or my domains, or
>>>> ... why 1.0.2 and 1.0.1 are not working for me.
>>>
>>> http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=ae9874e471fc61d9d654247c2fd24d9baa455afa
>>>
> 
> Update: 1.0.3 still fails to boot an LXC container on Gentoo Linux.
> 
> Libvirt 1.0.3 appeared in Gentoo Portage this morning.  I updated my
> host's kernel to 3.7.10 and libvirt from 1.0.0 to 1.0.3.  I still
> cannot boot an LXC container.  This exact same container was working
> fine 30 minutes ago on libvirt 1.0.0.
> 
> I tried both the "libvirt-1.0.3" ebuild and the "libvirt-9999" ebuild
> (get most recent master branch from git).  Both produce the same
> results.
> 
> 
> ostara ~ # equery l 'libvirt'
>  * Searching for libvirt ...
> [IP-] [ -] app-emulation/libvirt-9999:0
> 
> ostara ~ # virsh --version
> 1.0.3
> 
> ostara ~ # uname -a
> Linux ostara 3.7.10-gentoo #1 SMP PREEMPT Tue Mar 5 15:23:39 CST 2013
> x86_64 Intel(R) Core(TM) i5 CPU 760 @ 2.80GHz GenuineIntel GNU/Linux
> 
> ostara ~ # virsh -c lxc:// list --all
>  Id    Name                           State
> ----------------------------------------------------
>  -     dwj-lnx-dev                    shut off
>  -     vm1                            shut off
> 
> ostara ~ # virsh -c lxc:// start dwj-lnx-dev
> error: Failed to start domain dwj-lnx-dev
> error: internal error guest failed to start: PATH=/bin:/sbin
> TERM=linux container=lxc-libvirt
> container_uuid=fbcd8c3a-9939-12b4-727d-5d3526bc448f
> LIBVIRT_LXC_UUID=fbcd8c3a-9939-12b4-727d-5d3526bc448f
> LIBVIRT_LXC_NAME=dwj-lnx-dev /sbin/init
> 2013-03-05 21:55:48.474+0000: 1: info : libvirt version: 1.0.3
> 2013-03-05 21:55:48.474+0000: 1: error : lxcContainerMountProcFuse:616
> : Failed to mount /.oldroot//var/run/libvirt/lxc/dwj-lnx-dev/meminfo
> on /proc/meminfo: No such file or directory
> 2013-03-05 21:55:48.503+0000: 6358: info : libvirt version: 1.0.3
> 2013-03-05 21:55:48.503+0000: 6358: error : virLXCControllerRun:1462 :
> Unable to send container continue message: Broken pipe
> 2013-03-05 21:55:48.527+0000: 6358: error : virCommandWait:2313 :
> internal error Child process (ip link del veth1) unexpected exit
> status 1: Cannot find device "veth1"
> 

It seems the file /.oldroot//var/run/libvirt/lxc/dwj-lnx-dev/meminfo isn't
exist.

I can't reproduce this problem on my workstation.So I can only give you
some advice, change the codes, make lxcContainerMountProcFuse always return
successfully. You will be able to start lxc domain now. And on host, let's
have a look at the file /var/run/libvirt/lxc/dwj-lnx-dev/meminfo.

ll /var/run/libvirt/lxc/dwj-lnx-dev/
cat /var/run/libvirt/lxc/dwj-lnx-dev/meminfo

Thanks!




More information about the libvirt-users mailing list