I need some help fixing my lxc conf after 3to5 migration.
After issuing lxc-stop -n mylxc
I’m unable to start it back:
root@turris:~# lxc-start -F -n mylxc
lxc-start: mylxc: conf.c: lxc_setup_ttydir_console: 1831 Read-only file system - Failed to set mode "0110" to "/dev/pts/3"
lxc-start: mylxc: conf.c: lxc_setup: 3625 Failed to setup console
The fix is to issue a
mount -o remount,rw /dev/pts
then lxc-start works as expected.
My lxc.conf and default.conf are using the default values:
root@turris:~# cat /etc/lxc/lxc.conf
lxc.lxcpath = /srv/lxc
root@turris:~# cat /etc/lxc/default.conf
lxc.net.0.type = veth
lxc.net.0.link = br-lan
lxc.net.0.flags = up
lxc.net.0.name = eth0
# Some workarounds
lxc.include = /usr/share/lxc/config/common.conf
lxc.hook.start-host = /usr/share/lxc/hooks/systemd-workaround
# Template to generate fixed MAC address
lxc.net.0.hwaddr = x2:xx:xx:xx:xx:xx