<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Nov 13, 2015 at 1:58 PM, Eldon Kuzhyelil <span dir="ltr"><<a href="mailto:eldon.mec@gmail.com" target="_blank">eldon.mec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br></div>I'm trying to set up two LXC containers where one contains a python programm and the other contains my postgres database.I have got the connection between two containers.Now im stuck with fstab configuration file.The fstab file in my system is as below:<br><br>root@eldon-X550LC:/home/eldon# lxc-ls -f<br>NAME                STATE    IPV4       IPV6  AUTOSTART  <br>-------------------------------------------------------<br>my_lxc_ubuntu       RUNNING  10.0.3.87  -     NO         <br>postgresLXC_ubuntu  STOPPED  -          -     NO<br>    <br>root@eldon-X550LC:/home/eldon# less /etc/fstab<br><br># /etc/fstab: static file system information.<br>#<br># Use 'blkid' to print the universally unique identifier for a<br># device; this may be used with UUID= as a more robust way to name devices<br># that works even if disks are added and removed. See fstab(5).<br>#<br># <file system> <mount point>   <type>  <options>       <dump>  <pass><br># / was on /dev/sda6 during installation<br>UUID=0c85eedf-589a-4dd3-a2e3-41e133a7dc13 /               ext2    errors=remount-ro 0       1<br>~<br>~<br>~<br><br></div>But when i am trying to view the fstab file inside my LXC container i am getting this:<br><br>ubuntu@my_lxc_ubuntu:~$ less /etc/fstab<br># UNCONFIGURED FSTAB FOR BASE SYSTEM<br>...skipping...<br># UNCONFIGURED FSTAB FOR BASE SYSTEM<br><br></div>Is there any error here?<br><div><div><div><br></div></div></div></div></blockquote><div><br></div><div>... and your problem is?</div><div><br></div><div>/etc/fstab inside the container is pretty much ignored. At least when using ubuntu, the default apparmor policy would prevent the containers from being able to mount anything. Which is normal. All container mounts are done on the host side (including via container's config file).</div><div><br></div><div>When NOT using apparmor-capable distro, or when you specifically allow mounts inside the container, it's still best to let the host do the mounting.</div><div><br></div><div>So an empty fstab INSIDE the container is normal. Nothing wrong with that.</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>