[lxc-users] LXD: error: open /etc/subuid: no such file or directory

Michael H. Warfield mhw at WittsEnd.com
Wed Nov 12 19:15:32 UTC 2014


On Thu, 2014-11-13 at 00:05 +0530, Kunal Kushwaha wrote:
> Hi

> Thanks for your quick reply.
> It has resolved the issue, but now I am facing another issue.

I haven't done anything with lxd up to this point so I'm just making a
general observation.  I think you have a couple of things mixed up...

> $sudo ./lxd --tcp 10.0.3.1:8888
> error: cannot listen on unix socket: listen unix
> /var/lib/lxd/unix.socket: bind: address already in use

> I confirmed these port are not used, and have tried other ports too.

The error is saying a "unix socket" (AF_UNIX), not a tcp/ip socket
(AF_INET).  What it's complaining about is the unix socket (named pipe)
"/var/lib/lxd/unix.socket" that it can not access saying that it's
already in use.  I'm not sure what that means in this context.  Do you
already have an instance of lxd running?

> Regards,
> Kunal Kushwaha

Regards,
Mike

> On Wed, Nov 12, 2014 at 11:40 PM, Tycho Andersen
> <tycho.andersen at canonical.com> wrote:
> > On Wed, Nov 12, 2014 at 11:38:17PM +0530, Kunal Kushwaha wrote:
> >> Hi Stéphane,
> >>
> >> I am now setting up  my dev environment in ubuntu-trusty-32 with
> >> kernel 3.13.0-39-generic.
> >> Now I am getting problem
> >>
> >> root at vagrant-ubuntu-trusty-32:/home/vagrant/go/src/github.com/lxc/lxd/lxd# ./lxd
> >> error: User "root" has no subuids.
> >>
> >>
> >> Basically I am creating  dev environment in vagrant.
> >
> > You can fix this by adding a root to /etc/subuid and /etc/subgid,
> > something like:
> >
> > root:100000:65536
> >
> > should work. (Of course, you want to be sure that root's range doesn't
> > overlap with anything that already exists.)
> >
> > Tycho
> >
> >>
> >> Regards,
> >> Kunal Kushwaha
> >>
> >>
> >>
> >>
> >> On Tue, Nov 11, 2014 at 11:53 PM, Stéphane Graber <stgraber at ubuntu.com> wrote:
> >> > On Tue, Nov 11, 2014 at 11:51:01PM +0530, Kunal Kushwaha wrote:
> >> >> Hi,
> >> >>
> >> >> I am trying setup development environment for lxd.
> >> >> But I am facing issue of "error: open /etc/subuid: no such file or directory"
> >> >>
> >> >> $sudo ./lxd --tcp 127.0.0.1:8080
> >> >> error: open /etc/subuid: no such file or directory
> >> >>
> >> >> Please help to resolve this.
> >> >>
> >> >> Regards,
> >> >> Kunal Kushwaha
> >> >
> >> > You need a system with unprivileged LXC support, which currently means a
> >> > 3.12 or higher kernel and a recent enough version of shadow to get you
> >> > /etc/subuid and /etc/subgid as well as newuidmap and newgidmap.
> >> >
> >> > You can read more about that requirement of lxd at:
> >> >  - https://github.com/lxc/lxd/issues/19
> >> >  - https://github.com/lxc/lxd/blob/master/specs/userns-idmap.md
> >> >
> >> > --
> >> > Stéphane Graber
> >> > Ubuntu developer
> >> > http://www.ubuntu.com
> >> >
> >> > _______________________________________________
> >> > lxc-users mailing list
> >> > lxc-users at lists.linuxcontainers.org
> >> > http://lists.linuxcontainers.org/listinfo/lxc-users
> >> _______________________________________________
> >> lxc-users mailing list
> >> lxc-users at lists.linuxcontainers.org
> >> http://lists.linuxcontainers.org/listinfo/lxc-users
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> 

-- 
Michael H. Warfield (AI4NB) | (770) 978-7061 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 465 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141112/c17de6d5/attachment.sig>


More information about the lxc-users mailing list