Currently at PVE shutdown/reboot, the CTs are forced immediate ungraceful shutdown with --kill.
This is a bit unexpected since the host is having a graceful shutdown, one would expect the containers to do the same.
And in scenario with CIFS network mounts, this is actually making host shutdown MUCH SLOWER than needed.
Because everything is killed instantly, all networking in the CT is gone before umount can finish.
But lxc does not consider shutdown complete until all mounts are removed.
So then lxc-stop hangs for 120 seconds, until the kernel cifs module timeout, then finally return.
I haven't tested with other types of network mounts, but it seems they are more-or-less susecptible to this problem.
This is a bit unexpected since the host is having a graceful shutdown, one would expect the containers to do the same.
And in scenario with CIFS network mounts, this is actually making host shutdown MUCH SLOWER than needed.
Because everything is killed instantly, all networking in the CT is gone before umount can finish.
But lxc does not consider shutdown complete until all mounts are removed.
So then lxc-stop hangs for 120 seconds, until the kernel cifs module timeout, then finally return.
I haven't tested with other types of network mounts, but it seems they are more-or-less susecptible to this problem.