I’ve been running a Home Assistant OS VM without issues for a while on Incus 6.9.
I just upgraded to 6.10 and the VM wouldn’t start anymore. In the VM console, it was looking for the root partition (console: “Waiting for root device PARTUUID=xxxx-xxxx…”), which is mapped from a normal block device on my default storage.
Looking at dmesg output, it seems like apparmor is denying access to ‘dev’ to qemu. Here are some of the relevant entries I see:
I tried to recreate the VM from scratch (so importing a fresh image) to ensure it wasn’t something wrong with the disk mapping, but am getting the same error, with potentially apparmor denying disk access - unless I’m off base there.
I didn’t see anything in the 6.10 changelog that looked related, but perhaps the IOMMU change interacts with this in some way? It’s the only QEMU-related thing I saw.
I tried adding raw.apparmor: /dev/**/* rw, and variations to the VM config and while the apparmor denied message disappears, the VM still won’t boot, with the same error of not being able to find the root device. At this point I suspect it might be something else and am stumped.
I uploaded the installer iso to my default storage and attached it to the VM with a boot priority of 10 as per the docs.
The installer boots, but it also can’t find any root disk. So something is going on with VM guests not seeing the default root disks attached to them on my end.
Hello, I just have the same problem after update from 6.6 to 6.10. I’m using ZFS volume for HAOS, inside it there are multiple partitions. I’ve checked that wanted partition exists, but not booting - VM is stuck on Waiting for root device PARTUUID=…
io.bus: nvme in disk session of yaml not helped.
I also want to say that’s bad that no older versions of incus are in Zabbly repository (for Debian)
Installing incus LTS version won’t help, it doesn’t start with Error: Get “http://unix.socket/1.0”: EOF
Yes! People with the same issue as me! Spent hours on this yesterday, because it broke as the same time as I updated the kernel and ZFS to 2.3.0, so I wasn’t sure what went wrong.
But after rolling the kernel back it was still broken. There is definitely something wrong in the way the disk is exposed to the VM since the last incus version.
I can confirm that I have experienced the same issue upon my upgrading from incus 6.9 to 6.10 and the proposed workaround/fix solving it - thank you @Max!
The affected installation is running on Raspberry CM4 with Ubuntu 24.04 and the latest Home Assistant OS 14.2. Before finding this post I’ve tried running earlier snapshots/versions of HassOS, but as you can imagine, got the same results.
Edit: I was using incus-migrate from apt so it was running 6.0. I manually downloaded the latest and it works now.
–
I’m trying to import Home Assistant for the first time and even adding the specified change, my VM still doesn’t boot. It’s just stuck on the Zabbly bootscreen with
BdsDxe: failed to load Boot0001 “UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1): Not Found”
I did an incus-migrate and imported as VM w/ secure boot off which I saw in another post. Any clue if this is related to this discussion or something else?