AppVM automatic boot fail, dom0:md127 not available

Hi,
automatic boot of a specific AppVM (vault) fails, due to missing block device.
I attached my RAID1 to the vault using:

$ qvm-block attach vault dom0:md127 --persistent

But this fails, since /dev/md127 seems not to be populated during boot at that time.
My workaround is to automatically boot the VM at login (xfce -> session & startup -> application autostart -> qvm-start vault).

There seems to be missing some kind of systemd magic “requires block device”, which i am unfamiliar with. I also don’t have a github account at the moment, so i thought i post this here.

Greetings

Log:>

Sep 15 12:18:46 dom0 qubesd[2243]: Starting vault
Sep 15 12:18:46 dom0 qubesd[2243]: Start failed: block device dom0:md127 not available
Sep 15 12:18:46 dom0 qvm-start[2385]: block device dom0:md127 not available
Sep 15 12:18:46 dom0 systemd[1]: qubes-vm@vault.service: Main process exited, code=exited, status=1/FAILURE
Sep 15 12:18:46 dom0 systemd[1]: Failed to start Start Qubes VM vault.
Sep 15 12:18:46 dom0 systemd[1]: qubes-vm@vault.service: Unit entered failed state.
Sep 15 12:18:46 dom0 systemd[1]: qubes-vm@vault.service: Failed with result ‘exit-code’.

Posted @github qubes-issues:

1 Like