Error starting LXC container: Failed to mount /usr/lib/lxc/rootfs/proc/tty onto /usr/lib/lxc/rootfs/proc/sys/net

Dear all,

I have compiled OpenWrt 18.06.4 and cannot start LXC containers.

lxc-create -n test -t download -- --dist centos --release 6 --arch amd64
Setting up the GPG keyring
Downloading the image index
Downloading the rootfs
Downloading the metadata
The image cache is now ready
Unpacking the rootfs
You just created a Centos 6 x86_64 (20190722_07:08) container.

However, when I try to start the container I get the following error:

lxc-start -F -n test

lxc-start: test: utils.c: safe_mount: 1707 No such file or directory - Failed to mount /usr/lib/lxc/rootfs/proc/tty onto /usr/lib/lxc/rootfs/proc/sys/net

Does anybody have an idea what I am doing wrong?

Here are the information on my system:

lxc-checkconfig | grep 'missing'
Cgroup v1 systemd controller: missing
Cgroup v1 freezer controller: missing
CONFIG_INET_DIAG: missing
CONFIG_NETLINK_DIAG: missing
lxc-checkconfig | grep 'not loaded'
Vlan: enabled, not loaded
Bridges: enabled, not loaded
Advanced netfilter: enabled, not loaded
CONFIG_NF_NAT_IPV6: enabled, not loaded
CONFIG_IP6_NF_TARGET_MASQUERADE: enabled, not loaded
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled, not loadedCONFIG_NETFILTER_XT_MATCH_COMMENT: enabled, loaded
opkg list-installed | egrep "lxc|veth"
kmod-veth - 4.14.131-1
liblxc - 2.1.1-2
luci-app-lxc - git-19.190.55614-35357e4-1
lxc - 2.1.1-2
lxc-attach - 2.1.1-2
lxc-auto - 2.1.1-2
lxc-autostart - 2.1.1-2
lxc-cgroup - 2.1.1-2
lxc-checkconfig - 2.1.1-2
lxc-common - 2.1.1-2
lxc-config - 2.1.1-2
lxc-configs - 2.1.1-2
lxc-console - 2.1.1-2
lxc-copy - 2.1.1-2
lxc-create - 2.1.1-2
lxc-destroy - 2.1.1-2
lxc-device - 2.1.1-2
lxc-execute - 2.1.1-2
lxc-freeze - 2.1.1-2
lxc-hooks - 2.1.1-2
lxc-info - 2.1.1-2
lxc-init - 2.1.1-2
lxc-ls - 2.1.1-2
lxc-lua - 2.1.1-2
lxc-monitor - 2.1.1-2
lxc-monitord - 2.1.1-2
lxc-snapshot - 2.1.1-2
lxc-start - 2.1.1-2
lxc-stop - 2.1.1-2
lxc-templates - 2.1.1-2
lxc-top - 2.1.1-2
lxc-unfreeze - 2.1.1-2
lxc-unprivileged - 2.1.1-2
lxc-unshare - 2.1.1-2
lxc-user-nic - 2.1.1-2
lxc-usernsexec - 2.1.1-2
lxc-wait - 2.1.1-2
rpcd-mod-lxc - 20171206
cat /etc/lxc/default.conf
lxc.net.0.type = veth
lxc.net.0.link = br-lan
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:11:22:33:44:xx
cat /etc/lxc/lxc.conf
lxc.lxcpath = /mnt/container/lxc
1 Like

Please use "Preformatted text </>" for logs, scripts, configs and general console output.
grafik

Please edit your posting accordingly.
Thanks!

1 Like

OK, I have updated the formating