Mounting a qube's private storage in another qube

Original forum link
https://forum.qubes-os.org/t/19080
Original poster
null
Editors
deeplow
Created at
2023-06-03 13:22:19
Last wiki edit
2023-08-14 20:30:58
Revisions
2 revisions
Posts count
1
Likes count
0
Tags
version-r40

Useful for data recovery. As per this Reddit post:

[dom0] sudo lvcreate --size 1G --snapshot --name tempsnap /dev/mapper/qubes_dom0-vm--untrusted--private


[dom0] readlink /dev/mapper/qubes_dom0-tempsnap


[dom0] qvm-start --hddisk dom0:/dev/[from previous command] viewervm

(Attaching to a running viewervm was not possible)


[viewervm] mkdir -v /tmp/stuff


[viewervm] sudo mount /dev/xvdi /tmp/stuff

If the original VM has more than one partition, have to pick the right one, such as xvdi1 or xvdi2, etcetera.

Could be unmounted, but no commands or options we tried allowed to detach the viewervm until it was stopped. (qvm-block still seems bugged)

Couldn't lvremove until the machine was restarted.


This document was migrated from the qubes-community project