github rcarmo/pve-microvm v0.4.7

one hour ago

v0.4.7 — verify imported LVM qcow2 disks while active

On Proxmox, qm importdisk can register an LVM qcow2 disk and deactivate its
logical volume before returning. Reading qcow2 size metadata then fails, so
older template builds can stop with imported backing volume is missing or empty
and leave an unused disk.

This release shares the import verifier between the template builder and the
common importer. It checks storage and VM ownership before temporarily
activating an inactive LVM qcow2 disk through Proxmox. It releases that activation
after verification, including error paths, and leaves already-active volumes
active. Raw LVM and file-backed qcow2 keep their existing size checks.

If an earlier build failed, inspect the incomplete VM and its unused disks.
Retry at a free VM ID after updating; remove the incomplete VM separately only
after confirming it is safe. The update does not repair partial templates
automatically.

PR #29 passed two maintainer audit
passes. The full local suite passes 107/107, including added checks for
already-active volumes, activation failure before and after device creation,
deactivation failure, and combined verification/cleanup errors. Focused paired
CPU/allocation checks passed; see the profiling conclusions.
The contributor also reports shared-LVM import and clone-boot testing; this
maintainer review did not repeat a live shared-LVM import.

Linux remains 6.12.113. This host-tool fix does not require guest restarts.
Standard/full OCI preparation still runs trusted image code as host root and
requires explicit --trust-image; untrusted-image builds are not isolated.

Don't miss a new pve-microvm release

NewReleases is sending notifications on new releases.