Brian K. White wrote:
> However, now when I go to make a 2nd container, I can't start it.
> I can create it, but not execute or start.
Well I'm more boggled now.
I stopped my first container nj12.
lxc-ls shows nothing, screen -ls shows nothing, mount shows nothing
extra, yet trying to start nj13 still fails, and trying to start nj12
still succeeds.
I can't find anything functionally different between nj12 and nj13...
What could I be missing???
nj10:~ # lxc-info -n nj12
'nj12' is STOPPED
nj10:~ # lxc-info -n nj13
'nj13' is STOPPED
nj10:~ # lxc-destroy -n nj12
'nj12' does not exist
nj10:~ # lxc-destroy -n nj13
'nj13' does not exist
nj10:~ # mount
/dev/md0 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sdg1 on /boot type ext2 (rw,acl,user_xattr)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
none on /cgroup type cgroup (rw)
nj10:~ # lxc-ls
nj10:~ # ls -lR /etc/lxc
/etc/lxc:
total 0
drwxr-xr-x 2 root root 96 Jan 21 10:45 nj12
drwxr-xr-x 2 root root 96 Jan 22 12:00 nj13
/etc/lxc/nj12:
total 8
-rw-r--r-- 1 root root 275 Jan 21 10:45 config
-rw-r--r-- 1 root root 172 Jan 21 06:55 fstab
/etc/lxc/nj13:
total 8
-rw-r--r-- 1 root root 275 Jan 22 12:00 config
-rw-r--r-- 1 root root 172 Jan 22 12:00 fstab
nj10:~ #
nj10:~ # ls -l /lxc
total 1
drwxr-xr-x 23 root root 672 Jan 22 15:38 nj12
drwxr-xr-x 31 root root 904 Jan 22 15:39 nj13
nj10:~ #
nj10:~ # cat /etc/lxc/nj12/config
lxc.utsname = nj12
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br1
lxc.network.hwaddr = 00:16:3e:00:01:4c
lxc.network.ipv4 = 71.187.206.76/24
lxc.network.name = eth0
#lxc.pts = 1024
lxc.tty = 1
lxc.mount = /etc/lxc/nj12/fstab
lxc.rootfs = /lxc/nj12
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:~ # cat /etc/lxc/nj12/fstab
none /lxc/nj12/dev/pts devpts defaults 0 0
none /lxc/nj12/proc proc defaults 0 0
none /lxc/nj12/sys sysfs defaults 0 0
none /lxc/nj12/dev/shm tmpfs defaults 0 0
nj10:~ # cat /etc/lxc/nj13/fstab
none /lxc/nj13/dev/pts devpts defaults 0 0
none /lxc/nj13/proc proc defaults 0 0
none /lxc/nj13/sys sysfs defaults 0 0
none /lxc/nj13/dev/shm tmpfs defaults 0 0
nj10:~ #
nj10:~ # screen lxc-start -f /etc/lxc/nj13/config -l DEBUG -o
nj13log.txt -n nj13
nj10:~ #
nj10:~ # cat nj13log.txt
lxc-start 1264193483.594 INFO lxc_conf - tty's configured
lxc-start 1264193483.594 DEBUG lxc_start - sigchild handler set
lxc-start 1264193483.594 INFO lxc_start - 'nj13' is initialized
lxc-start 1264193483.609 DEBUG lxc_conf - instanciated veth
'vethGA8xND/vethpWLLCp', index is '110'
lxc-start 1264193483.627 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1264193483.627 DEBUG lxc_cgroup - '/cgroup/22546'
renamed to '/cgroup/nj13'
lxc-start 1264193483.663 DEBUG lxc_conf - move 'br1' to '22546'
lxc-start 1264193483.663 INFO lxc_conf - 'nj13' hostname has
been setup
lxc-start 1264193483.671 DEBUG lxc_conf - mac address
'00:16:3e:00:01:4d' on 'eth0' has been setup
lxc-start 1264193483.687 DEBUG lxc_conf - 'eth0' has been setup
lxc-start 1264193483.687 INFO lxc_conf - network has been setup
lxc-start 1264193483.687 DEBUG lxc_conf - mounted none on
/lxc/nj13/dev/pts, type devpts
lxc-start 1264193483.687 DEBUG lxc_conf - mounted none on
/lxc/nj13/proc, type proc
lxc-start 1264193483.687 DEBUG lxc_conf - mounted none on
/lxc/nj13/sys, type sysfs
lxc-start 1264193483.687 DEBUG lxc_conf - mounted none on
/lxc/nj13/dev/shm, type tmpfs
lxc-start 1264193483.687 INFO lxc_conf - mount points have
been setup
lxc-start 1264193483.688 INFO lxc_conf - mount points have
been setup
lxc-start 1264193483.688 INFO lxc_conf - console '/dev/pts/2'
mounted to '/lxc/nj13/dev/console'
lxc-start 1264193483.688 WARN lxc_conf - failed to mount
'/dev/pts/3'->'/lxc/nj13/dev/tty1'
lxc-start 1264193483.688 INFO lxc_conf - 1 tty(s) has been setup
lxc-start 1264193483.688 DEBUG lxc_conf - temporary mountpoint
for old rootfs is './lxc-oldrootfs-2JcmIJ'
lxc-start 1264193483.688 DEBUG lxc_conf - pivot_root syscall
to '/lxc-oldrootfs-2JcmIJ' successful
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/dev/pts'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/proc'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/sys/kernel/debug'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/sys/fs/fuse/connections'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/sys/kernel/security'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/boot'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/cgroup'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/lxc/nj13/proc'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/lxc/nj13/dev/pts'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/lxc/nj13/sys'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/lxc/nj13/dev/shm'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/lxc/nj13/dev/console'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/dev'
lxc-start 1264193483.688 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-2JcmIJ/sys'
lxc-start 1264193483.688 ERROR lxc_conf - Device or resource
busy - could not unmount old rootfs
lxc-start 1264193483.688 ERROR lxc_conf - failed to pivot_root
to '/lxc/nj13'
lxc-start 1264193483.688 ERROR lxc_conf - failed to set rootfs
for 'nj13'
lxc-start 1264193483.688 ERROR lxc_start - failed to setup the
container
lxc-start 1264193483.689 NOTICE lxc_start - '/sbin/init'
started with pid '22546'
lxc-start 1264193483.689 DEBUG lxc_utils - closing fd '1'
lxc-start 1264193483.689 DEBUG lxc_utils - closing fd '0'
lxc-start 1264193483.689 DEBUG lxc_utils - closed all
inherited file descriptors
lxc-start 1264193483.706 DEBUG lxc_start - child exited
lxc-start 1264193483.706 INFO lxc_error - child <22546> ended
on error (255)
lxc-start 1264193483.706 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1264193483.726 DEBUG lxc_cgroup - '/cgroup/nj13'
unlinked
nj10:~ #
nj10:~ # lxc-create -f /etc/lxc/nj13/config -n nj13
'nj13' created
nj10:~ # lxc-execute -l DEBUG -o nj13bash.txt -n nj13 /bin/bash
lxc-execute: Device or resource busy - could not unmount old rootfs
lxc-execute: failed to pivot_root to '/lxc/nj13'
lxc-execute: failed to set rootfs for 'nj13'
lxc-execute: failed to setup the container
nj10:~ #
nj10:~ # cat nj13bash.txt
lxc-execute 1264193928.289 INFO lxc_conf - tty's configured
lxc-execute 1264193928.289 DEBUG lxc_start - sigchild handler set
lxc-execute 1264193928.289 INFO lxc_start - 'nj13' is initialized
lxc-execute 1264193928.304 DEBUG lxc_conf - instanciated veth
'vethyTNObU/vethKfJ6Ok', index is '122'
lxc-execute 1264193928.326 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-execute 1264193928.327 DEBUG lxc_cgroup - '/cgroup/24454'
renamed to '/cgroup/nj13'
lxc-execute 1264193928.354 DEBUG lxc_conf - move 'br1' to '24454'
lxc-execute 1264193928.354 INFO lxc_conf - 'nj13' hostname has
been setup
lxc-execute 1264193928.362 DEBUG lxc_conf - mac address
'00:16:3e:00:01:4d' on 'eth0' has been setup
lxc-execute 1264193928.378 DEBUG lxc_conf - 'eth0' has been setup
lxc-execute 1264193928.378 INFO lxc_conf - network has been setup
lxc-execute 1264193928.378 DEBUG lxc_conf - mounted none on
/lxc/nj13/dev/pts, type devpts
lxc-execute 1264193928.378 DEBUG lxc_conf - mounted none on
/lxc/nj13/proc, type proc
lxc-execute 1264193928.379 DEBUG lxc_conf - mounted none on
/lxc/nj13/sys, type sysfs
lxc-execute 1264193928.379 DEBUG lxc_conf - mounted none on
/lxc/nj13/dev/shm, type tmpfs
lxc-execute 1264193928.379 INFO lxc_conf - mount points have
been setup
lxc-execute 1264193928.379 INFO lxc_conf - mount points have
been setup
lxc-execute 1264193928.379 INFO lxc_conf - console '/dev/pts/0'
mounted to '/lxc/nj13/dev/console'
lxc-execute 1264193928.379 WARN lxc_conf - failed to mount
'/dev/pts/4'->'/lxc/nj13/dev/tty1'
lxc-execute 1264193928.379 INFO lxc_conf - 1 tty(s) has been setup
lxc-execute 1264193928.379 DEBUG lxc_conf - temporary mountpoint
for old rootfs is './lxc-oldrootfs-356AjD'
lxc-execute 1264193928.379 DEBUG lxc_conf - pivot_root syscall
to '/lxc-oldrootfs-356AjD' successful
lxc-execute 1264193928.379 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/dev/pts'
lxc-execute 1264193928.379 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/proc'
lxc-execute 1264193928.379 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/sys/kernel/debug'
lxc-execute 1264193928.379 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/sys/fs/fuse/connections'
lxc-execute 1264193928.379 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/sys/kernel/security'
lxc-execute 1264193928.379 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/boot'
lxc-execute 1264193928.379 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/cgroup'
lxc-execute 1264193928.379 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/lxc/nj13/proc'
lxc-execute 1264193928.379 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/lxc/nj13/dev/pts'
lxc-execute 1264193928.379 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/lxc/nj13/sys'
lxc-execute 1264193928.380 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/lxc/nj13/dev/shm'
lxc-execute 1264193928.380 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/lxc/nj13/dev/console'
lxc-execute 1264193928.380 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/dev'
lxc-execute 1264193928.380 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-356AjD/sys'
lxc-execute 1264193928.380 ERROR lxc_conf - Device or resource
busy - could not unmount old rootfs
lxc-execute 1264193928.380 ERROR lxc_conf - failed to pivot_root
to '/lxc/nj13'
lxc-execute 1264193928.380 ERROR lxc_conf - failed to set rootfs
for 'nj13'
lxc-execute 1264193928.380 ERROR lxc_start - failed to setup the
container
lxc-execute 1264193928.380 NOTICE lxc_start -
'/usr/lib/lxc/lxc-init' started with pid '24454'
lxc-execute 1264193928.380 DEBUG lxc_utils - closing fd '1'
lxc-execute 1264193928.380 DEBUG lxc_utils - closing fd '0'
lxc-execute 1264193928.380 DEBUG lxc_utils - closed all
inherited file descriptors
lxc-execute 1264193928.396 DEBUG lxc_start - child exited
lxc-execute 1264193928.396 INFO lxc_error - child <24454> ended
on error (255)
lxc-execute 1264193928.396 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-execute 1264193928.414 DEBUG lxc_cgroup - '/cgroup/nj13'
unlinked
nj10:~ #
...Yet I can still start or create+execute nj12 just fine
This was all still with 0.6.5 btw. Now I'll try downgrading.
--
bkw
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users