[Lxc-users] lxc-start fails when / is a shared mount

2011-09-19 Thread Marios Titas
Hi list,

I just ran into this problem: If you do
# mount --make-shared /
to mark / as a shared mount then lxc-start fails when you have
specified a lxc.rootfs in the configuration file. The error that
lxc-start gives is the following:
Invalid argument - pivot_root syscall failed
Is this the normal behavior or is this a kernel bug?

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerryreg; mobile platform with sessions, labs  more.
See new tools and technologies. Register for BlackBerryreg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] Problem with lxc

2011-09-19 Thread Serge E. Hallyn
Quoting Kristian Kirilov (d3v1...@d3v1ous.info):

...

 lxc-checkconfig show this status:
 
 blackbird:~# lxc-checkconfig
 Kernel config /proc/config.gz not found, looking in other places...
 Found kernel config file /boot/config-3.0.4
 --- Namespaces ---
 Namespaces: enabled
 Utsname namespace: enabled
 Ipc namespace: enabled
 Pid namespace: enabled
 User namespace: enabled
 Network namespace: enabled
 Multiple /dev/pts instances: enabled
 
 --- Control groups ---
 Cgroup: enabled
 Cgroup namespace: required

This one should be fine to ignore.  I've sent a patch to not warn about
this when there's not an actual problem.  Do you get a failure when you
actually try to start a container?

 Cgroup device: enabled
 Cgroup sched: enabled
 Cgroup cpu account: enabled
 Cgroup memory controller: enabled
 Cgroup cpuset: enabled
 
 --- Misc ---
 Veth pair device: enabled
 Macvlan: enabled
 Vlan: enabled
 File capabilities: enabled
 
 Note : Before booting a new kernel, you can check its configuration
 usage : CONFIG=/path/to/config /usr/local/bin/lxc-checkconfig
 
 blackbird:~#
 
 Can somebody help to me to fix this issue?
 Thanks
 
 
 --
 BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
 http://p.sf.net/sfu/rim-devcon-copy2
 ___
 Lxc-users mailing list
 Lxc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/lxc-users

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerryreg; mobile platform with sessions, labs  more.
See new tools and technologies. Register for BlackBerryreg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] lxc-start fails when / is a shared mount

2011-09-19 Thread Serge Hallyn
Quoting Marios Titas (redneb8...@gmail.com):
 Hi list,
 
 I just ran into this problem: If you do
 # mount --make-shared /
 to mark / as a shared mount then lxc-start fails when you have
 specified a lxc.rootfs in the configuration file. The error that
 lxc-start gives is the following:
 Invalid argument - pivot_root syscall failed
 Is this the normal behavior or is this a kernel bug?

It is normal behavior.  Perhaps lxc should fall back to chroot when
pivot_root fails.

-serge

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerryreg; mobile platform with sessions, labs  more.
See new tools and technologies. Register for BlackBerryreg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] Help regarding lxc

2011-09-19 Thread nishant mungse
hello all
Thnks 4 comments. I hv resolved that issue, when we comment lxc.rootfs the
lxc-execute works. My question is why for lxc-execute the rootfs is not
needed ?
Regards,
Nishant.

On Mon, Sep 19, 2011 at 9:16 PM, Serge E. Hallyn serge.hal...@canonical.com
 wrote:

 Quoting nishant mungse (nishantmun...@gmail.com):
  Hii all
 
  I am using lxc for creating containers.
 
   But when i create lxc container using lxc-create -n abc it creates a
 abc

 Exactly what command did you use?  Please list the configuration file as
 well.
 I will try to reproduce.

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users