When running the following command on the host:
lxc exec c01n2 – apt update && apt upgrade -y && apt autoremove && reboot
Expected behavior is that the entire line gets executed inside the VM, but the host was restarted.
Please note that the apt autoremove command would probably have required “-y” and hence probably that is the root of the problem, nonetheless, I don’t think the host should have been restarted and the error should have been caught and the execution interrupted…
Sadly every time the hosts restart I have to wait several minutes until the restart is completed, so I can’t test variants fast…