Re: [Lxc-users] (no subject)

2013-10-04 Thread Andreas Laut
You can also symlink to the path you want.
rmdir /var/lib/lxc
ln -s /mywantedpath /var/lib/lxc

Regards,
Andreas

Am 04.10.2013 07:40, schrieb Tamas Papp:
 On 10/04/2013 06:03 AM, Kalyana sundaram wrote:
 Hi
 lxc by default creates rootfs and fstab on /var/lib/lxc
 Is it possible to use some other directory?
 Because when I do lxc-ls, it does a ls of /var/lib/lxc

 Either use lxcpath=/some/other/dir in /etc/lxc/lxc.conf or -P switch


 Cheers,
 tamas

 --
 October Webinars: Code for Performance
 Free Intel webinars can help you accelerate application performance.
 Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
 the latest Intel processors and coprocessors. See abstracts and register 
 http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
 ___
 Lxc-users mailing list
 Lxc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/lxc-users

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] Restoring a process fails under lxc 1.0.0.alpha1

2013-10-04 Thread Serge Hallyn
Quoting Frederico Araujo (arau...@gmail.com):
 Hi,
 
 I've been using checkpoint/restore (CRIU 0.7) under lxc containers on
 Ubuntu Saucy for a while and everything was running smoothly until I
 updated my lxc from version 0.9 to the new release (1.0.0.alpha1). After
 the update, restoring even a simple program (no sockets, just a simple
 infinite loop printing some text) returns:
 
 Error (cr-restore.c:894): 475: Can't open /proc/sys/kernel/ns_last_pid:
 Permission denied
 
 My container was configured using the lxc template for Ubuntu, using the
 default configuration. So, my question is: did the new version of lxc
 changed anything related to access permission to the
 /proc/sys/kernel/ns_last_pid file? I am running CRIU restore as root inside

The apparmor policy doesn't allow writing to that file by default.
Either add an allow statement to the policy, or have the container
run unconfined.

 the container. I made a small test running CRIU restore on the host machine
 and it works fine; my best guess is that something has changed in the way
 LXC handles the container's root permissions. If not, am I missing
 something? Is there a way to allow a container root to open ns_last_pid
 with R/W permissions from inside the container (I checked CRIU source code
 and this is where it fails)?
 
 I am running host and container on Ubuntu Saucy (3.11.0-7). Also, 'sysctl
 kernel.ns_last_pid' works fine from inside the container.
 
 Any help will be appreciated!
 Thanks,
 Fred

 --
 LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
 Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
 http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk

 ___
 Lxc-users mailing list
 Lxc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/lxc-users


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


[Lxc-users] lxc-instance fail

2013-10-04 Thread Tamas Papp
hi,

Starting a container from cli by lxc-start works fine, lxc-info shows the right 
state.

Using upstart:

start lxc-instance NAME=archiva-test CONFIG=/tank/lxc/archiva-test/config

# lxc-info -n archiva-test
state: STOPPED

Though the container gets started.

As a result I cannot use lxc-stop, lxc-ls or any other tool.
But, stop lxc-instance... works fine.


I was able to reproduce this issue on various machines with the latest daily 
build.


Am I alone with this issue?


10x
tamas

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] lxc-instance fail

2013-10-04 Thread zoolook
On 13/10/04 10:29, Stéphane Graber wrote:
 On Fri, Oct 04, 2013 at 04:11:58PM +0200, Tamas Papp wrote:
  hi,
  
  Starting a container from cli by lxc-start works fine, lxc-info shows the 
  right state.
  
  Using upstart:
  
  start lxc-instance NAME=archiva-test CONFIG=/tank/lxc/archiva-test/config
  
  # lxc-info -n archiva-test
  state: STOPPED
  
  Though the container gets started.
  
  As a result I cannot use lxc-stop, lxc-ls or any other tool.
  But, stop lxc-instance... works fine.
  
  
  I was able to reproduce this issue on various machines with the latest 
  daily build.
  
  
  Am I alone with this issue?
  
  
  10x
  tamas
 
 
 Try: lxc-info -n archiva-test -P /tank/lxc
 
 LXC can't guess for you where you've put your containers, so it'll look
 for /var/lib/lxc by default, if they're somewhere else, you need to use
 -P or set the path in /etc/lxc/lxc.conf (lxcpath = /tank/lxc)

I have also seen this problem from time to time in different boxes and different
versions of lxc. It's not easily reproducible and I can't remember if I reported
it (maybe not since I couldn't make a 100% reproducible test case).

I also use a non-standard directory, /srv/lxc in my case. Symlinking and -P made
no difference. 

When the bug manifests the only solution I found was a complete reboot of the
host.

Regards,
Norberto



signature.asc
Description: Digital signature
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] lxc-instance fail

2013-10-04 Thread Tamas Papp
On 10/04/2013 05:05 PM, zoolook wrote:
 I have also seen this problem from time to time in different boxes and 
 different
 versions of lxc. It's not easily reproducible and I can't remember if I 
 reported
 it (maybe not since I couldn't make a 100% reproducible test case).

 I also use a non-standard directory, /srv/lxc in my case. Symlinking and -P 
 made
 no difference. 

 When the bug manifests the only solution I found was a complete reboot of the
 host.

I'm not able to not reproduce it:)

tamas

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


[Lxc-users] Fwd: lxc mtab

2013-10-04 Thread Kalyana sundaram
Hi
I run a group of lxc containers over a ubuntu host. when I do df on the
container, I get rootfs and /dev/disk. But since both are same(mounted on
/), why mtab shows them separately, I think I am missing some insight in
this.

df -TH
FilesystemType Size   Used  Avail Use% Mounted on
rootfs  rootfs 984G54G   881G   6% /
/dev/sdb1 ext4 984G54G   881G   6% /
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users