On Tue, May 14, 2013 at 9:27 AM, Daniel P. Berrange <berrange@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@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.