Just like with a physical machine, some user operations (such as a major upgrade of the operating system or a modification of the partition layout) could result in a Compute instance being unable to boot normally.

For times such as these when an instance cannot boot normally, a rescue mode exists in order to access the root disk of the instance by booting from a different source. In this case, we use an open source program called netboot.xyz that can utilize a variety of Linux, BSD, ISO images, specialized installers or utilities.

Pre-Requisites to Work with Rescue Mode

Rescue mode is not a default operation, and can be operated only via the CLI or the API. Rescue mode requires:

If you wish to use a custom ISO, it must be loaded in a publicly accessible URL. You can always use Simple Object Storage.

Warning

Exoscale is solely responsible for the instance to boot in rescue mode with the netboot.xyz loader. Any operation performed in netboot.xyz, and the repair of the instance itself, is out of Exoscale’s standard support scope. The examples provided in this guide are solely intended to point the user in the right direction, with no guarantee of their outcome. Knowledge of tooling and operations is required.

Booting Into Rescue Mode

To reboot in rescue mode, first start by shutting down your instance via the CLI or the Portal in the instance details:

    exo compute instance stop broken-vm

Then start your instance in either BIOS or UEFI rescue mode, depending on the template you are using.

To start an instance in BIOS rescue mode:

    exo compute instance start --rescue-profile=netboot broken-vm

To start an instance in UEFI rescue mode:

    exo compute instance start --rescue-profile=netboot-efi broken-vm

Start instance rescue mode

The instance will now boot the netboot.xyz image.

Accessing the Rescue Mode

To access the rescue mode, log into the Portal and navigate to the instance detail view. Select Console in the ... menu at the top right header.

A new window will open and display the instance console and the netboot.xyz menu:

netboot.xyz rescue menu from console

You can now perform any operations you need to repair the instance and then reboot your instance normally after you have finished. After the instance has rebooted, it will exit rescue mode and try to boot from its root disk.

Booting from a Custom ISO Image in BIOS Rescue Mode

Through rescue mode, it is possible to boot an instance from an external ISO as long as the ISO supports VirtIO storage and network drivers. With this method, a bare metal recovery is possible, for example.

Note

The custom ISO must be located in a publicly accessible URL. You can always use our Simple Object Storage.

To boot from an external ISO:

  • Start your instance in rescue mode as described above
  • From the main netboot.xyz menu, select Tools -> Utilities
  • Then select netboot.xyz tools -> Test Distribution ISO
  • Enter the public URL of the target ISO (for example: http://centos.anexia.at/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1908.iso boots a CentOS Live CD)

Netboot_rescue_menu_from_console_iso_image

Booting from a Windows Recovery Image

If you need to recover a Windows instance from a Windows Recovery Image, you can use two ISOs we have provided, where all the needed virtIO drivers have already been integrated:

  • http://sos-de-muc-1.exo.io/windows-recovery-image/w2k16 a Windows 2016 recovery image
  • http://sos-de-muc-1.exo.io/windows-recovery-image/w2k19 a Windows 2019 recovery image
  • http://sos-de-muc-1.exo.io/windows-recovery-image/w2k22 a Windows 2022 recovery image

Warning

Although provided for public use, the above Windows Recovery Images are provided as is, without warranties of any kind. As for any other rescue mode operation, the user is solely responsible for the outcome of their actions, and rescue operations beyond the booting of the netboot.xyz loader are out of the Exoscale standard support scope.

Netboot_rescue_menu_from_console_iso_image

To proceed:

  • Start your instance in rescue mode as described above
  • From the main netboot.xyz menu, select Distributions -> Windows
  • Select Options -> Base URL
  • Enter the URL corresponding to your instance’s Windows version from the options listed above. Then enter any key to return to the Windows menu
  • After returning to the Windows menu, select Load Microsoft Windows Installer...
  • The Windows Recovery Image will load and you will be prompted to enter some basic options. click on Next when ready
  • On the next screen, click on Repair Your Computer

You can now recover your Windows instance.