[Lxc-users] Can't start a 2nd container with 0.6.5
Brian K. White
brian at aljex.com
Fri Jan 22 20:39:41 UTC 2010
I have openSUSE 11.2 x86_64 with self compiled lxc 0.6.5
No errors, I used rpmbuild and the opensuse build service, the .spec,
src.rpm, and buil log are here:
Since no one else has done it, and I need it, I am trying to work out
the steps to use lxc on openSUSE.
I am in the process of writing this howto:
Following that recipe, I get one container up & running without any
problem. I can start/console/shutdown/stop and start again without any
unexpected behavior. The container runs great. I have already loaded it
up with a copy of a production server and performed a large rsync job to
update it and run several tests to use the container as if it were a
hardware server. Everything worked!
However, now when I got to make a 2nd container, I can't start it.
I can create it, but not execute or start.
My currently working container is exactly like below, except that it's
named nj12 instead of nj13, and the ip & mac addresses are one digit
lower than here. It's the same in every other way.
Heres some output about the machine, the lxc config file, and a debug
log from a failed start attempt.
After this email I will try reverting my lxc installation to the 0.6.3
that comes stock in openSUSE 11.2
That version works just fine on the same box with the same initial
container, but I hadn't happened to try more than one concurrent
container by the time I upgraded to 0.6.5 so I'll try that now just for
nj10:~ # uname -a
Linux nj10 22.214.171.124-0.1-default #1 SMP 2009-12-15 23:55:40 +0100 x86_64
x86_64 x86_64 GNU/Linux
nj10:~ # lxc-check
nj10:~ # lxc-checkconfig
--- Namespaces ---
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled
--- Control groups ---
Cgroup namespace: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled
--- Misc ---
Veth pair device: enabled
File capabilities: enabled
nj10:~ # cat /etc/lxc/nj13/config
lxc.utsname = nj13
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br1
lxc.network.hwaddr = 00:16:3e:00:01:4d
lxc.network.ipv4 = 126.96.36.199/24
lxc.network.name = eth0
#lxc.pts = 1024
lxc.tty = 1
lxc.mount = /etc/lxc/nj13/fstab
lxc.rootfs = /lxc/nj13
nj10:~ # screen lxc-start -f /etc/lxc/nj13/config -l DEBUG -o
nj13err.txt -n nj13
lxc-start: Device or resource busy - could not unmount old rootfs
lxc-start: failed to pivot_root to '/lxc/nj13'
lxc-start: failed to set rootfs for 'nj13'
lxc-start: failed to setup the container
Attached is nj13err.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the lxc-users