In this 2017 blog post, Joanna suggested the possibility of mounting a VM’s disk image in another VM, to avoid booting it. She suggested these commands:
[joanna@dom0 ~]$ qvm-block -A --ro admin-ir dom0:/var/lib/qubes/appvms/personal/private.img [root@admin-ir user]# mount -o ro /dev/xvdi /mnt/personal/
I believe the format for the first command is obsolete. It should be, I think,
qvm-block attach... instead of
qvm-block -A.... But also the private.img no longer lives at this path and you will get an error passing a path like that as the deviceid.
I’ve been unable to find the new location of the private.img. Is it still possible to mount a VM’s disk without booting the VM, similar to the above?
(My original use case for this was a VM that had a startup script I wished to avoid running. I found a workaround in that case. Today I wanted this as a convenience mechanism; I have a file in an old sys-net I want to copy out (very simple wifi restart script) and it will not boot if another sys-net is going.)