Otherwise the container will fail to start, create and clone, because the plugin's check_systemd_nesting is only defined in the Base module but not the Unmanaged module and is called in the pre_start_hook, post_clone_hook, and post_create_hook.
Reported in the Proxmox Forum [0]. [0] https://forum.proxmox.com/threads/180258/ Signed-off-by: Daniel Kral <[email protected]> --- src/PVE/LXC/Setup/Unmanaged.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/PVE/LXC/Setup/Unmanaged.pm b/src/PVE/LXC/Setup/Unmanaged.pm index d76921e..aa26c1c 100644 --- a/src/PVE/LXC/Setup/Unmanaged.pm +++ b/src/PVE/LXC/Setup/Unmanaged.pm @@ -51,7 +51,13 @@ sub unified_cgroupv2_support { sub get_ct_init_path { my ($self) = @_; - return '/sbin/init'; # only passed to unified_cgroupv2_support for now + # only passed to check_systemd_nesting and unified_cgroupv2_support for now + return '/sbin/init'; +} + +sub check_systemd_nesting { + my ($self, $conf, $init) = @_; + return; } sub ssh_host_key_types_to_generate { -- 2.47.3
