Here's a crappy little script that automates the steps in Fix proxmox containers that won't start
#!/bin/bash
if [ -z "$1" ]; then
containers=`pct list | grep stopped | awk '{print $1 " "}'`
else
containers=$1
fi
echo "restarting containers: $containers"
for m in $containers; do
lxc-start -n $m &
echo "force started $m"
done
echo "sleeping for 2 minutes while containers start"
sleep 120
for m in $containers; do
echo "shutting down $m"
pct shutdown $m;
echo "starting $m"
pct start $m &
done