[Lxc-users] LXC and Slackware 13.37

2011-07-12 Thread Laurens Vets
Hello list,

I'm trying to configure LXC on Slackware 13.37 following these 2 
guides: http://www.vislab.uq.edu.au/howto/lxc.html  
http://www.vislab.uq.edu.au/howto/lxc/create_container.html. However, I 
cannot reach the LXC guest when I try to connect to it.

It's on a Hetzner machine, but the ip address for the LXC is in the 
same range as the ip address of the host. When I tcpdump on the br0, I 
do see the SYNs, but no replies. SSH is running in the guest. Are there 
any additional networking knobs I need to turn?

Also, is it normal that I see for instance /proc entries which reveal 
information about the host and it's filesystems?

Thanks for your help!

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] LXC and Slackware 13.37

2011-07-12 Thread Matto Fransen
Hi Laurens,

On Tue, Jul 12, 2011 at 07:11:21PM +0200, Laurens Vets wrote:
 
 I'm trying to configure LXC on Slackware 13.37 following these 2 
 guides: http://www.vislab.uq.edu.au/howto/lxc.html  
 http://www.vislab.uq.edu.au/howto/lxc/create_container.html. However, I 
 cannot reach the LXC guest when I try to connect to it.
 
In the howto I see the following line for the config-file:
lxc.network.ipv4 = 0.0.0.0

Did you replace that 0.0.0.0 with the desired ip-number of the
container?

Cheers,

Matto


signature.asc
Description: Digital signature
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] Problem with network start on Arch Linux (with revised rc.conf)

2011-07-12 Thread John
On 11/07/11 22:24, Joerg Gollnick wrote:

 Hope that helps, best regards Joerg


Thank you Joerg. This forced me do do a bit more checking because your 
rc.sysinit seems to predate the change to the networking (it uses 
ifconfig).

I decided to try removing the line lxc.network.ipv4 from my container 
config and found that this allowed it all to work fine. So, I guess that 
line causes the network address to be added which caused the conflct 
with the container trying to do the same thing. I hope removing that 
line has no other side effects but it seems to work for me.

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


[Lxc-users] [PATCH 1/3] Add arm as a supported srcarch

2011-07-12 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@canonical.com

Otherwise building on armel fails with

checking for linux SRCARCH... configure: error: architecture 
arm-unknown-linux-gnueabi not supported

See https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/745884 for details.

Author: Marcin Juszkiewicz marcin.juszkiew...@linaro.org
Signed-off-by: Serge Hallyn serge.hal...@canonical.com
---
 config/linux.m4 |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/config/linux.m4 b/config/linux.m4
index 338f393..e117923 100644
--- a/config/linux.m4
+++ b/config/linux.m4
@@ -65,6 +65,7 @@ AC_DEFUN([AC_LINUX_SRCARCH],[
x86_64-*) LINUX_SRCARCH=x86;;
powerpc*-*) LINUX_SRCARCH=powerpc;;
s390*-*) LINUX_SRCARCH=s390;;
+   arm*-*) LINUX_SRCARCH=arm;;
*) AC_MSG_ERROR([architecture ${host} not supported]);;
esac
 
-- 
1.7.4.1


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


[Lxc-users] [PATCH 2/3] lxc-ubuntu: don't put devpts in $confdir/container/fstab

2011-07-12 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@canonical.com

src/lxc/conf.c will explicitly mount it anyway.  Furthermore, the fstab
entry, which is getting processed first, did not specify -o newinstance.
This can cause the host's devpts entry mount options to change, as in
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/607636.

Note - I messed up.  This was applied upstream, but I dropped it in
subsequent conversion to lxc-ubuntu template.  It therefore needs to
be reapplied.

Signed-off-by: Serge Hallyn serge.hal...@canonical.com
---
 templates/lxc-ubuntu.in |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in
index 439e1d0..2934dc1 100644
--- a/templates/lxc-ubuntu.in
+++ b/templates/lxc-ubuntu.in
@@ -198,7 +198,6 @@ EOF
 
 cat EOF  $path/fstab
 proc$rootfs/proc procnodev,noexec,nosuid 0 0
-devpts  $rootfs/dev/pts  devpts defaults 0 0
 sysfs   $rootfs/sys  sysfs defaults  0 0
 EOF
 
-- 
1.7.4.1


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


[Lxc-users] [PATCH 3/3] lxc-ubuntu: Allow /dev/fuse to be used in a container

2011-07-12 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@canonical.com

As people seem to want it, i.e.
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/800886

Signed-off-by: Serge Hallyn serge.hal...@canonical.com
---
 templates/lxc-ubuntu.in |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in
index 2934dc1..e450dae 100644
--- a/templates/lxc-ubuntu.in
+++ b/templates/lxc-ubuntu.in
@@ -194,6 +194,8 @@ lxc.cgroup.devices.allow = c 136:* rwm
 lxc.cgroup.devices.allow = c 5:2 rwm
 # rtc
 lxc.cgroup.devices.allow = c 254:0 rwm
+#fuse
+lxc.cgroup.devices.allow = c 10:229 rwm
 EOF
 
 cat EOF  $path/fstab
-- 
1.7.4.1


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


[Lxc-users] 3 small patches for 0.7.5

2011-07-12 Thread Serge Hallyn
Hi,

following are three small patches which are applied in the Ubuntu
lxc package, on top of the current lxc git HEAD.  Would you mind
applying these before tagging 0.7.5?

thanks,
-serge

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users