On Thu, Nov 8, 2012 at 9:33 PM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Thu, Nov 08, 2012 at 09:11:51PM +0800, unicell wrote:<br>
> Hi,<br>
><br>
> I'm running OpenStack on CentOS 6.3 to manage lxc instances. And running<br>
> into series of problem relating libvirt and lxc interaction.<br>
><br>
> For example, libvirt_lxc segfault (<br>
> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=874549" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=874549</a>) which has an upstream<br>
> fix. And another bugs such as fail to start when SELinux disabled.<br>
><br>
> Finally, I decides to adopt libvirt 0.10.2, self compiled<br>
> from libvirt-0.10.2-1.fc17.src.rpm. And now coming across following message<br>
> when starting lxc container.<br>
><br>
> lxcContainerGetSubtree:1199 : Failed to read /proc/mounts: No such file or<br>
> directory<br>
<br>
</div>Try using libvirt 1.0.0, the version you built has a bug in its LXC<br>
support causing the error you see.<br>
<span class="HOEnZb"><font color="#888888"><br>
Daniel<br>
--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</font></span></blockquote></div><br><div>Thanks Daniel, libvirt 1.0.0 imposed too many extra dependencies on my CentOS 6.3 system. </div><div><br></div><div>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.</div>

<div><br clear="all">--<br>Qiu Yu<br></div>