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

Dennis Jenkins dennis.jenkins.75 at gmail.com
Tue May 14 14:34:58 UTC 2013


On Tue, May 14, 2013 at 9:27 AM, Daniel P. Berrange <berrange at redhat.com>wrote:

> 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:
> > > > 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.
>
>
ostara ~ # cd /var
ostara var # rm run; ln -s ../run run

ostara var # virsh -c lxc:/// start dwj-lnx-dev
Domain dwj-lnx-dev started

Yeah.  Diagnosis confirmed.  Daniel, thank you for your assistance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130514/e465721b/attachment.htm>


More information about the libvirt-users mailing list