Hi,
After upgrading to 19.09 I can’t make lxc containers to work (they worked before).
LXD is enabled: virtualisation.lxd.enable = true;
I’ve created new ZFS dataset: zfs create tank/lxd
lxd init:
# lxd init
Would you like to use LXD clustering? (yes/no) [default=no]:
Do you want to configure a new storage pool? (yes/no) [default=yes]:
Name of the new storage pool [default=default]:
Name of the storage backend to use (btrfs, dir, lvm, zfs) [default=zfs]:
Create a new ZFS pool? (yes/no) [default=yes]: no
Name of the existing ZFS pool or dataset: tank/lxd
Would you like to connect to a MAAS server? (yes/no) [default=no]:
Would you like to create a new local network bridge? (yes/no) [default=yes]: no
Would you like to configure LXD to use an existing bridge or host interface? (yes/no) [default=no]: yes
Name of the existing bridge or host interface: br0
Would you like LXD to be available over the network? (yes/no) [default=no]:
Would you like stale cached images to be updated automatically? (yes/no) [default=yes] no
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]: yes
config:
images.auto_update_interval: "0"
networks: []
storage_pools:
- config:
source: tank/lxd
description: ""
name: default
driver: zfs
profiles:
- config: {}
description: ""
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
root:
path: /
pool: default
type: disk
name: default
cluster: null
trying to launch container:
# lxc launch ubuntu:18.04 test
Creating test
Starting test
Error: Failed to run: /nix/store/16z5hmi8k2dy5bcd16xjshlliy5hgnbm-lxd-3.13-bin/bin/.lxd-wrapped forkstart test /var/lib/lxd/containers /var/log/lxd/test/lxc.conf:
Try `lxc info --show-log local:test` for more info
# lxc info --show-log local:test
[...]
lxc test 20191027205625.930 WARN initutils - initutils.c:setproctitle:341 - Invalid argument - Failed to set cmdline
lxc test 20191027205626.170 ERROR cgfsng - cgroups/cgfsng.c:__do_cgroup_enter:1500 - No space left on device - Failed to enter cgroup "/sys/fs/cgroup/cpuset//lxc.monitor/test/cgroup.procs"
lxc test 20191027205626.170 ERROR start - start.c:__lxc_start:2009 - Failed to enter monitor cgroup
lxc test 20191027205626.170 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:873 - Received container state "STOPPING" instead of "RUNNING"
lxc test 20191027205626.171 WARN cgfsng - cgroups/cgfsng.c:cgfsng_monitor_destroy:1180 - No space left on device - Failed to move monitor 31513 to "/sys/fs/cgroup/cpuset//lxc.pivot/cgroup.procs"
lxc 20191027205626.172 WARN commands - commands.c:lxc_cmd_rsp_recv:135 - Connection reset by peer - Failed to receive response for command "get_state"
I have enough space on the device:
# lxc storage info default
info:
description: ""
driver: zfs
name: default
space used: 777.41MB
total space: 359.07GB
used by:
containers:
- test
images:
- d6f281a2e523674bcd9822f3f61be337c51828fb0dc94c8a200ab216d12a0fff
profiles:
- default
What step am I missing, what am I doing wrong?
Thanks!