<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
AFAICS, you would like to share the filesystem, maybe you not need to specify a rootfs.<br>
<br>
I suggest you remove the containers you previously created in order to restart on a sane base. In case, list them with "lxc-ls" to make sure you have no remaining containers set on your system.<br>
<br>
Then just do without any previous creation:<br>
<br>
lxc-execute -n foo <myapplication><br>
<br>
Your application will run with its own private mount points, pids, ipcs, uts and setup with a cgroup.<br>
<br>
If you need more isolation like the network:<br>
<br>
create a configuration file "eg. lxc.conf"<br>
<br>
lxc.utsname = myapplication<br>
lxc.network.type = veth<br>
lxc.network.flags = up<br>
lxc.network.link = br0<br>
lxc.network.ipv4 = <a href="http://1.2.3.5/24" target="_blank">1.2.3.5/24</a><br>
<br>
and launch it with the command lxc-execute -n foo -f lxc.conf <myapplication><br>
<br>
Or alternatively without a configuration file,<br>
<br>
lxc-execute -n foo -s lxc.utsname=myapplication -s lxc.network.type=veth -s lxc.network.flags=up -s lxc.network.link=br0 -s lxc.network.ipv4=<a href="http://1.2.3.5/24" target="_blank">1.2.3.5/24</a> <myapplication><br>

<br>
At this point, if you need to be more secure or the application you are launching is writing to a directory and this is conflicting with another instance of the same application, let me know, I will give you a more complex configuration.<br>

<br>
What is needed are informations about the application (a web server, a sshd, an autistic application, etc ...).<br>
<br>
Thanks<br><font color="#888888">
  -- Daniel<br>
<br></font></blockquote><div><br>Hi Daniel,<br><br>It seems to work after I removed the rootfs and fstab from the config file. Otherwise I get an error as below : <br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888">
[root@guhan-fedora lxc]# lxc-ls<br>[root@guhan-fedora lxc]# lxc-execute -n centos -f centos.config /bin/bash<br>lxc-execute: No such file or directory - failed to exec /usr/libexec/lxc-init<br>[root@guhan-fedora lxc]# lxc-create -n centos -f centos.config<br>
'centos' created<br>[root@guhan-fedora lxc]# lxc-execute -n centos /bin/bash<br>lxc-execute: No such file or directory - failed to exec /usr/libexec/lxc-init<br>[root@guhan-fedora lxc]# lxc-execute -n centos -f centos.config /bin/bash<br>
lxc-execute: No such file or directory - failed to exec /usr/libexec/lxc-init<br>[root@guhan-fedora lxc]# <br></font></blockquote><div><br>Removing rootfs fixes the issue and my app runs. Does this mean, application container does NOT need rootfs and hence installation of the distro etc. ? For system containers, I installed rootfs using debootstrap. I believe these steps are not required. Please enlighten.<br>
<br>Thanks, <br>Nirmal<br></div></div><br>