Issue


I need to get into Windows recovery or safe mode to run startup repair/chkdsk or similar.


Environment


All OnApp versions

Windows virtual servers


Resolution


To get into Windows recovery or safe mode for a KVM compute resource:

  1. Open the VNC console of the virtual server and keep it open.
  2. Turn off the virtual server and get the VS's identifier (find it in the URL, e.g. yyy.com/virtual_machines/xxxxx).
  3. SSH into the compute resource, where the virtual server is located.
  4. Turn on the virtual server.
  5. Ensure the VNC console is connected to the virtual server.
  6. Once the virtual server is online, run the virsh reboot <VM_ID> command. This will simulate the reset button, but it shouldn't turn off the VNC console.
  7. Quickly press the F8 key in the VNC console until the boot menu shows up.
  8. Select Repair your computer for recovery and Safe mode for safe mode.


To get into Windows recovery or safe mode for a XEN compute resource:

  1. Open the VNC console of the virtual server and keep it open.
  2. Turn off the virtual server and get the VS's identifier (find it in the URL, e.g. yyy.com/virtual_machines/xxxxx).
  3. SSH into the compute resource, where the virtual server is located.
  4. Turn on the virtual server.
  5. Ensure the VNC console is connected to the virtual server.
  6. Once the virtual server is online, run the xm reset <VM_ID> command. It will forcefully shutdown the virtual server and restart it. This disconnects the VNC console from the virtual server, so you will need to refresh the VNC console by pressing the F5 key until it lets you in. If it does not let you in, restart it.
  7. Quickly press F8 in the VNC console until the boot menu shows up.
  8. Select Repair your computer for recovery and Safe mode for safe mode.

Please note that you can also use xm pause/unpause, as well as virsh suspend/resume to pause a virtual server when starting up the VNC console.