[lxc-users] lxc not able to mount root dir
Sujith Bhaskaran
sbhaskaran at salesforce.com
Mon Aug 31 22:35:27 UTC 2015
can any one know a solution for this ?
I am trying to run docker with lxc driver and ended up in weird problem.
lxc-start: conf.c: mount_entry: 2049 No such file or directory - failed to
mount 'tmpfs' on '/usr/lib64/lxc/rootfs///run'
lxc-start: conf.c: lxc_setup: 4163 failed to setup the mount entries for
'0f0a23c52b385b795a2b96f4801e8899a9494dd17dee869831200052b8aeaf16'
lxc-start: start.c: do_start: 688 failed to setup the container
lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2
lxc-start: start.c: __lxc_start: 1080 failed to spawn
'0f0a23c52b385b795a2b96f4801e8899a9494dd17dee869831200052b8aeaf16'
lxc-start: lxc_start.c: main: 342 The container failed to start.
lxc-start: lxc_start.c: main: 346 Additional information can be obtained by
setting the --logfile and --logpriority options.
This happens only when I use docker1.5 or greater.
uname -r
3.10.0-229.el7.x86_64
docker info
Containers: 4
Images: 10
Storage Driver: devicemapper
Pool Name: docker-253:0-67150313-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: xfs
Data file: /dev/loop2
Metadata file: /dev/loop3
Data Space Used: 849 MB
Data Space Total: 107.4 GB
Data Space Available: 50.24 GB
Metadata Space Used: 1.425 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.146 GB
Udev Sync Supported: true
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.93-RHEL7 (2015-01-28)
Execution Driver: lxc-1.0.7
Kernel Version: 3.10.0-229.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.0 (Maipo)
CPUs: 40
Total Memory: 377.7 GiB
Name: docker97.ops.svqe.jigsaw.com
ID: QTBG:5XIR:DLUS:UTCY:FZLY:OSFX:I4VF:GK24:VRDC:R2NU:CMLB:IA7Z
Debug mode (server): true
Debug mode (client): false
Fds: 13
Goroutines: 16
EventsListeners: 0
Init SHA1: 877abac276b80033317bbab425062215d5c55837
Init Path: /usr/libexec/docker/dockerinit
Docker Root Dir: /var/lib/docker
Docker run command:-
docker run --net=none -m=4M --lxc-conf="lxc.network.type = veth" --lxc
-conf="lxc.network.ipv4 = <ip>/24" --lxc-conf="lxc.network.ipv4.gateway =
gw" --lxc-conf="lxc.network.link = br0" --lxc-conf="lxc.network.name =
eth0" --lxc-conf="lxc.network.flags = up" --lxc-conf="lxc.loglevel = 1" -i
-t rh7:1 /bin/bash
On Fri, Aug 21, 2015 at 11:33 AM, Sujith Bhaskaran <
sbhaskaran at salesforce.com> wrote:
> Hi ,
>
>
> I am trying to run docker with lxc driver and ended up in weird problem.
>
>
> lxc-start: conf.c: mount_entry: 2049 No such file or directory - failed to
> mount 'tmpfs' on '/usr/lib64/lxc/rootfs///run'
>
> lxc-start: conf.c: lxc_setup: 4163 failed to setup the mount entries for
> '0f0a23c52b385b795a2b96f4801e8899a9494dd17dee869831200052b8aeaf16'
>
> lxc-start: start.c: do_start: 688 failed to setup the container
>
> lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2
>
> lxc-start: start.c: __lxc_start: 1080 failed to spawn
> '0f0a23c52b385b795a2b96f4801e8899a9494dd17dee869831200052b8aeaf16'
>
> lxc-start: lxc_start.c: main: 342 The container failed to start.
>
> lxc-start: lxc_start.c: main: 346 Additional information can be obtained
> by setting the --logfile and --logpriority options.
>
>
> This happens only when I use docker1.5 or greater.
>
>
> uname -r
>
> 3.10.0-229.el7.x86_64
>
>
> docker info
>
> Containers: 4
>
> Images: 10
>
> Storage Driver: devicemapper
>
> Pool Name: docker-253:0-67150313-pool
>
> Pool Blocksize: 65.54 kB
>
> Backing Filesystem: xfs
>
> Data file: /dev/loop2
>
> Metadata file: /dev/loop3
>
> Data Space Used: 849 MB
>
> Data Space Total: 107.4 GB
>
> Data Space Available: 50.24 GB
>
> Metadata Space Used: 1.425 MB
>
> Metadata Space Total: 2.147 GB
>
> Metadata Space Available: 2.146 GB
>
> Udev Sync Supported: true
>
> Data loop file: /var/lib/docker/devicemapper/devicemapper/data
>
> Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
>
> Library Version: 1.02.93-RHEL7 (2015-01-28)
>
> Execution Driver: lxc-1.0.7
>
> Kernel Version: 3.10.0-229.el7.x86_64
>
> Operating System: Red Hat Enterprise Linux Server 7.0 (Maipo)
>
> CPUs: 40
>
> Total Memory: 377.7 GiB
>
> Name: docker97.ops.svqe.jigsaw.com
>
> ID: QTBG:5XIR:DLUS:UTCY:FZLY:OSFX:I4VF:GK24:VRDC:R2NU:CMLB:IA7Z
>
> Debug mode (server): true
>
> Debug mode (client): false
>
> Fds: 13
>
> Goroutines: 16
>
> EventsListeners: 0
>
> Init SHA1: 877abac276b80033317bbab425062215d5c55837
>
> Init Path: /usr/libexec/docker/dockerinit
>
> Docker Root Dir: /var/lib/docker
>
>
> Docker run command:-
>
>
> docker run --net=none -m=4M --lxc-conf="lxc.network.type = veth"
> --lxc-conf="lxc.network.ipv4 = <ip>/24"
> --lxc-conf="lxc.network.ipv4.gateway = gw" --lxc-conf="lxc.network.link =
> br0" --lxc-conf="lxc.network.name = eth0" --lxc-conf="lxc.network.flags =
> up" --lxc-conf="lxc.loglevel = 1" -i -t rh7:1 /bin/bash
>
> can you let me know what is happening here and How I can get it working?
>
>
>
>
> --
> Thanks & Regards
> Sujith Bhaskaran
> 650-653-2093
>
--
Thanks & Regards
Sujith Bhaskaran
650-653-2093
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150831/b66e901a/attachment.html>
More information about the lxc-users
mailing list