I’m trying to create a LXC container Debian stretch, repo.turris.cz, architecture arm64 but I can not configure my network. Can you help me?
Log from LXC container:
root@mox:~# cat /srv/lxc/debian/debian.log
lxc-start debian 20190127200250.341 ERROR lxc_network - network.c:instantiate_veth:130 - Failed to create veth pair "veth5VRAC3" and "vethAKPFDY": Not supported
lxc-start debian 20190127200250.342 ERROR lxc_network - network.c:lxc_create_network_priv:2402 - Failed to create network device
lxc-start debian 20190127200250.342 ERROR lxc_start - start.c:lxc_spawn:1206 - Failed to create the network.
lxc-start debian 20190127200250.342 ERROR lxc_start - start.c:__lxc_start:1459 - Failed to spawn container "debian".
lxc-start debian 20190127200250.343 ERROR lxc_container - lxccontainer.c:wait_on_daemonized_start:760 - Received container state "STOPPING" instead of "RUNNING"
lxc-start debian 20190127200250.344 ERROR lxc_start_ui - tools/lxc_start.c:main:371 - The container failed to start.
lxc-start debian 20190127200250.344 ERROR lxc_start_ui - tools/lxc_start.c:main:373 - To get more details, run the container in foreground mode.
lxc-start debian 20190127200250.345 ERROR lxc_start_ui - tools/lxc_start.c:main:375 - Additional information can be obtained by setting the --logfile and --logpriority options.
LXC container config:
root@mox:~# cat /srv/lxc/debian/config
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template:
# For additional config options, please look at lxc.container.conf(5)
# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)
# Distribution configuration
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.arch = linux64
# Container specific configuration
lxc.rootfs.path = dir:/srv/lxc/debian/rootfs
lxc.uts.name = debian
# Network configuration
lxc.net.0.type = veth
lxc.net.0.name = eth0
lxc.net.0.link = br-lan
lxc.net.0.flags = up
Depends, if you did not use the Foris LCX plugin than you should make sure that all necessary LXC packages are installed. My preference is via user.lua for pkgupdate
I would love to install it in the Foris interface, but unfortunately it does not work in Turris OS 4. I already reported it as a bug. And unfortunately, I’ve never been able to find a list of software to install for each of the available plugins in Foris. To be able to imitate it manually in SSH.
Thank you, it sounded like a better solution than add contentent from files like “lists/luci-controls.lua” into the file “/etc/updater/user.lua”.
The LXC example worked well, but the next time I came across the problem. Probably the name to be entered in the configuration /etc/config/updater does not match the file name of the list files from repo.
What name should I add when I want to install this plugin?
That’s why I continued adding to the file “/etc/updater/user.lua”.
Here is the config:
root@mox:~# cat /etc/config/updater
config override 'override'
option disable '0'
config turris 'turris'
option version 'hbk'
list lists ''
config l10n 'l10n'
list langs 'cs'
config approvals 'approvals'
option need '1'
config pkglists 'pkglists'
list lists 'luci-controls'
list lists 'lxc'
list lists 'netutils'
When will the new version of Turris 4.0 be available for upgrde?
I’m sorry, but from now what I’ve had the chance to test, it feels to me, like this version is not ready for testing by the public. Thus Turris MOX at this stage is unusable for deployment.
Is it possible to install a stable, lower version of Turris OS to Turris MOX?
I have been able to check what’s wrong and fixed it and send it to OpenWrt, which was merged.
But for now, just only one issue is fixed as unfortunately, they are two.
luci-app-lxc wasn’t aware of aarch64 architecture and LXC containers are provided by two servers.
You’d need to add to file /usr/lib/lua/luci/controller/lxc.lua this row, which you can find in my commit and then you will be able to see LXC images from images.linuxcontainers.org.
Thank you for reporting!
When will the new version of Turris 4.0 be available for upgrde?