Hi,
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:
https://build.opensuse.org/package/show?package=lxc&project=home:aljex
http://download.opensuse.org/repositories/home:/aljex/openSUSE_11.2/src/lxc-0.6.5-3.1.src.rpm
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:
http://en.opensuse.org/LXC
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
completeness.
---start---
nj10:~ # uname -a
Linux nj10 2.6.31.8-0.1-default #1 SMP 2009-12-15 23:55:40 +0100 x86_64
x86_64 x86_64 GNU/Linux
nj10:~ # lxc-check
lxc-checkconfig lxc-checkpoint
nj10:~ # lxc-checkconfig
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled
--- Control groups ---
Cgroup: enabled
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
Macvlan: enabled
Vlan: enabled
File capabilities: enabled
nj10:~ #
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 = 71.187.206.77/24
lxc.network.name = eth0
#lxc.pts = 1024
lxc.tty = 1
lxc.mount = /etc/lxc/nj13/fstab
lxc.rootfs = /lxc/nj13
nj10:~ #
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
---stop---
Attached is nj13err.txt
--
bkw
lxc-start 1264191363.038 INFO lxc_conf - tty's configured
lxc-start 1264191363.038 DEBUG lxc_start - sigchild handler set
lxc-start 1264191363.038 INFO lxc_start - 'nj13' is initialized
lxc-start 1264191363.053 DEBUG lxc_conf - instanciated veth
'vethhlScGk/vethjYkS8q', index is '101'
lxc-start 1264191363.068 DEBUG lxc_cgroup - using cgroup mounted at
'/cgroup'
lxc-start 1264191363.068 DEBUG lxc_cgroup - '/cgroup/17647' renamed to
'/cgroup/nj13'
lxc-start 1264191363.104 DEBUG lxc_conf - move 'br1' to '17647'
lxc-start 1264191363.104 INFO lxc_conf - 'nj13' hostname has been
setup
lxc-start 1264191363.111 DEBUG lxc_conf - mac address
'00:16:3e:00:01:4d' on 'eth0' has been setup
lxc-start 1264191363.127 DEBUG lxc_conf - 'eth0' has been setup
lxc-start 1264191363.127 INFO lxc_conf - network has been setup
lxc-start 1264191363.127 DEBUG lxc_conf - mounted none on
/lxc/nj13/dev/pts, type devpts
lxc-start 1264191363.127 DEBUG lxc_conf - mounted none on
/lxc/nj13/proc, type proc
lxc-start 1264191363.127 DEBUG lxc_conf - mounted none on
/lxc/nj13/sys, type sysfs
lxc-start 1264191363.127 DEBUG lxc_conf - mounted none on
/lxc/nj13/dev/shm, type tmpfs
lxc-start 1264191363.127 INFO lxc_conf - mount points have been setup
lxc-start 1264191363.128 INFO lxc_conf - mount points have been setup
lxc-start 1264191363.128 INFO lxc_conf - console '/dev/pts/4' mounted
to '/lxc/nj13/dev/console'
lxc-start 1264191363.128 WARN lxc_conf - failed to mount
'/dev/pts/5'->'/lxc/nj13/dev/tty1'
lxc-start 1264191363.128 INFO lxc_conf - 1 tty(s) has been setup
lxc-start 1264191363.128 DEBUG lxc_conf - temporary mountpoint for old
rootfs is './lxc-oldrootfs-EOej7K'
lxc-start 1264191363.128 DEBUG lxc_conf - pivot_root syscall to
'/lxc-oldrootfs-EOej7K' successful
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/dev/pts'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/proc'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/sys/kernel/debug'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/sys/fs/fuse/connections'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/sys/kernel/security'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/boot'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/cgroup'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/lxc/nj13/proc'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/lxc/nj13/dev/pts'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/lxc/nj13/sys'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/lxc/nj13/dev/shm'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/lxc/nj13/dev/console'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/dev'
lxc-start 1264191363.128 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-EOej7K/sys'
lxc-start 1264191363.128 ERROR lxc_conf - Device or resource busy -
could not unmount old rootfs
lxc-start 1264191363.128 ERROR lxc_conf - failed to pivot_root to
'/lxc/nj13'
lxc-start 1264191363.128 ERROR lxc_conf - failed to set rootfs for
'nj13'
lxc-start 1264191363.128 ERROR lxc_start - failed to setup the
container
lxc-start 1264191363.129 NOTICE lxc_start - '/sbin/init' started with
pid '17647'
lxc-start 1264191363.129 DEBUG lxc_utils - closing fd '1'
lxc-start 1264191363.129 DEBUG lxc_utils - closing fd '0'
lxc-start 1264191363.129 DEBUG lxc_utils - closed all inherited file
descriptors
lxc-start 1264191363.143 DEBUG lxc_start - child exited
lxc-start 1264191363.143 INFO lxc_error - child <17647> ended on
error (255)
lxc-start 1264191363.143 DEBUG lxc_cgroup - using cgroup mounted at
'/cgroup'
lxc-start 1264191363.168 DEBUG lxc_cgroup - '/cgroup/nj13' unlinked
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users