- Upgraded from Ubuntu 16.04 LTS to 18.04 (pre-release) using
dist-upgade
- Upon restart CT would not start
- Error displayed in Web GUI:
command 'systemctl start pve-container@101' failed: exit code 1
- SSHd in and manually ran CT with
pct start 101
:
>root@server:~# pct start 101
Job for [email protected] failed because the control process exited with error code.
See "systemctl status [email protected]" and "journalctl -xe" for details.
command 'systemctl start pve-container@101' failed: exit code 1
>root@server:~# journalctl -xe
-- Subject: Unit [email protected] has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit [email protected] has begun starting up.
Jan 11 22:35:02 server kernel: EXT4-fs (dm-8): mounted filesystem with ordered data mode. Opts: (null)
Jan 11 22:35:02 server lxc-start[14122]: lxc-start: 101: lxccontainer.c: wait_on_daemonized_start: 751 No such file or directory - Failed to receive the container state
Jan 11 22:35:02 server lxc-start[14122]: lxc-start: 101: tools/lxc_start.c: main: 368 The container failed to start.
Jan 11 22:35:02 server lxc-start[14122]: lxc-start: 101: tools/lxc_start.c: main: 370 To get more details, run the container in foreground mode.
Jan 11 22:35:02 server lxc-start[14122]: lxc-start: 101: tools/lxc_start.c: main: 372 Additional information can be obtained by setting the --logfile and --logpriority options.
Jan 11 22:35:02 server systemd[1]: [email protected]: Control process exited, code=exited status=1
Jan 11 22:35:02 server systemd[1]: Failed to start PVE LXC Container: 101.
-- Subject: Unit [email protected] has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit [email protected] has failed.
--
-- The result is failed.
Edit /usr/share/perl5/PVE/LXC/Setup/Ubuntu.pm
and add 18.04
to list of known distros.
my $known_versions = {
'18.04' => 1, # bionic
'17.10' => 1, # artful
'17.04' => 1, # zesty
'16.10' => 1, # yakkety
'16.04' => 1, # xenial
'15.10' => 1, # wily
'15.04' => 1, # vivid
'14.04' => 1, # trusty LTS
'12.04' => 1, # precise LTS
};
Thanks for the tip it helped me a lot!
Had the same issue with Debian containers not starting:
Edited
/usr/share/perl5/PVE/LXC/Setup/Debian.pm
and added version 11 to the list:Then changed the line
to match
and then it was fixed!