<div dir="ltr"><div>Hi Tomasz,</div><div>Please find below the output of mount & cat /proc/mounts</div><div>container config is also attached with this mail<br></div><div dir="ltr"><br></div><div dir="ltr">yasoda@yasoda-HP-Z600-Workstation:~/.local/share/lxc/busybox$ lxc-attach -n busybox<br><br><br>BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash)<br>Enter 'help' for a list of built-in commands.<br><br>/ # mount<br>/dev/loop0 on / type squashfs (ro,relatime)<br>none on /dev type tmpfs (rw,relatime,size=492k,mode=755,uid=100000,gid=100000)<br>proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)<br>proc on /proc/sys/net type proc (rw,nosuid,nodev,noexec,relatime)<br>proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime)<br>proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime)<br>sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)<br>sysfs on /sys/devices/virtual/net type sysfs (rw,relatime)<br>sysfs on /sys/devices/virtual/net type sysfs (rw,nosuid,nodev,noexec,relatime)<br>udev on /dev/full type devtmpfs (rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755)<br>udev on /dev/null type devtmpfs (rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755)<br>udev on /dev/random type devtmpfs (rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755)<br>udev on /dev/tty type devtmpfs (rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755)<br>udev on /dev/urandom type devtmpfs (rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755)<br>udev on /dev/zero type devtmpfs (rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755)<br>udev on /dev/tty0 type devtmpfs (rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755)<br>udev on /dev/tty1 type devtmpfs (rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755)<br>udev on /dev/null type devtmpfs (rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755)<br>udev on /dev/urandom type devtmpfs (rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755)<br>/dev/sda1 on /lib type ext4 (ro,relatime,errors=remount-ro,data=ordered)<br>/dev/sda1 on /usr/lib type ext4 (ro,relatime,errors=remount-ro,data=ordered)<br>/dev/sda1 on /lib64 type ext4 (ro,relatime,errors=remount-ro,data=ordered)<br>securityfs on /sys/kernel/security type securityfs (ro,nosuid,nodev,noexec,relatime)<br>devpts on /dev/console type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)<br>devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1)<br>devpts on /dev/ptmx type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1)<br>devpts on /dev/tty1 type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1)<br>/ # <br>/ # <br>/ # <br>/ # <br>/ # cat /proc/mounts<br>/dev/loop0 / squashfs ro,relatime 0 0<br>none /dev tmpfs rw,relatime,size=492k,mode=755,uid=100000,gid=100000 0 0<br>proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0<br>proc /proc/sys/net proc rw,nosuid,nodev,noexec,relatime 0 0<br>proc /proc/sys proc ro,nosuid,nodev,noexec,relatime 0 0<br>proc /proc/sysrq-trigger proc ro,nosuid,nodev,noexec,relatime 0 0<br>sysfs /sys sysfs ro,nosuid,nodev,noexec,relatime 0 0<br>sysfs /sys/devices/virtual/net sysfs rw,relatime 0 0<br>sysfs /sys/devices/virtual/net sysfs rw,nosuid,nodev,noexec,relatime 0 0<br>udev /dev/full devtmpfs rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755 0 0<br>udev /dev/null devtmpfs rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755 0 0<br>udev /dev/random devtmpfs rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755 0 0<br>udev /dev/tty devtmpfs rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755 0 0<br>udev /dev/urandom devtmpfs rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755 0 0<br>udev /dev/zero devtmpfs rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755 0 0<br>udev /dev/tty0 devtmpfs rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755 0 0<br>udev /dev/tty1 devtmpfs rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755 0 0<br>udev /dev/null devtmpfs rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755 0 0<br>udev /dev/urandom devtmpfs rw,nosuid,relatime,size=3011264k,nr_inodes=752816,mode=755 0 0<br>/dev/sda1 /lib ext4 ro,relatime,errors=remount-ro,data=ordered 0 0<br>/dev/sda1 /usr/lib ext4 ro,relatime,errors=remount-ro,data=ordered 0 0<br>/dev/sda1 /lib64 ext4 ro,relatime,errors=remount-ro,data=ordered 0 0<br>securityfs /sys/kernel/security securityfs ro,nosuid,nodev,noexec,relatime 0 0<br>devpts /dev/console devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0<br>devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1 0 0<br>devpts /dev/ptmx devpts rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1 0 0<br>devpts /dev/tty1 devpts rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1 0 0<br>/ # <br>/ # <br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 2:07 PM Yasoda Padala <<a href="mailto:padala.yasoda@gmail.com">padala.yasoda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>yasoda@yasoda-HP-Z600-Workstation:~/.local/share/lxc/busybox$ lxc-attach -n busybox<br>lxc-attach: busybox: utils.c: get_ns_uid: 548 No such file or directory - Failed to open uid_map</div><div> lxc-attach: busybox: utils.c: get_ns_gid: 579 No such file or directory - Failed to open gid_map<br><br>BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash)<br>Enter 'help' for a list of built-in commands.<br><br><b>/ # mount cat /proc/mounts<br>mount: mounting cat on /proc/mounts failed: No such file or directory</b><br>/ # <br>/ # <br></div><br></div><div>Please find attached container config<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 2:01 PM Tomasz Chmielewski <<a href="mailto:tch@virtall.com" target="_blank">tch@virtall.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2019-02-25 17:27, Yasoda Padala wrote:<br>
<br>
> Actual results: dev folder of container rootfs is read-only on host<br>
> machine but inside container, it is writable.<br>
> <br>
> Please help with inputs on why the dev folder permissions are changed<br>
> on lxc-attach.<br>
<br>
Can you paste the output of:<br>
<br>
mount<br>
cat /proc/mounts<br>
<br>
from the container?<br>
<br>
<br>
Tomasz Chmielewski<br>
<a href="https://lxadm.com" rel="noreferrer" target="_blank">https://lxadm.com</a><br>
</blockquote></div>
</blockquote></div>