[Lxc-users] Shared file access inside a container (was: Converting existing CentOS 6.x to container within Ubuntu 12.04 - can that be simple?)

2012-11-09 Thread Jäkel , Guido
(1) I'm not sure you can do nfs-mount inside an lxc container Yes, you can for the simplest solution. But also, you can mount it on the host and propagate it (or any subtree, e.g. for a concrete container) via an bind-mount to the container. If you have a lot of containers, this will reduce

Re: [Lxc-users] [lxc][Openstack swift] How to use lxc in openstack swift

2012-11-09 Thread Serge Hallyn
Quoting Sujay M (sujay@gmail.com): Hi all, I am new to both lxc and Openstack swift. I want to set up cloud storage environment with lxc for virtualization. I want some help regarding how i can use lxc for virtualization in openstack swift. Thanks in advance Openstack uses

Re: [Lxc-users] Failed to access console after launching LXC through libvirt

2012-11-09 Thread unicell
On Fri, Nov 9, 2012 at 10:52 PM, Serge Hallyn serge.hal...@canonical.comwrote: Quoting unicell (unic...@gmail.com): On Fri, Nov 9, 2012 at 12:09 AM, unicell unic...@gmail.com wrote: Hi, I'm trying to manage LXC instances through OpenStack, which use libvirt as a virtualization

Re: [Lxc-users] Failed to access console after launching LXC through libvirt

2012-11-09 Thread unicell
On Fri, Nov 9, 2012 at 3:30 PM, Sujay M sujay@gmail.com wrote: Thanks Qiu Yu, I want object storage so I'll be using swift. Can i use lxc for virtualization in swift? How to do this? LXC can works together with openstack nova. You can find a simple instruction here:

Re: [Lxc-users] lxcbr0 versus virbr0 (Ubuntu)

2012-11-09 Thread Ulli Horlacher
On Fri 2012-11-09 (08:31), Serge Hallyn wrote: Since you have a real bridge, it is better to keep using br0. I have just discovered, that br0 is still available! I was in mistake to think only lxcbr0 and virbr0 are choosable. In fact, edit /etc/default/lxc to set USE_LXC_BRIDGE=false to

Re: [Lxc-users] trouble with remote mounts, ssh and ftp clients from inside container behind private bridge NAT

2012-11-09 Thread Whit Blauvelt
I asked: Is there a way to do mounts by hand, or is does this only work if done in the container's fstab file? Justin Cormack responded privately: Yes you can use mount --bind old new to test by hand. Curiously, that even works when I have first a remote mount (in this case CIFS) on the

Re: [Lxc-users] trouble with remote mounts, ssh and ftp clients from inside container behind private bridge NAT

2012-11-09 Thread Dan Kegel
SSH out from the guest consistently fails with a Host key verification failed That might just mean .ssh/known_hosts doesn't have the host in it inside the container. Maybe you want -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ? mount -o bind /var/lib/lxc/guest/rootfs/mnt/xyz

Re: [Lxc-users] trouble with remote mounts, ssh and ftp clients from inside container behind private bridge NAT

2012-11-09 Thread Whit Blauvelt
On Fri, Nov 09, 2012 at 02:33:31PM -0800, Dan Kegel wrote: SSH out from the guest consistently fails with a Host key verification failed That might just mean .ssh/known_hosts doesn't have the host in it inside the container. Maybe you want -o StrictHostKeyChecking=no ... Oddly, #

Re: [Lxc-users] trouble with remote mounts, ssh and ftp clients from inside container behind private bridge NAT

2012-11-09 Thread Dan Kegel
On Fri, Nov 9, 2012 at 3:03 PM, Whit Blauvelt w...@transpect.com wrote: mount -o bind /var/lib/lxc/guest/rootfs/mnt/xyz /var/lib/lxc/guest/rootfs/mnt/xyz brings the mount into visibility on the guest. IIRC, that failed with NFS for me. You may be lucky you're using CIFS. You mounted

Re: [Lxc-users] lxcbr0 versus virbr0 (Ubuntu)

2012-11-09 Thread Serge Hallyn
Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): On Fri 2012-11-09 (08:31), Serge Hallyn wrote: Since you have a real bridge, it is better to keep using br0. I have just discovered, that br0 is still available! I was in mistake to think only lxcbr0 and virbr0 are choosable.

Re: [Lxc-users] trouble with remote mounts, ssh and ftp clients from inside container behind private bridge NAT

2012-11-09 Thread Whit Blauvelt
You mounted NFS on the host, and then tried to bind it to the guest? Didn't work? Right. As I recall, the system exploded. Or at least did not work properly after that. Hung on file access, maybe. It was painful enough that I've purged the incident from memory, and just avoid nfs

Re: [Lxc-users] trouble with remote mounts, ssh and ftp clients from inside container behind private bridge NAT

2012-11-09 Thread Dan Kegel
On Fri, Nov 9, 2012 at 5:25 PM, Whit Blauvelt w...@transpect.com wrote: Okay, it was Apparmor that was breaking the mounting capability within the container - although learning that it's far better to do that from the host was worth the discussion here. Even doing the nfs on the host failed