[Bug 1071910] Re: lxc stop will hang forever
Tim
iceczd at gmail.com
Tue Oct 30 13:58:39 UTC 2012
- Container config:
lxc.utsname = vm1
lxc.tty = 4
lxc.pts = 1024
lxc.rootfs = /vms/vm1/rootfs
lxc.mount = /vm1/vm1/fstab
lxc.network.type = veth
lxc.network.flags = up
lxc.network.name = eth0
lxc.network.link = br0
lxc.network.ipv4 = 192.168.3.2
# Set system resource limitations
lxc.cgroup.cpuset.cpus = 0
lxc.cgroup.cpu.shares = 1
lxc.cgroup.memory.limit_in_bytes = 512M
lxc.cgroup.memory.memsw.limit_in_bytes = 1024M
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
- /vms/vm1/fstab:
proc /vms/vm1/rootfs/proc proc nodev,noexec,nosuid 0 0
devpts /vms/vm1/rootfs/dev/pts devpts defaults 0 0
sysfs /vms/vm1/rootfs/sys sysfs defaults 0 0
- Container creation command:
lxc-create -n vm1 -f /vms/vm1/config
- Stop Script:
lxc-stop -n vm1
umount /vms/vm1/rootfs
lvremove -f /dev/vmg1/snap
- Start Script:
lvcreate -L512M -s -n snap /dev/vmg1/vm
mount /dev/vmg1/snap /vms/vm1/rootfs
lxc-start -n vm1 -d
I needed to have a clean file-system for the container that had a different set of software available than the host OS.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1071910
Title:
lxc stop will hang forever
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1071910/+subscriptions
More information about the Ubuntu-server-bugs
mailing list