Re: Unable to start LXC on Gentoo w/ libvirt 1.0.4 or 1.0.5. 1.0.3 works

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

 



On Tue, May 14, 2013 at 9:27 AM, Daniel P. Berrange <berrange@xxxxxxxxxx> 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@xxxxxxxxxx>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.
_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux