VM hangs: Booting from Harddisk

Skip to main content
Du bist hier:
Drucken

VM hangs: Booting from Harddisk

Your VM does not start and only shows «Booting from Hard Disk». This happens, for example, when a system that was installed with UEFI (such as a generation 2 Hyper-V VM) starts in Proxmox without a matching boot entry. This is how you set up UEFI boot if the firmware cannot find the boot loader.

Step 1: Check UEFI in Proxmox

Make sure that in Proxmox, under «Hardware» of your VM, «BIOS» is set to «OVMF (UEFI)» and an «EFI Disk» exists. If it is missing, add it via «Add» > «EFI Disk».

Step 2: Start the VM and press ESC

Start the VM and press ESC to get to the OVMF menu.

Step 3: Select «Boot Maintenance Manager»

Then select «Boot Maintenance Manager»:

Step 4: Open «Add Boot Option»

Then select «Boot Options» > «Add Boot Option».

Step 5: Select the disk with the EFI partition

Select the disk with the EFI system partition (ESP):

Step 6: Navigate to the boot loader

Navigate in the folder structure to your boot loader, for example EFI/debian/grubx64.efi (Debian), EFI/ubuntu/shimx64.efi (Ubuntu) or EFI/fedora/shimx64-fedora.efi (Fedora).

Step 7: Name the entry and save it

Enter a name for the entry under «Input the description» and select «Commit Changes and Exit».

Step 8: Open «Change Boot Order»

Select «Change Boot Order» to move the new entry to the top.

Step 9: Move the boot entry up and confirm

Press Enter, select the boot entry with the arrow keys and move it up or down with «+» and «-». Then press Enter again and confirm your changes with «Commit Changes and Exit»:

Step 10: Reset the VM

Finally, reset the VM with «Reset» in the OVMF main menu. It should then start with the boot entry you have just set up.

Step 11: Make the boot entry permanent

To keep the entry permanently, reinstall the boot loader in the running system after it has started successfully. On Debian and Ubuntu, run the following as root:

grub-install --target=x86_64-efi --efi-directory=/boot/efi
update-grub

The EFI partition must be mounted at /boot/efi. You can check this with findmnt /boot/efi.

Related Post