VM Boot Stuck With Booting From Hard Disk Console Message

Problem

VM Boot Stuck with "Booting from Hard Disk" Console Message with VM status ACTIVE on the console.

Cause

The VM Image is built to set boot in UEFI mode, not legacy BIOS which is default.

Diagnostics

1

Check VM status

Verify the VM is running and VM Status shows active on the PCD GUI.

2

Connect QCOW2 image using qemu-nbd

Run:

sudo qemu-nbd --connect=/dev/nbd0 <IMAGE_NAME>.qcow2

If the above command fails with the error:

qemu-nbd: Failed to open /dev/nbd0: No such file or directory

then load the nbd kernel module:

sudo modprobe nbd max_part=8

Then retry:

sudo qemu-nbd --connect=/dev/nbd0 <IMAGE_NAME>.qcow2
3

Inspect disk partition types

Check if any disk has type "EFI" (which indicates the qcow2 image is set to boot in UEFI mode):

sudo fdisk -l /dev/nbd0
4

Disconnect the NBD

When finished, disconnect:

sudo qemu-nbd --disconnect /dev/nbd0

Resolution

circle-info

These steps are applicable only when the Diagnostics step that inspects partitions shows any disk with type "EFI".

1

Update image properties in PCD GUI

Using the PCD GUI edit the image properties (VM → Images → Select Image → Edit properties) and add the following values:

hw_firmware_type=uefi
hw_machine_type=q35
2

Rebuild the VM

Rebuild the VM using the updated image properties.

Validation

  1. Check if the VM boots successfully.

  2. If these steps prove insufficient to resolve the issue, reach out to the Platform9 Support Teamarrow-up-right for additional assistance.

Last updated

Was this helpful?