[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-04-27 Thread Eugene San
Lucid as LTS must support containers both as host and as hoster. Not forfeiting that requirement will have huge impact on Ubuntu ** Changed in: lxc (Ubuntu) Status: New = Confirmed ** Summary changed: - LXC does not work with lucid host and lucid container + Lucid fails to host and to

[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-02-05 Thread bodhi.zazen
This is how I got it working : http://blog.bodhizazen.net/linux/lxc-configure-ubuntu-lucid-containers/ -- LXC does not work with lucid host and lucid container https://bugs.launchpad.net/bugs/512200 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed

[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-02-02 Thread bodhi.zazen
I got it working, with a lot less tweaking then you posted on the forums sweetsinse. I will work through my notes and post an update ASAP. Basically you do not need to worry about udev , just set up your devices and edit a few system files. Personally I use a static IP on both the host node and

[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-02-01 Thread bodhi.zazen
Normally you would enter the container with lxc-console -n ubuntu , however it is not working for me as of yet with a lucid container. Your config file looks very very scant, that is probably about as minimal as you can get, what else did you do teo set up your container ? You need to do a bunch

[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-02-01 Thread sweetsinse
Thomas Bechtold and friends, the lxc-ps command i think is buggy, and the -n flag doesnt work, try using --name instead. the output you are seeing is NOT inside the container, it is the same as what you would see if you simply typed ps. if the process was running in a container/cgroup you would

[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-02-01 Thread sweetsinse
bodhi.zazen, im not sure if ubuntu has the latest lxc-* tools, the -d problem you having could be related to that, because i run all my containers with that option. however, i have noticed my container's (i can't confirm this for ubuntu based containers yet) networking does not come up right away

[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-01-31 Thread Thomas Bechtold
i used a config file now with the following content: lxc.utsname = ubuntu lxc.rootfs = /var/lib/lxc/ubuntu/root/ When i start the container with: # lxc-start -n ubuntu -f /var/lib/lxc/ubuntu/config nothing happens. But: # lxc-info -n ubuntu 'ubuntu' is RUNNING # lxc-ps -n ubuntu CONTAINER

[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-01-29 Thread bodhi.zazen
I also have this problem. I build a container with debootstrap --variant minbase I then confirmed the files in rootfs.lucid/dev were present and had the appropriate permissions. I wrote a basic config defining the network, container name, root , etc The container starts but does not mount proc

[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-01-29 Thread sweetsinse
also this probably should be handled more gracfully on lxc-*'s part, but the resource busy is a consequence of killing the lxc-start process, and thus the cgroups dont get cleanup up properly. make sure you kill the process lxc-start STARTED, i.e. /sbin/init (it will be the pid+1 of lxc-start),

[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-01-29 Thread sweetsinse
to elaborate on the resource busy issue... you need to remove/kill the running processes from the cgroup in order to remove the folder. view the tasks with: $ cat /cgroup/ubuntu-lucid/tasks all the pids assigned to this cgroup $ kill -15 all the pids assigned to above cgroup most processes

[Bug 512200] Re: LXC does not work with lucid host and lucid container

2010-01-28 Thread sweetsinse
there could be other problems, but you need to define a config file with lxc-create (the -f option). specifically you need the option: lxc.rootfs = wherever you just debootstrapped to be defined. otherwise, the rootfs will be the shared with the host. anything that is not defined in the config