BACKUP IMPORTANT VMS Q4

47 views
Skip to first unread message

ama...@gmail.com

unread,
Dec 22, 2018, 12:52:29 AM12/22/18
to qubes-users
Hello, im using qubes os 4, i updated all the VMs + updated dom0
When i turned on my pc, Qubes os didnt get recognized at boot menu, i have tried a lot of things and now im tired, i just want to backup my vms and i will make a fresh install. I have saw a lot of tutorials but im not that familiar with disk partitions, logical volumes etc. Can someone please tell me step by step how to backup the important vms? I have tried mounting the drive to a live system but i cant mount it, i always get this issue: mount: /mnt: unknown filesystem type 'LVM2_member'.

Encrypted partition with all vm data: /dev/sda

I cloned the disk in case something goes wrong.
Hope you can help me!

unman

unread,
Dec 22, 2018, 8:20:24 AM12/22/18
to qubes-users
Mount to a live system or use the install disk and use rescue mode.
I'm assuming that you have something like a standard install on /dev/sda
(boot in /dev/sda1 and data in /dev/sda2?)
You can check this from the prompt by running cfdisk /dev/sda, to see
how the disk is configured.
Once you know how the disk is configured, use lvm tools to dig into it.
lvmdiskscan will show you the volumes.
lvscan will show you the status of the drives.
lvdisplay will show you the LV and VG names.

vgchange -ay will make the volumes active, and lvscan should then show
you the appropriate volumes:
/dev/qubes_dom0/root

Then you should be able to mount /dev/qubes_dom0/root and back up the VM
data from there.

If you need more help or something doesnt look right, just ask.
(Cloning the disk was a good move, and would have been my first bit of
advice.)

ama...@gmail.com

unread,
Dec 22, 2018, 11:49:42 AM12/22/18
to qubes-users

> Mount to a live system or use the install disk and use rescue mode.
> I'm assuming that you have something like a standard install on /dev/sda
> (boot in /dev/sda1 and data in /dev/sda2?)
> You can check this from the prompt by running cfdisk /dev/sda, to see
> how the disk is configured.
> Once you know how the disk is configured, use lvm tools to dig into it.
> lvmdiskscan will show you the volumes.
> lvscan will show you the status of the drives.
> lvdisplay will show you the LV and VG names.
>
> vgchange -ay will make the volumes active, and lvscan should then show
> you the appropriate volumes:
> /dev/qubes_dom0/root
>
> Then you should be able to mount /dev/qubes_dom0/root and back up the VM
> data from there.
>
> If you need more help or something doesnt look right, just ask.
> (Cloning the disk was a good move, and would have been my first bit of
> advice.)

Thank you, you solved my problem, i can mount the disk now

What should i backup? I mounted: /dev/qubes_dom0/root, went to /var/lib/qubes/appvms/ and it shows all my vms, but i open any folder and theres only 2 files: Firewall.xml, and icon.png
What should i backup? Is there another folder i can get the files from my vms?
Thank you, i will make a backup using qubes so this doesnt happen again

ama...@gmail.com

unread,
Dec 22, 2018, 11:59:59 AM12/22/18
to qubes-users
Forgot to say: cd /dev/qubes_dom0/
root vm-untrusted-private-198130370-back vm-work-private
swap vm-untrusted-root vm-work-1145339724-back
vm-untrusted-root-198130370-back vm-work-root

It shows for every vm:
name of vm-private
name of vm-private-198130370-back
name of vm-root
name of vm-root-198130370-back

awokd

unread,
Dec 22, 2018, 12:19:28 PM12/22/18
to qubes...@googlegroups.com


ama...@gmail.com:
Check lvs, you should see more logical volumes with names like
vm-[name]-private. Those are the ones you want to mount and backup their
contents.

ama...@gmail.com

unread,
Dec 22, 2018, 12:29:47 PM12/22/18
to qubes-users

Thank you, problem solved!
Appreciate your help!

Reply all
Reply to author
Forward
0 new messages