[Turris 1.x] Debian Stretch - error

I am trying to run a container, but always with this error:

lxc-start: lxc_start.c: main: 344 The container failed to start.

I am on Turris 1, container is
Distribution: Debian
Release: Stretch
Architecture: armv7l

Can someone please help?

The log is:

  lxc-start 1544576183.839 INFO     lxc_start_ui - lxc_start.c:main:264 - using rcfile /mnt/ha/homeassistant/config
  lxc-start 1544576183.839 WARN     lxc_confile - confile.c:config_personality:1077 - unsupported personality 'armv7l'
  lxc-start 1544576183.840 WARN     lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuset unknown to /mnt/ha homeassistant
  lxc-start 1544576183.840 DEBUG    lxc_start - start.c:setup_signal_fd:264 - sigchild handler set
  lxc-start 1544576183.841 DEBUG    lxc_console - console.c:lxc_console_peer_default:500 - opening /dev/tty for console peer
  lxc-start 1544576183.841 DEBUG    lxc_console - console.c:lxc_console_peer_default:506 - using '/dev/tty' as console
  lxc-start 1544576183.841 DEBUG    lxc_console - console.c:lxc_console_sigwinch_init:179 - 4572 got SIGWINCH fd 9
  lxc-start 1544576183.841 DEBUG    lxc_console - console.c:lxc_console_winsz:88 - set winsz dstfd:6 cols:116 rows:45
  lxc-start 1544576183.841 INFO     lxc_start - start.c:lxc_init:460 - 'homeassistant' is initialized
  lxc-start 1544576183.841 DEBUG    lxc_start - start.c:__lxc_start:1165 - Not dropping cap_sys_boot or watching utmp
  lxc-start 1544576183.846 INFO     lxc_conf - conf.c:run_script:412 - Executing script '/usr/share/lxc/hooks/tx-off' for container 'homeassistant', config section 'net'
  lxc-start 1544576183.853 DEBUG    lxc_conf - conf.c:run_buffer:333 - script output: Actual changes:

  lxc-start 1544576183.853 DEBUG    lxc_conf - conf.c:run_buffer:333 - script output: tx-checksumming: off

  lxc-start 1544576183.853 DEBUG    lxc_conf - conf.c:run_buffer:333 - script output:       tx-checksum-ip-generic: off

  lxc-start 1544576183.853 DEBUG    lxc_conf - conf.c:run_buffer:333 - script output: tcp-segmentation-offload: off

  lxc-start 1544576183.853 DEBUG    lxc_conf - conf.c:run_buffer:333 - script output:       tx-tcp-segmentation: off [requested on]

  lxc-start 1544576183.853 DEBUG    lxc_conf - conf.c:run_buffer:333 - script output:       tx-tcp-ecn-segmentation: off [requested on]

  lxc-start 1544576183.853 DEBUG    lxc_conf - conf.c:run_buffer:333 - script output:       tx-tcp6-segmentation: off [requested on]

  lxc-start 1544576183.853 DEBUG    lxc_conf - conf.c:run_buffer:333 - script output: udp-fragmentation-offload: off [requested on]

  lxc-start 1544576183.854 DEBUG    lxc_conf - conf.c:instantiate_veth:2821 - instantiated veth 'vethPS4DGX/veth5QA9FE', index is '26'
  lxc-start 1544576183.854 INFO     lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgroupfs initing for homeassistant
  lxc-start 1544576183.854 ERROR    lxc_cgfs - cgfs.c:handle_cgroup_settings:2091 - Device or resource busy - failed to set memory.use_hierarchy to 1; continuing
  lxc-start 1544576183.855 ERROR    lxc_cgfs - cgfs.c:handle_cgroup_settings:2091 - Device or resource busy - failed to set memory.use_hierarchy to 1; continuing
  lxc-start 1544576183.868 DEBUG    lxc_conf - conf.c:lxc_assign_network:3238 - move 'eth0' to '4590'
  lxc-start 1544576183.871 DEBUG    lxc_conf - conf.c:setup_rootfs:1295 - mounted '/mnt/ha/homeassistant/rootfs' on '/usr/lib/lxc/rootfs'
  lxc-start 1544576183.871 INFO     lxc_conf - conf.c:setup_utsname:928 - 'homeassistant' hostname has been setup
  lxc-start 1544576183.877 DEBUG    lxc_conf - conf.c:setup_hw_addr:2368 - mac address '32:da:c9:2f:58:39' on 'eth0' has been setup
  lxc-start 1544576183.877 DEBUG    lxc_conf - conf.c:setup_netdev:2595 - 'eth0' has been setup
  lxc-start 1544576183.877 INFO     lxc_conf - conf.c:setup_network:2616 - network has been setup
  lxc-start 1544576183.878 INFO     lxc_conf - conf.c:mount_autodev:1157 - Mounting container /dev
  lxc-start 1544576183.878 INFO     lxc_conf - conf.c:mount_autodev:1179 - Mounted tmpfs onto /usr/lib/lxc/rootfs/dev
  lxc-start 1544576183.878 INFO     lxc_conf - conf.c:mount_autodev:1197 - Mounted container /dev
  lxc-start 1544576183.878 INFO     lxc_conf - conf.c:fill_autodev:1225 - Creating initial consoles under container /dev
  lxc-start 1544576183.878 INFO     lxc_conf - conf.c:fill_autodev:1236 - Populating container /dev
  lxc-start 1544576183.878 INFO     lxc_conf - conf.c:fill_autodev:1269 - Populated container /dev
  lxc-start 1544576183.878 INFO     lxc_conf - conf.c:setup_dev_console:1518 - console has been setup
  lxc-start 1544576183.878 INFO     lxc_utils - utils.c:mount_proc_if_needed:1724 - I am 4572, /proc/self points to ''
  lxc-start 1544576183.878 INFO     lxc_utils - utils.c:mount_proc_if_needed:1743 - Mounted /proc in container for security transition
  lxc-start 1544576183.883 DEBUG    lxc_conf - conf.c:setup_rootfs_pivot_root:1135 - pivot_root syscall to '/usr/lib/lxc/rootfs' successful
  lxc-start 1544576183.883 DEBUG    lxc_conf - conf.c:lxc_create_tty:3482 - allocated pty '/dev/pts/0' (11/14)
  lxc-start 1544576183.884 DEBUG    lxc_conf - conf.c:lxc_create_tty:3482 - allocated pty '/dev/pts/1' (15/16)
  lxc-start 1544576183.884 DEBUG    lxc_conf - conf.c:lxc_create_tty:3482 - allocated pty '/dev/pts/2' (17/18)
  lxc-start 1544576183.885 DEBUG    lxc_conf - conf.c:lxc_create_tty:3482 - allocated pty '/dev/pts/3' (19/20)
  lxc-start 1544576183.885 INFO     lxc_conf - conf.c:lxc_create_tty:3493 - tty's configured
  lxc-start 1544576183.885 INFO     lxc_conf - conf.c:setup_tty:1080 - 4 tty(s) has been setup
  lxc-start 1544576183.885 DEBUG    lxc_conf - conf.c:setup_caps:2288 - capabilities have been setup
  lxc-start 1544576183.885 NOTICE   lxc_conf - conf.c:lxc_setup:4026 - 'homeassistant' is setup.
  lxc-start 1544576183.890 NOTICE   lxc_start - start.c:start:1274 - exec'ing '/sbin/init'
  lxc-start 1544576183.890 ERROR    lxc_start - start.c:start:1277 - Exec format error - failed to exec /sbin/init
  lxc-start 1544576183.891 ERROR    lxc_sync - sync.c:__sync_wait:51 - invalid sequence number 1. expected 4
  lxc-start 1544576183.891 ERROR    lxc_start - start.c:__lxc_start:1192 - failed to spawn 'homeassistant'

Turris 1.x has a processor - Freescale P2020. It isn’t arm7l, but power architecture.
If you’d like to create LXC container of Turris OS, that’s possible through lxc-create. However, there is no Debian Stretch, but a port of Debian for PowerPCSPE, which is highly experimental. For it, you’d need to follow this documentation.

Many people including me have it running. You can take a look here: LXC kontejnery na Turris verze 1.x

2 Likes