Is it possible to restart the virtual system from within the O/S by running shutdown -r -t 0 or is it better to issue the restart command from within vSphere client?
Welcome to the Community,
either way will work. I'm often using the shutdown command from within the guest OS for scheduled reboots of e.g. Citrix XenApp servers.
André
It depend on condition , mostly we restart guest from command , if vm is hung then only option from vc-client or from esxi host
As RajeevVCP4 says, mostly everyone restart the VM with "Restart Guest" if the OS is responsive, if not, you should restart the VM directly.
But for comparison is the same doing it from command prompt than from the option from the vSphere Web client, as "Restart Guest" sends a shutdown signal to the OS.
Regards,
Dan Belmonte
I've used the in vm shutdown command as well as restart guest from VMWare and many other methods. There is no one method that is better or recommended over the others.
Its better to use "Restart Guest" option from Power Tab from vCenter, do not use reset it can sometimes cause Bugcheck/No Boot for Windows servers. If server is accessible from RDP or console, always try to use Restart from inside OS. Or command "shutdown -r -t 00" Best ever command for rebooting windows OS.
Use PowerCLI
If your windows machine has VMtools installed, you can use Restart-VMGuest. Restart-VM will perform a hard reset.