[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt-users] OpenStack+libvirt+lxc: lxcContainerGetSubtree:1199 : Failed to read /proc/mounts



On Thu, Nov 8, 2012 at 9:33 PM, Daniel P. Berrange <berrange redhat com> wrote:
On Thu, Nov 08, 2012 at 09:11:51PM +0800, unicell wrote:
> Hi,
>
> I'm running OpenStack on CentOS 6.3 to manage lxc instances. And running
> into series of problem relating libvirt and lxc interaction.
>
> For example, libvirt_lxc segfault (
> https://bugzilla.redhat.com/show_bug.cgi?id=874549) which has an upstream
> fix. And another bugs such as fail to start when SELinux disabled.
>
> Finally, I decides to adopt libvirt 0.10.2, self compiled
> from libvirt-0.10.2-1.fc17.src.rpm. And now coming across following message
> when starting lxc container.
>
> lxcContainerGetSubtree:1199 : Failed to read /proc/mounts: No such file or
> directory

Try using libvirt 1.0.0, the version you built has a bug in its LXC
support causing the error you see.

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

Thanks Daniel, libvirt 1.0.0 imposed too many extra dependencies on my CentOS 6.3 system. 

I downgraded libvirt to 0.9.8 (CentOS 6.3 shipped with libvirt 0.9.10), and it seems to be working with LXC and OpenStack. At least, it is can successfully launch and run LXC instances.

--
Qiu Yu

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]