The /etc/init.d/reboot file in the ProxMox VE Host is altered to make the do_stop() function as:
This will ensure the presence of a /reboot file in the guest when a reboot is signalled from within the guest.
We may need to put in ALLOWREBOOT="yes" in the /etc/vz/conf/XXX.conf file where XXX is the VEID.
After an average of 2 to 3 minutes, the guest will then restart. Any way to make it immediate?
The entries in /etc/vz/cron/vz file are:
That is every 5 minutes a reboot!
On a properly working Proxmox VE v1.8, none of the above is necessary. This post is only a stop-gap fix till the actual reason of why the /reboot file is not being written within the container is found.
Code:
do_stop () {
# Message should end with a newline since kFreeBSD may
# print more stuff (see #323749)
touch /reboot
log_action_msg "Will now restart"
reboot -d -f -i
}
We may need to put in ALLOWREBOOT="yes" in the /etc/vz/conf/XXX.conf file where XXX is the VEID.
After an average of 2 to 3 minutes, the guest will then restart. Any way to make it immediate?
The entries in /etc/vz/cron/vz file are:
Code:
# Clean containers' network rules (arp,route,iptables)
*/5 * * * * root /usr/share/vzctl/scripts/vpsnetclean
# Start containers marked as rebooted.
*/5 * * * * root /usr/share/vzctl/scripts/vpsreboot
On a properly working Proxmox VE v1.8, none of the above is necessary. This post is only a stop-gap fix till the actual reason of why the /reboot file is not being written within the container is found.
Last edited: