QEMU exited with code 1 (pci_register_bar: Assertion)

danielfm

Renowned Member
Jun 8, 2016
3
0
66
44
Does anyone run into this issue?

Proxmox VE 8.3.2

qm start 112
generating cloud-init ISO
kvm: ../hw/pci/pci.c:1313: pci_register_bar: Assertion `is_power_of_2(size)' failed.
start failed: QEMU exited with code 1

This issue occurred after running Terraform using bpg/proxmox/0.70.0 provider to increase the memory allocation for the VM.

Fortunately, I had a backup from the previous week, which I was able to restore. However, every time I use Terraform to make any changes to the VM, the same error reoccurs.

Below is the qm config 112 output. The "good" configuration is on the right, while the "bad" version is on the left.

Screenshot 2025-01-19 at 10.02.02.jpg

Does anyone have any tips on what might be causing the issue?

Thanks!
 
Last edited:
I don't know this error and I have no experience with ivshmem: but 8194 is not a power of 2. Have you tried changing it to 8192?
I thought I had tried that on the "broken" version, but it worked just fine with the restored one.

Thank you so much for the quick reply!

Wishing you a great end to your weekend!