manually import VM's

64 views
Skip to first unread message

cybe...@national.shitposting.agency

unread,
Sep 25, 2018, 3:05:20 PM9/25/18
to qubes-users
I will be reimaging a QubesOS machine. Will I be able to save the existing VM's manually and import into the fresh Install of Qubes?
I would like to do the backup operation without needing to actually boot up the existing OS, and then restore the backed up volumes after an install.

awokd

unread,
Sep 26, 2018, 5:55:38 PM9/26/18
to qubes...@googlegroups.com
cybe...@national.shitposting.agency wrote on 9/25/18 7:05 PM:
> I will be reimaging a QubesOS machine. Will I be able to save the existing VM's manually and import into the fresh Install of Qubes?
> I would like to do the backup operation without needing to actually boot up the existing OS, and then restore the backed up volumes after an install.

No easy way I know of. Could mount the LVM qube partitions and backup
just the data you want to keep, but that wouldn't include the VM
definitions.


awokd

unread,
Apr 16, 2019, 5:57:20 AM4/16/19
to qubes...@googlegroups.com
awokd wrote on 9/26/18 9:55 PM:
Anyone have a better approach? I have some large VMs on secondary
storage that have lost their qube configuration. I can recreate
definitions easily enough, but want to attach their root and private
volumes without a full, slow copy step.

Chris Laprise

unread,
Apr 16, 2019, 5:48:44 PM4/16/19
to awokd, qubes...@googlegroups.com
Perhaps you could define the secondary storage as a Qubes storage pool,
then create empty vms in that pool. Finally, mv/lvrename/snapshot/ln
(your choice, depending on type of storage and preference) your existing
volumes as necessary.

--

Chris Laprise, tas...@posteo.net
https://github.com/tasket
https://twitter.com/ttaskett
PGP: BEE2 20C5 356E 764A 73EB 4AB3 1DC4 D106 F07F 1886

awokd

unread,
Apr 16, 2019, 7:20:49 PM4/16/19
to Chris Laprise, qubes...@googlegroups.com
Chris Laprise wrote on 4/16/19 9:48 PM:

> Perhaps you could define the secondary storage as a Qubes storage pool,
> then create empty vms in that pool. Finally, mv/lvrename/snapshot/ln
> (your choice, depending on type of storage and preference) your existing
> volumes as necessary.

Thank you, lvrename did the trick. Probably would have helped if I had
specified it was set up as an LVM pool I added back in with qvm-pool.

Reply all
Reply to author
Forward
0 new messages