Hi,
I installed lxc and created a box as describerd here: https://linuxcontainers.org/lxc/getting-started/
with command
>>lxc-create -t download -n my-container
As templated I chosed ubuntu, trusty, amd64 (for acer chromebook c720 with running Lubuntu 14.04 LTS)
All that worked fine.
After this I tried to start the container with
>>lxc-start -n my-container -d
which fails and gives the error messages (with option -F instead):
lxc_container: utils.c: safe_mount: 1284 Operation not permitted - Mount of 'sysfs' onto '/usr/lib/x86_64-linux-gnu/lxc/sys' failed
lxc_container: conf.c: mount_entry: 2061 Operation not permitted - failed to mount 'sysfs' on '/usr/lib/x86_64-linux-gnu/lxc/sys'
lxc_container: conf.c: lxc_setup: 4282 failed to setup the mount entries for 'my-container'
lxc_container: start.c: do_start: 717 failed to setup the container
lxc_container: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2
lxc_container: start.c: __lxc_start: 1121 failed to spawn 'my-container'
lxc_container: lxc_start.c: main: 341 The container failed to start.
lxc_container: lxc_start.c: main: 345 Additional information can be obtained by setting the --logfile and --logpriority options.
lxc_container: conf.c: mount_entry: 2061 Operation not permitted - failed to mount 'sysfs' on '/usr/lib/x86_64-linux-gnu/lxc/sys'
lxc_container: conf.c: lxc_setup: 4282 failed to setup the mount entries for 'my-container'
lxc_container: start.c: do_start: 717 failed to setup the container
lxc_container: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2
lxc_container: start.c: __lxc_start: 1121 failed to spawn 'my-container'
lxc_container: lxc_start.c: main: 341 The container failed to start.
lxc_container: lxc_start.c: main: 345 Additional information can be obtained by setting the --logfile and --logpriority options.
with the --logfile option I get results as appended.
What's going wrong?
Regards,
Peter
lxc-start 1451858814.397 ERROR lxc_utils - utils.c:safe_mount:1284 -
Operation not permitted - Mount of 'sysfs' onto
'/usr/lib/x86_64-linux-gnu/lxc/sys' failed
lxc-start 1451858814.397 ERROR lxc_conf - conf.c:mount_entry:2061 -
Operation not permitted - failed to mount 'sysfs' on
'/usr/lib/x86_64-linux-gnu/lxc/sys'
lxc-start 1451858814.397 ERROR lxc_conf - conf.c:lxc_setup:4282 -
failed to setup the mount entries for 'my-container'
lxc-start 1451858814.397 ERROR lxc_start - start.c:do_start:717 -
failed to setup the container
lxc-start 1451858814.398 ERROR lxc_sync - sync.c:__sync_wait:51 -
invalid sequence number 1. expected 2
lxc-start 1451858814.398 ERROR lxc_start - start.c:__lxc_start:1121 -
failed to spawn 'my-container'
lxc-start 1451858814.448 ERROR lxc_start_ui - lxc_start.c:main:341 -
The container failed to start.
lxc-start 1451858814.448 ERROR lxc_start_ui - lxc_start.c:main:345 -
Additional information can be obtained by setting the --logfile and
--logpriority options.
lxc-start 1451858833.312 INFO lxc_start_ui - lxc_start.c:main:264 -
using rcfile /home/user/.local/share/lxc/my-container/config
lxc-start 1451858833.312 INFO lxc_confile -
confile.c:config_idmap:1378 - read uid map: type u nsid 0 hostid 100000 range
65536
lxc-start 1451858833.312 INFO lxc_confile -
confile.c:config_idmap:1378 - read uid map: type g nsid 0 hostid 100000 range
65536
lxc-start 1451858833.312 WARN lxc_log - log.c:lxc_log_init:316 -
lxc_log_init called with log already initialized
lxc-start 1451858833.314 WARN lxc_cgmanager - cgmanager.c:cgm_get:985
- do_cgm_get exited with error
lxc-start 1451858833.314 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM
security driver nop
lxc-start 1451858833.316 DEBUG lxc_conf - conf.c:lxc_create_tty:3791 -
allocated pty '/dev/pts/8' (5/6)
lxc-start 1451858833.316 DEBUG lxc_conf - conf.c:lxc_create_tty:3791 -
allocated pty '/dev/pts/10' (7/8)
lxc-start 1451858833.316 DEBUG lxc_conf - conf.c:lxc_create_tty:3791 -
allocated pty '/dev/pts/11' (9/10)
lxc-start 1451858833.316 DEBUG lxc_conf - conf.c:lxc_create_tty:3791 -
allocated pty '/dev/pts/12' (11/12)
lxc-start 1451858833.316 INFO lxc_conf - conf.c:lxc_create_tty:3802 -
tty's configured
lxc-start 1451858833.316 DEBUG lxc_start - start.c:setup_signal_fd:263
- sigchild handler set
lxc-start 1451858833.316 DEBUG lxc_console -
console.c:lxc_console_peer_default:500 - opening /dev/tty for console peer
lxc-start 1451858833.316 DEBUG lxc_console -
console.c:lxc_console_peer_default:506 - using '/dev/tty' as console
lxc-start 1451858833.316 DEBUG lxc_console -
console.c:lxc_console_sigwinch_init:179 - 10959 got SIGWINCH fd 17
lxc-start 1451858833.316 DEBUG lxc_console -
console.c:lxc_console_winsz:88 - set winsz dstfd:14 cols:104 rows:22
lxc-start 1451858833.532 INFO lxc_start - start.c:lxc_init:463 -
'my-container' is initialized
lxc-start 1451858833.533 DEBUG lxc_start - start.c:__lxc_start:1099 -
Not dropping cap_sys_boot or watching utmp
lxc-start 1451858833.533 INFO lxc_start - start.c:lxc_spawn:832 -
Cloning a new user namespace
lxc-start 1451858833.533 INFO lxc_cgroup - cgroup.c:cgroup_init:62 -
cgroup driver cgmanager initing for my-container
lxc-start 1451858833.564 NOTICE lxc_start - start.c:do_start:685 -
switching to gid/uid 0 in new user namespace
lxc-start 1451858833.566 DEBUG lxc_conf - conf.c:setup_rootfs:1625 -
mounted '/home/user/.local/share/lxc/my-container/rootfs' on
'/usr/lib/x86_64-linux-gnu/lxc'
lxc-start 1451858833.566 INFO lxc_conf - conf.c:setup_utsname:912 -
'my-container' hostname has been setup
lxc-start 1451858833.566 INFO lxc_conf - conf.c:setup_network:2930 -
network has been setup
lxc-start 1451858833.566 DEBUG lxc_conf - conf.c:check_autodev:4031 -
Set exec command to /sbin/init
lxc-start 1451858833.566 INFO lxc_conf - conf.c:check_autodev:4069 -
Autodev not required.
lxc-start 1451858833.566 DEBUG lxc_conf - conf.c:mount_entry:2118 -
mounted 'proc' on '/usr/lib/x86_64-linux-gnu/lxc/proc', type 'proc'
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
