In Qubes 4.x the images are no longer ordinary files accessible from the
dom0 file system. So how can I extract them as VM images (.img files in
Q 3.x) in Qubes 4.x? In the wiki I only find how to delete, but not how
to extract an image fom LVM. Thank you.
r.wiesbach@web.de:
In Qubes 4.x the images are no longer ordinary files accessible from the
dom0 file system. So how can I extract them as VM images (.img files in
Q 3.x) in Qubes 4.x? In the wiki I only find how to delete, but not how
to extract an image fom LVM. Thank you.
You can extract the raw private drive contents with something like:
sudo cp /dev/mapper/qubes_dom0-vm--vmname--private /pathtodestinationfolder/vmname.raw
In Qubes 4.x the images are no longer ordinary files accessible from the
dom0 file system. So how can I extract them as VM images (.img files in
Q 3.x) in Qubes 4.x? In the wiki I only find how to delete, but not how
to extract an image fom LVM. Thank you.
Try "kpartx -va /dev/qubes-dom0/vm-..." for your favorite VM. That creates device files for each partition, so you could mount those (read-only).
See "man kpartx".