[PVE-User] VMs shut down instead of reboot

Neil Aggarwal neil at JAMMConsulting.com
Sun Mar 27 01:20:37 CET 2011


Hello all:

> When I do a reboot from a VM, it does not start

I have been poking around the OpenVZ docs a bit.
According to the OpenVZ user guide, there needs to
be an ALLOWREBOOT="yes" directive in either the
global vz config file or the vm's config file.

I checked both /etc/vz/vz.conf and /etc/vz/conf/101.conf
neither had that directive in it.  Is Proxmox not set
up to support reboots by default?  It seems like it
should be the other way to me.

I added the ALLOWREBOOT="yes" directive to the 
vz.conf and rebooted my vm with id 101.  It did not
come up automatically.

Doing some more investigation, the 
/usr/share/vzctl/scripts/vpsreboot script looks
for a /var/lib/vz/root/101/reboot file in order
to start the VM.  That file was not present.
If I touch the file, the VM comes up automatically
the next time the script runs.

So, it looks like the facility to support reboots
is in Proxmox but it is disabled by default 
not working correctly when enabled.

How is the /var/lib/vz/root/101/reboot supposed to be 
created?

Thanks,
	Neil


--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 5.5 preinstalled
Unmetered bandwidth = no overage charges 




More information about the pve-user mailing list