VM Fails to Start Due to Boot Volume Format Mismatch in Block Device Mapping
Problem
A virtual machine is active in the Private Cloud Director platform but fails to start or reboot. Every start and hard reboot attempt fails consistently. The VM console may display an "Instance not found" error.
The Compute Service logs on the hypervisor (/var/log/pf9/ostackhost.log) record the following error for every start attempt:
libvirt.libvirtError: internal error: process exited while connecting to monitor:
qemu-system-x86_64: -blockdev {"node-name":"libvirt-1-format","driver":"qcow2",
"file":"libvirt-1-storage","backing":null}: Image is not in qcow2 formatThe VM reports as ACTIVE in the platform, but no corresponding libvirt domain exists on the hypervisor.
Environment
Private Cloud Director Virtualization - v2026.1 and Higher
Self-Hosted Private Cloud Director Virtualization - v2026.1 and Higher
Component: Compute Service
NFS-backed boot volume (Tintri NFS or equivalent)
Cause
The VM's boot volume is hosted on NFS storage. Under certain conditions — most commonly during a live migration — the on-disk format of the volume file can change from qcow2 to raw. The format field inside the connection_info JSON column of the block_device_mapping table in the Compute Service database is not automatically updated when this format change occurs.
When the Compute Service subsequently attempts to start the VM, it reads the stale "format": "qcow2" metadata from the database and instructs QEMU to open the disk as qcow2 via libvirt. QEMU rejects the file because the actual on-disk format is raw, causing every start and reboot attempt to fail with Image is not in qcow2 format.
Diagnostics
The following checks confirm the VM is affected by this specific issue. Complete all steps before proceeding to Workaround.
Step 3 — Confirm the Actual On-Disk Volume Format
On the same hypervisor, locate the boot volume file and inspect its format using qemu-img.
First, locate the full path to the volume file:
Then run qemu-img info on the full path returned above:
file format: raw confirms the on-disk format does not match the qcow2 value stored in the database.
If all checks above match — domain absent in Step 2, file format: raw in Step 3, and "qcow2" in Step 4 — proceed to Workaround.
Resolution
No permanent code fix exists for this issue. Applying the Workaround below permanently corrects the stale format metadata in the Compute Service database and restores normal VM operation.
Workaround
The following procedure corrects the stale format value in the block_device_mapping table and restores the ability to start the VM.
Step 2 — Verify a Single Boot Device Mapping Exists
Confirm there is only one block device mapping with boot_index = 0 for the VM before modifying any records.
The output must show exactly one row with boot_index = 0. If multiple rows exist or the volume UUID does not match the boot volume identified in Diagnostics, stop and contact Platform9 Support before proceeding.
Step 7 — Verify the VM Is Running
Confirm the VM is ACTIVE with power state Running.
Power state 1 indicates the VM is running. Optionally, confirm the libvirt domain is now present on the hypervisor:
The VM is successfully restored when the status is ACTIVE, power state is 1, and the libvirt domain appears as running on the hypervisor.
Additional Information
For issues where a volume creation operation fails due to an image format mismatch on NFS or Tintri storage, see Volume Creation Failure Due to Image Format Mismatch.
Last updated
