[libvirt-users] Unable to start LXC on Gentoo w/ libvirt 1.0.4 or 1.0.5. 1.0.3 works

Daniel P. Berrange berrange at redhat.com
Tue May 14 14:27:41 UTC 2013


On Tue, May 14, 2013 at 09:19:51AM -0500, Dennis Jenkins wrote:
> On Tue, May 14, 2013 at 9:12 AM, Daniel P. Berrange <berrange at redhat.com>wrote:
> 
> > On Tue, May 14, 2013 at 09:06:36AM -0500, Dennis Jenkins wrote:
> > > The log is large to place inline in an email (32K), so I posted it (no
> > > expiration) to pastebin.  But below are the juicy bits.  If you want the
> > > entire log in the email, I will resend it.
> > >
> > > http://pastebin.com/nXcNQukz
> >
> > Hmm, so from the logs I'm fairly certain the missing path is the
> > /.oldroot//var/run/libvirt/lxc/dwj-lnx-dev.devpts one, not /dev/pts
> >
> > Can you tell me if any part of '/var/run/libvirt/lxc/' is a symlink
> > to elsewhere ?  In particular is '/var/run'  a symlink, and if so
> > is it relative or absolute ?
> >
> >
> No symlinks under "/var/run/libvirt", but "/var/run" is a symlink to "/run".
> 
> ostara ~ # file /var/run
> /var/run: symbolic link to `/run'

Ok, that'll be the problem. When libvirt prepends /.oldroot onto
the path, the symlink keeps pointing to /run instead of to
/.oldroot/run :-(

On Fedora "/var/run" is a relative symlink to "../run" to avoid
these kinds of problem.

As a quick workaround you can make your symlink relative too.

I'll get a fix into the next libvirt release to deal with
absolute symlinks better.

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




More information about the libvirt-users mailing list