Skip to main content

Boot a VM from recovery media

Boot a virtual machine (VM) from recovery media when its guest OS does not boot or needs to be repaired by external means. The media is an image that is attached to the VM so that the VM boots from it instead of its disk.

Before you begin​

  • You need the VDC admin role in the VDC (virtual data center) of this VM, or the Cluster master role. With the Vm Developer role, you can select the media but cannot restart the VM.
  • The VM is not being moved right now: while it has the Migrating or Sending status, the Actions menu is unavailable.

1. Attach the media​

  1. In the left menu, select Virtual Data Centers → the VDC → Virtual Machines → the VM. The VM page opens.
  2. Select Actions → Boot media → the media. The list contains the images available on the cluster, for example SystemRescue CD 10.01. The web interface shows the notification VM (id: <ID>, name: <name>) - boot media successfully changed to <media>.
  3. Restart the VM — Start, stop and restart a VM.
  4. Open the VM console and restore the system in the media environment — Open the VM console.

The media is attached to the VM when the VM starts, so without a restart the VM keeps running from its own disk. Restart is enough — you do not need to stop and start the VM separately. If the VM is powered off, start it.

2. Return to booting from the disk​

The media stays selected in the VM settings until you detach it.

  1. On the VM page, select Actions → Boot media → none.
  2. Restart the VM.

Check the result​

  • While the media is attached, the Boot media field of the General properties block on the VM page shows the selected media, and the VM console shows the media environment booting.
  • After you detach the media, this field shows none, and the VM boots from its own disk.

If the media fails to attach or detach, the web interface shows a notification with the error text.

More​

  • You can also select the media in the Boot media field of the General properties block on the VM page. After you select it, click Save changes in this block.

Next​

API methods: vm-set, vm-boot_media-list — in the API reference.