This landed in xenial, and I confirm that I can install the lxd package
now. I can also create a busybox image, but launching it fails:
$ lxc launch busybox t1
Creating t1 done.
Starting t1 error.
error: Error calling 'lxd forkstart t1 /var/lib/lxd/containers
/var/log/lxd/t1/lxc.conf': err='exit status 1'
Full --show-log is below, but I suspect the issue is
lxc 1450082201.027 ERROR lxc_start - start.c:start:1298 -
No such file or directory - failed to exec /sbin/init
I untar'ed the image in /var/lib/lxd/images/f9f299... and at first sight
it looks normal:
lrwxrwxrwx 1 root root 12 Jan 1 1970 rootfs/sbin/init -> /bin/busybox
-rwxr-xr-x 1 root root 796528 Jan 1 1970 rootfs/bin/busybox
I can also run rootfs/bin/busybox from the shell. I have some trouble
with chroot, e. g.
$ sudo chroot rootfs/ /bin/sh
chroot: failed to run command '/bin/sh': No such file or directory
$ sudo chroot rootfs/ /bin/busybox
chroot: failed to run command '/bin/busybox': No such file or directory
which might be the same issue that hits "lxc launch"?
Note that all of this (import and launch busybox, unpack rootfs, chroot
into it) works on amd64.
$ lxc info --show-log t1
Name: t1
Status: Stopped
Log:
lxc 1450082200.256 INFO lxc_confile -
confile.c:config_idmap:1437 - read uid map: type u nsid 0 hostid 1000000 range
100000
lxc 1450082200.256 INFO lxc_confile -
confile.c:config_idmap:1437 - read uid map: type g nsid 0 hostid 1000000 range
100000
lxc 1450082200.303 WARN lxc_cgmanager - cgmanager.c:cgm_get:994
- do_cgm_get exited with error
lxc 1450082200.383 INFO lxc_confile -
confile.c:config_idmap:1437 - read uid map: type u nsid 0 hostid 1000000 range
100000
lxc 1450082200.383 INFO lxc_confile -
confile.c:config_idmap:1437 - read uid map: type g nsid 0 hostid 1000000 range
100000
lxc 1450082200.386 WARN lxc_cgmanager - cgmanager.c:cgm_get:994
- do_cgm_get exited with error
lxc 1450082200.387 WARN lxc_cgmanager - cgmanager.c:cgm_get:994
- do_cgm_get exited with error
lxc 1450082200.393 INFO lxc_confile -
confile.c:config_idmap:1437 - read uid map: type u nsid 0 hostid 1000000 range
100000
lxc 1450082200.393 INFO lxc_confile -
confile.c:config_idmap:1437 - read uid map: type g nsid 0 hostid 1000000 range
100000
lxc 1450082200.396 WARN lxc_cgmanager - cgmanager.c:cgm_get:994
- do_cgm_get exited with error
lxc 1450082200.399 WARN lxc_cgmanager - cgmanager.c:cgm_get:994
- do_cgm_get exited with error
lxc 1450082200.473 WARN lxc_cgmanager - cgmanager.c:cgm_get:994
- do_cgm_get exited with error
lxc 1450082200.474 INFO lxc_start -
start.c:lxc_check_inherited:240 - closed inherited fd 8
lxc 1450082200.475 INFO lxc_container -
lxccontainer.c:do_lxcapi_start:712 - Attempting to set proc title to [lxc
monitor] /var/lib/lxd/containers t1
lxc 1450082200.475 INFO lxc_start -
start.c:lxc_check_inherited:240 - closed inherited fd 8
lxc 1450082200.475 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM
security driver AppArmor
lxc 1450082200.475 INFO lxc_seccomp -
seccomp.c:parse_config_v2:324 - processing: .reject_force_umount # comment
this to allow umount -f; not recommended.
lxc 1450082200.475 INFO lxc_seccomp -
seccomp.c:parse_config_v2:324 - processing: .[all].
lxc 1450082200.476 INFO lxc_seccomp -
seccomp.c:parse_config_v2:324 - processing: .kexec_load errno 1.
lxc 1450082200.476 INFO lxc_seccomp -
seccomp.c:parse_config_v2:416 - Adding native rule for kexec_load action 327681
lxc 1450082200.476 INFO lxc_seccomp -
seccomp.c:parse_config_v2:324 - processing: .open_by_handle_at errno 1.
lxc 1450082200.476 INFO lxc_seccomp -
seccomp.c:parse_config_v2:416 - Adding native rule for open_by_handle_at action
327681
lxc 1450082200.476 INFO lxc_seccomp -
seccomp.c:parse_config_v2:324 - processing: .init_module errno 1.
lxc 1450082200.476 INFO lxc_seccomp -
seccomp.c:parse_config_v2:416 - Adding native rule for init_module action 327681
lxc 1450082200.476 INFO lxc_seccomp -
seccomp.c:parse_config_v2:324 - processing: .finit_module errno 1.
lxc 1450082200.476 INFO lxc_seccomp -
seccomp.c:parse_config_v2:416 - Adding native rule for finit_module action
327681
lxc 1450082200.476 INFO lxc_seccomp -
seccomp.c:parse_config_v2:324 - processing: .delete_module errno 1.
lxc 1450082200.476 INFO lxc_seccomp -
seccomp.c:parse_config_v2:416 - Adding native rule for delete_module action
327681
lxc 1450082200.476 INFO lxc_conf - conf.c:run_script_argv:362 -
Executing script '/usr/bin/lxd callhook /var/lib/lxd 1 start' for container
't1', config section 'lxc'
lxc 1450082200.476 INFO lxc_start -
start.c:lxc_check_inherited:240 - closed inherited fd 8
lxc 1450082200.480 INFO lxc_monitor -
monitor.c:lxc_monitor_sock_name:178 - using monitor sock name
lxc/d78a9d7e97b4b375//var/lib/lxd/containers
lxc 1450082200.682 INFO lxc_confile -
confile.c:config_idmap:1437 - read uid map: type u nsid 0 hostid 1000000 range
100000
lxc 1450082200.682 INFO lxc_confile -
confile.c:config_idmap:1437 - read uid map: type g nsid 0 hostid 1000000 range
100000
lxc 1450082200.687 DEBUG lxc_start - start.c:setup_signal_fd:278
- sigchild handler set
lxc 1450082200.687 INFO lxc_start - start.c:lxc_init:474 - 't1'
is initialized
lxc 1450082200.687 DEBUG lxc_start - start.c:__lxc_start:1186 -
Not dropping cap_sys_boot or watching utmp
lxc 1450082200.689 INFO lxc_start -
start.c:resolve_clone_flags:883 - Cloning a new user namespace
lxc 1450082200.691 DEBUG lxc_conf - conf.c:instantiate_veth:2821
- instantiated veth 'vethCR0J1G/veth4NYXPE', index is '1328'
lxc 1450082200.691 INFO lxc_cgroup - cgroup.c:cgroup_init:65 -
cgroup driver cgmanager initing for t1
lxc 1450082200.702 DEBUG lxc_cgmanager -
cgmanager.c:cgm_setup_limits:1394 - cgroup 'memory.limit_in_bytes' set to
'1800M'
lxc 1450082200.702 DEBUG lxc_cgmanager -
cgmanager.c:cgm_setup_limits:1394 - cgroup 'memory.limit_in_bytes' set to
'1800M'
lxc 1450082200.702 DEBUG lxc_cgmanager -
cgmanager.c:cgm_setup_limits:1394 - cgroup 'memory.limit_in_bytes' set to
'1800M'
lxc 1450082200.702 DEBUG lxc_cgmanager -
cgmanager.c:cgm_setup_limits:1394 - cgroup 'memory.limit_in_bytes' set to
'1800M'
lxc 1450082200.702 DEBUG lxc_cgmanager -
cgmanager.c:cgm_setup_limits:1394 - cgroup 'memory.limit_in_bytes' set to
'1800M'
lxc 1450082200.702 INFO lxc_cgmanager -
cgmanager.c:cgm_setup_limits:1398 - cgroup limits have been setup
lxc 1450082200.787 DEBUG lxc_conf -
conf.c:lxc_assign_network:3238 - move 'eth0' to '13190'
lxc 1450082200.788 NOTICE lxc_start - start.c:do_start:699 -
switching to gid/uid 0 in new user namespace
lxc 1450082200.789 DEBUG lxc_conf - conf.c:setup_rootfs:1295 -
mounted '/var/lib/lxd/containers/t1/rootfs' on '/usr/lib/s390x-linux-gnu/lxc'
lxc 1450082200.790 INFO lxc_conf - conf.c:setup_utsname:928 -
't1' hostname has been setup
lxc 1450082200.837 DEBUG lxc_conf - conf.c:setup_hw_addr:2368 -
mac address '00:16:3e:d4:14:0b' on 'eth0' has been setup
lxc 1450082200.837 DEBUG lxc_conf - conf.c:setup_netdev:2595 -
'eth0' has been setup
lxc 1450082200.837 INFO lxc_conf - conf.c:setup_network:2616 -
network has been setup
lxc 1450082200.837 INFO lxc_conf - conf.c:mount_autodev:1157 -
Mounting container /dev
lxc 1450082200.838 INFO lxc_conf - conf.c:mount_autodev:1179 -
Mounted tmpfs onto /usr/lib/s390x-linux-gnu/lxc/dev
lxc 1450082200.838 INFO lxc_conf - conf.c:mount_autodev:1197 -
Mounted container /dev
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /sys/fs/fuse/connections on
/usr/lib/s390x-linux-gnu/lxc/sys/fs/fuse/connections to respect bind or remount
options
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /sys/fs/fuse/connections was 4096, required extra flags
are 0
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1762 -
mountflags already was 4096, skipping remount
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/sys/fs/fuse/connections' on
'/usr/lib/s390x-linux-gnu/lxc/sys/fs/fuse/connections', type 'none'
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /sys/kernel/debug on /usr/lib/s390x-linux-gnu/lxc/sys/kernel/debug
to respect bind or remount options
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /sys/kernel/debug was 4096, required extra flags are 0
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1762 -
mountflags already was 4096, skipping remount
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/sys/kernel/debug' on '/usr/lib/s390x-linux-gnu/lxc/sys/kernel/debug',
type 'none'
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /sys/kernel/security on
/usr/lib/s390x-linux-gnu/lxc/sys/kernel/security to respect bind or remount
options
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /sys/kernel/security was 4110, required extra flags are
14
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/sys/kernel/security' on
'/usr/lib/s390x-linux-gnu/lxc/sys/kernel/security', type 'none'
lxc 1450082200.838 ERROR lxc_utils -
utils.c:open_without_symlink:1620 - No such file or directory - Error examining
pstore in /usr/lib/s390x-linux-gnu/lxc/sys/fs/pstore
lxc 1450082200.838 INFO lxc_conf - conf.c:mount_entry:1727 -
failed to mount '/sys/fs/pstore' on
'/usr/lib/s390x-linux-gnu/lxc/sys/fs/pstore' (optional): No such file or
directory
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted 'mqueue' on '/usr/lib/s390x-linux-gnu/lxc/dev/mqueue', type 'mqueue'
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /dev/console on /usr/lib/s390x-linux-gnu/lxc/dev/console to respect
bind or remount options
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /dev/console was 4098, required extra flags are 2
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/dev/console' on '/usr/lib/s390x-linux-gnu/lxc/dev/console', type
'none'
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /dev/full on /usr/lib/s390x-linux-gnu/lxc/dev/full to respect bind
or remount options
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /dev/full was 4098, required extra flags are 2
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/dev/full' on '/usr/lib/s390x-linux-gnu/lxc/dev/full', type 'none'
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /dev/null on /usr/lib/s390x-linux-gnu/lxc/dev/null to respect bind
or remount options
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /dev/null was 4098, required extra flags are 2
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/dev/null' on '/usr/lib/s390x-linux-gnu/lxc/dev/null', type 'none'
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /dev/random on /usr/lib/s390x-linux-gnu/lxc/dev/random to respect
bind or remount options
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /dev/random was 4098, required extra flags are 2
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/dev/random' on '/usr/lib/s390x-linux-gnu/lxc/dev/random', type 'none'
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /dev/tty on /usr/lib/s390x-linux-gnu/lxc/dev/tty to respect bind or
remount options
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /dev/tty was 4098, required extra flags are 2
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/dev/tty' on '/usr/lib/s390x-linux-gnu/lxc/dev/tty', type 'none'
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /dev/urandom on /usr/lib/s390x-linux-gnu/lxc/dev/urandom to respect
bind or remount options
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /dev/urandom was 4098, required extra flags are 2
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/dev/urandom' on '/usr/lib/s390x-linux-gnu/lxc/dev/urandom', type
'none'
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /dev/zero on /usr/lib/s390x-linux-gnu/lxc/dev/zero to respect bind
or remount options
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /dev/zero was 4098, required extra flags are 2
lxc 1450082200.838 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/dev/zero' on '/usr/lib/s390x-linux-gnu/lxc/dev/zero', type 'none'
lxc 1450082200.838 ERROR lxc_utils -
utils.c:open_without_symlink:1620 - No such file or directory - Error examining
efi in /usr/lib/s390x-linux-gnu/lxc/sys/firmware/efi/efivars
lxc 1450082200.838 INFO lxc_conf - conf.c:mount_entry:1727 -
failed to mount '/sys/firmware/efi/efivars' on
'/usr/lib/s390x-linux-gnu/lxc/sys/firmware/efi/efivars' (optional): No such
file or directory
lxc 1450082200.888 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /proc/sys/fs/binfmt_misc on
/usr/lib/s390x-linux-gnu/lxc/proc/sys/fs/binfmt_misc to respect bind or remount
options
lxc 1450082200.888 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /proc/sys/fs/binfmt_misc was 4096, required extra flags
are 0
lxc 1450082200.888 DEBUG lxc_conf - conf.c:mount_entry:1762 -
mountflags already was 4096, skipping remount
lxc 1450082200.888 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/proc/sys/fs/binfmt_misc' on
'/usr/lib/s390x-linux-gnu/lxc/proc/sys/fs/binfmt_misc', type 'none'
lxc 1450082200.889 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /var/lib/lxd/devlxd on /usr/lib/s390x-linux-gnu/lxc/dev/lxd to
respect bind or remount options
lxc 1450082200.889 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /var/lib/lxd/devlxd was 3072, required extra flags are 0
lxc 1450082200.889 DEBUG lxc_conf - conf.c:mount_entry:1762 -
mountflags already was 4096, skipping remount
lxc 1450082200.889 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/var/lib/lxd/devlxd' on '/usr/lib/s390x-linux-gnu/lxc/dev/lxd', type
'none'
lxc 1450082200.889 DEBUG lxc_conf - conf.c:mount_entry:1738 -
remounting /var/lib/lxd/shmounts/t1 on
/usr/lib/s390x-linux-gnu/lxc/dev/.lxd-mounts to respect bind or remount options
lxc 1450082200.889 DEBUG lxc_conf - conf.c:mount_entry:1753 -
(at remount) flags for /var/lib/lxd/shmounts/t1 was 3072, required extra flags
are 0
lxc 1450082200.889 DEBUG lxc_conf - conf.c:mount_entry:1762 -
mountflags already was 4096, skipping remount
lxc 1450082200.889 DEBUG lxc_conf - conf.c:mount_entry:1788 -
mounted '/var/lib/lxd/shmounts/t1' on
'/usr/lib/s390x-linux-gnu/lxc/dev/.lxd-mounts', type 'none'
lxc 1450082200.889 INFO lxc_conf -
conf.c:mount_file_entries:2150 - mount points have been setup
lxc 1450082200.889 INFO lxc_conf - conf.c:run_script_argv:362 -
Executing script '/usr/share/lxcfs/lxc.mount.hook' for container 't1', config
section 'lxc'
lxc 1450082200.957 INFO lxc_conf - conf.c:fill_autodev:1225 -
Creating initial consoles under container /dev
lxc 1450082200.957 INFO lxc_conf - conf.c:fill_autodev:1236 -
Populating container /dev
lxc 1450082200.957 INFO lxc_conf - conf.c:fill_autodev:1269 -
Populated container /dev
lxc 1450082200.957 INFO lxc_conf -
conf.c:setup_dev_console:1498 - no console
lxc 1450082200.957 INFO lxc_utils -
utils.c:mount_proc_if_needed:1718 - I am 1, /proc/self points to '1'
lxc 1450082201.017 DEBUG lxc_conf -
conf.c:setup_rootfs_pivot_root:1135 - pivot_root syscall to
'/usr/lib/s390x-linux-gnu/lxc' successful
lxc 1450082201.017 INFO lxc_conf - conf.c:setup_tty:1080 - 0
tty(s) has been setup
lxc 1450082201.017 INFO lxc_conf -
conf.c:setup_personality:1473 - set personality to '0x0'
lxc 1450082201.017 DEBUG lxc_conf - conf.c:setup_caps:2279 -
drop capability 'mac_admin' (33)
lxc 1450082201.017 DEBUG lxc_conf - conf.c:setup_caps:2279 -
drop capability 'mac_override' (32)
lxc 1450082201.017 DEBUG lxc_conf - conf.c:setup_caps:2279 -
drop capability 'sys_time' (25)
lxc 1450082201.017 DEBUG lxc_conf - conf.c:setup_caps:2279 -
drop capability 'sys_module' (16)
lxc 1450082201.017 DEBUG lxc_conf - conf.c:setup_caps:2288 -
capabilities have been setup
lxc 1450082201.017 NOTICE lxc_conf - conf.c:lxc_setup:4026 - 't1'
is setup.
lxc 1450082201.018 DEBUG lxc_cgmanager -
cgmanager.c:cgm_setup_limits:1394 - cgroup 'devices.deny' set to 'c 5:1 rwm'
lxc 1450082201.018 INFO lxc_cgmanager -
cgmanager.c:cgm_setup_limits:1398 - cgroup limits have been setup
lxc 1450082201.027 INFO lxc_apparmor -
lsm/apparmor.c:apparmor_process_label_set:187 - changed apparmor profile to
lxd-t1_</var/lib/lxd>
lxc 1450082201.027 NOTICE lxc_start - start.c:start:1295 -
exec'ing '/sbin/init'
lxc 1450082201.027 ERROR lxc_start - start.c:start:1298 - No
such file or directory - failed to exec /sbin/init
lxc 1450082201.028 ERROR lxc_sync - sync.c:__sync_wait:51 -
invalid sequence number 1. expected 4
lxc 1450082201.028 ERROR lxc_start - start.c:__lxc_start:1213 -
failed to spawn 't1'
lxc 1450082201.137 INFO lxc_conf - conf.c:run_script_argv:362 -
Executing script '/usr/share/lxcfs/lxc.reboot.hook' for container 't1', config
section 'lxc'
lxc 1450082201.640 INFO lxc_conf - conf.c:run_script_argv:362 -
Executing script '/usr/bin/lxd callhook /var/lib/lxd 1 stop' for container
't1', config section 'lxc'
lxc 1450082201.830 WARN lxc_commands -
commands.c:lxc_cmd_rsp_recv:172 - command get_init_pid failed to receive
response
lxc 1450082201.831 WARN lxc_commands -
commands.c:lxc_cmd_rsp_recv:172 - command get_init_pid failed to receive
response
lxc 1450082201.832 WARN lxc_cgmanager - cgmanager.c:cgm_get:994
- do_cgm_get exited with error
lxc 1450082201.839 WARN lxc_cgmanager - cgmanager.c:cgm_get:994
- do_cgm_get exited with error
lxc 1450082219.243 INFO lxc_confile -
confile.c:config_idmap:1437 - read uid map: type u nsid 0 hostid 1000000 range
100000
lxc 1450082219.243 INFO lxc_confile -
confile.c:config_idmap:1437 - read uid map: type g nsid 0 hostid 1000000 range
100000
lxc 1450082219.246 WARN lxc_cgmanager - cgmanager.c:cgm_get:994
- do_cgm_get exited with error
lxc 1450082219.248 WARN lxc_cgmanager - cgmanager.c:cgm_get:994
- do_cgm_get exited with error
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1524618
Title:
please add support for s390x
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1524618/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs