On Fri, Jan 22, 2010 at 8:59 AM, Daniel Lezcano <[email protected]> wrote:
> John Drescher wrote:
>>>
>>> Gah ! ok, the last request : can you launch the container with the
>>> following
>>> command line ?
>>>
>>> lxc-start -n guest_1 -l DEBUG -o $(tty)
>>> and give the output.
>>>
>
> Thanks for sending the output.
>
> [ ... ]
>
>>> Is it possible the /dev/shm was mounted at the boot time on the initrd
>>> disk
>>> ?
>>
>> On the host yes that is possible. I believe it would be easy to remove
>> the initrd on this machine since it's pretty scaled down being that it
>> runs inside of virtualbox.
>
> A did a change and commited it in the git tree. I think you should be able
> to start the container now. If it's the case I would be interested to see
> the log output with the fix.
>
Still did not start. BTW, I disabled the initrd on the host however I
did see a line during the host boot
mounting /dev/shm it is possible that openrc (new gentoo init system)
is mounting /dev/shm in the guest
as well. I can probably disable this after I find out what entry is
causing that.
localhost ~ # lxc-start -n guest_1 -l DEBUG -o $(tty)
lxc-start 1264151162.397 INFO lxc_conf - tty's configured
lxc-start 1264151162.397 DEBUG lxc_start - sigchild handler set
lxc-start 1264151162.397 INFO lxc_start - 'guest_1' is initialized
lxc-start 1264151162.400 DEBUG lxc_conf - instanciated veth
'vethSCsXtA/vethuC7t3w', index is '10'
lxc-start 1264151162.447 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1264151162.448 DEBUG lxc_cgroup - '/cgroup/8422'
renamed to '/cgroup/guest_1'
lxc-start 1264151162.503 DEBUG lxc_conf - move 'br0' to '8422'
lxc-start 1264151162.503 INFO lxc_conf - 'guest_1' hostname
has been setup
lxc-start 1264151162.506 DEBUG lxc_conf - 'veth0' has been setup
lxc-start 1264151162.506 INFO lxc_conf - network has been setup
lxc-start 1264151162.506 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.deny' set to 'a # Deny all access to devices'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm # dev/null'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm # dev/zero'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm # dev/console'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm # dev/tty'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm # dev/tty0'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm # dev/tty1'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:2 rwm # dev/tty2'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm # dev/urandon'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm # dev/random'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm # dev/pts/*'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm # dev/pts/ptmx'
lxc-start 1264151162.507 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
lxc-start 1264151162.507 INFO lxc_conf - cgroup has been setup
lxc-start 1264151162.507 DEBUG lxc_conf - mounted none on
/lxc/guest_1/dev/pts, type devpts
lxc-start 1264151162.507 DEBUG lxc_conf - mounted none on
/lxc/guest_1/dev/shm, type tmpfs
lxc-start 1264151162.507 DEBUG lxc_conf - mounted
/usr/portage on /lxc/guest_1/usr/portage, type none
lxc-start 1264151162.507 INFO lxc_conf - mount points have been setup
lxc-start 1264151162.507 INFO lxc_conf - mount points have been setup
lxc-start 1264151162.507 INFO lxc_conf - console
'/dev/pts/0' mounted to '/lxc/guest_1/dev/console'
lxc-start 1264151162.507 INFO lxc_conf - 4 tty(s) has been setup
lxc-start 1264151162.508 DEBUG lxc_conf - temporary
mountpoint for old rootfs is './lxc-oldrootfs-WIzwQn'
lxc-start 1264151162.508 DEBUG lxc_conf - pivot_root syscall
to '/lxc-oldrootfs-WIzwQn' successful
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/proc/bus/usb'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/lib64/rc/init.d'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/dev/pts'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/sys'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/dev'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/cgroup'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/lxc/guest_1/dev/pts'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/lxc/guest_1/dev/shm'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/lxc/guest_1/usr/portage'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/lxc/guest_1/dev/console'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/lxc/guest_1/dev/tty1'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/lxc/guest_1/dev/tty2'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/lxc/guest_1/dev/tty3'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/lxc/guest_1/dev/tty4'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/proc'
lxc-start 1264151162.508 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-WIzwQn/dev/shm'
lxc-start 1264151162.508 ERROR lxc_conf - Device or resource
busy - could not unmount old rootfs
lxc-start: Device or resource busy - could not unmount old rootfs
lxc-start 1264151162.508 ERROR lxc_conf - failed to
pivot_root to '/lxc/guest_1'
lxc-start: failed to pivot_root to '/lxc/guest_1'
lxc-start 1264151162.508 ERROR lxc_conf - failed to set
rootfs for 'guest_1'
lxc-start: failed to set rootfs for 'guest_1'
lxc-start 1264151162.509 ERROR lxc_start - failed to setup
the container
lxc-start: failed to setup the container
lxc-start 1264151162.509 NOTICE lxc_start - '/sbin/init'
started with pid '8422'
lxc-start 1264151162.509 DEBUG lxc_utils - closing fd '1'
lxc-start 1264151162.509 DEBUG lxc_utils - closing fd '0'
lxc-start 1264151162.509 DEBUG lxc_utils - closed all
inherited file descriptors
lxc-start 1264151162.565 DEBUG lxc_start - child exited
lxc-start 1264151162.565 INFO lxc_error - child <8422> ended
on error (255)
lxc-start 1264151162.565 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1264151162.645 DEBUG lxc_cgroup - '/cgroup/guest_1' unlinked
Also thanks a lot for your help!
John
------------------------------------------------------------------------------
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