OpenVZ Reboot

The reboot-system command should reboot even if the VPS is offline, as it is logical to do that. Currently you can only reboot a running system.

Status: 
Active

Comments

That would be an easy change to make .... but what does it mean reboot a VPS that is offline, vs just starting it up?

I know the change is simple and I can do it myself, just want it fixed.

Basically If you have a offline server, you can not reboot it. It has to be online to be rebooted. I have a habbit of pressing reboot over boot and I am betting that applies to many others as well.

Ok, but does rebooting an offline VPS do anything different from booting it (with the Start System menu item in Cloudmin) ? I'm reluctant to add menu items that are redundant.

No, but rebooting should generally be able to boot a server regardless of its state.

And this is more of via API, not the web interface.

To me a "reboot" means something like what happens if you hit ctrl-alt-delete at the console of a physical system .. which doesn't work if it is shut down.

If you are calling the API, can't you call startup-system if the current state is down? Or is there some limitation of the API that makes checking the status impractical?

Generally I have always had been able to press "reboot" and get a VM up or cycled regardless of what state it was in. I am looking at this for VM's not for a physical system.

Sometimes I dont know the server state and want to ensure it is up.

Also "vzctl" even has a reboot command on my version that does this so theres no reason it can't be added in a simple manner.