how to integrate 3-year old backed up VM's into new system?

56 views
Skip to first unread message

Emil Cronjäger

unread,
Oct 17, 2016, 3:50:49 PM10/17/16
to qubes...@googlegroups.com
Hi,

I have a 3-year old backup of an old Qubes system that I cannot access
on my new, up-to-date system.

Two templates are standalone VM's: I can integrate them with the
Qubes-backup tool, so they appear in Qubes Manager, but they wont start:
"ERROR: Cannot execute qrexec-daemon!"

Two VM's are based on out-dated templates (fedora-18-x64) and cannot be
restored. I can restore them still, with the "ignore missing" option,
but I guess this wont make them boot?

Any suggestions?

Best regards,
Emil


signature.asc

Marek Marczykowski-Górecki

unread,
Oct 17, 2016, 5:19:51 PM10/17/16
to Emil Cronjäger, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Mon, Oct 17, 2016 at 07:50:26PM +0000, Emil Cronjäger wrote:
> Hi,
>
> I have a 3-year old backup of an old Qubes system that I cannot access
> on my new, up-to-date system.
>
> Two templates are standalone VM's: I can integrate them with the
> Qubes-backup tool, so they appear in Qubes Manager, but they wont start:
> "ERROR: Cannot execute qrexec-daemon!"

Take a look at those instructions (in order):
https://www.qubes-os.org/doc/upgrade-to-r3.0/
https://www.qubes-os.org/doc/upgrade-to-r3.1/
https://www.qubes-os.org/doc/upgrade-to-r3.2/

Especially the first link have steps for recovering from your situation.

> Two VM's are based on out-dated templates (fedora-18-x64) and cannot be
> restored. I can restore them still, with the "ignore missing" option,
> but I guess this wont make them boot?

That should work - those VMs will be set to use your default template.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYBUB3AAoJENuP0xzK19csiFkIAI/QKzWZckvhk/f77ib7wvDS
33AY5h342ZJhmIK8dGyP8yJVHxxYAr4p1UPqM59hQlgTy4hWPwcWjS4MF5SV5x6K
QyYTuuVBjyz2oaA1z+r5rmFpJWnTHapk+h1Z/epmy4iNZ0UH2QKxU10C//BLpx4W
dVkFixv7aaeRjuIjPDtfYYfnQ7A5H3VYZPgvMwvF27z2wnHYqEW995TevkGwDpSi
9pMOj+uGGODIM8ytz9b0MGMlcXejIAhIZ2MfG99oBRcK09BNNS+/38I4AUMQ992a
XhGi9Eqji0ddH6WX3ICU7zGzRc/LnYDCy2MOuTXuNaJa2lg0JaQp2qpdmj/V1gA=
=LRLN
-----END PGP SIGNATURE-----

Emil Cronjäger

unread,
Oct 17, 2016, 7:09:12 PM10/17/16
to Marek Marczykowski-Górecki, qubes...@googlegroups.com


Marek Marczykowski-Górecki:
> On Mon, Oct 17, 2016 at 07:50:26PM +0000, Emil Cronjäger wrote:
> Take a look at those instructions (in order):
> https://www.qubes-os.org/doc/upgrade-to-r3.0/

That got me a shell in one of the two VM's - thanx! There were some
problems with the ip-commands though, but I managed to get the data out,
and put it into a fresh VM.

The other VM (also standalone), however, wont help me with a shell:

connected to domain [domain-name]
error: operation failed: PTY device is not yet assigned

I am not sure or how to determine it, but it *might* be a debian-based
VM, if that is to any help.
It is not crucial for me to get the VM up and running, but I need to get
data out of it somehow.

> That should work - those VMs will be set to use your default template.
>
>

Yup, it worked.

signature.asc

Marek Marczykowski-Górecki

unread,
Oct 17, 2016, 7:27:44 PM10/17/16
to Emil Cronjäger, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Mon, Oct 17, 2016 at 11:08:35PM +0000, Emil Cronjäger wrote:
>
>
> Marek Marczykowski-Górecki:
> > On Mon, Oct 17, 2016 at 07:50:26PM +0000, Emil Cronjäger wrote:
> > Take a look at those instructions (in order):
> > https://www.qubes-os.org/doc/upgrade-to-r3.0/
>
> That got me a shell in one of the two VM's - thanx! There were some
> problems with the ip-commands though, but I managed to get the data out,
> and put it into a fresh VM.
>
> The other VM (also standalone), however, wont help me with a shell:
>
> connected to domain [domain-name]
> error: operation failed: PTY device is not yet assigned
>
> I am not sure or how to determine it, but it *might* be a debian-based
> VM, if that is to any help.

Standalone (PV) VM, right? Or maybe some HVM?

> It is not crucial for me to get the VM up and running, but I need to get
> data out of it somehow.

If you just want the data, create new VM, start it, and then attach the
old VM private.img and/or root.img to the new one as additional device:

qvm-block --attach-file new-vm /var/lib/qubes/appvms/old-vm/private.img

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYBV54AAoJENuP0xzK19csi8UIAJtW6Yj8/xFst44BqegUSxDZ
j0WzxGSPXFWMesqSeB6rvsZFftK0oSdyWK2QxYuo8FhmI2pD8PPMB6C/9WKpSM5D
cSkBFubZRAr4eolrArTF1spOtJTit/QvIqlWQhbKpR2Lquf+f8x5n5oEG81Ar0si
VJvgEhdXE1Y/uJX97YBBpqCSo5SvWbADJ2fN09yNFMbuADKBdqvwr8zv9WnGkJvl
1LK0BM9yvwGPAyA1h8uze5KqpoFUK/Tw61GD2LkAHtpL2AoAY3ch+N4B/CsKcwki
nFRRIWUO/RjDhAmseXAY0IjASeEh5/XbPmkq8S6AUJMyRTEUheWXJjsoq5FGSbI=
=4mtR
-----END PGP SIGNATURE-----

Emil Cronjäger

unread,
Oct 18, 2016, 8:05:40 AM10/18/16
to Marek Marczykowski-Górecki, qubes...@googlegroups.com


Marek Marczykowski-Górecki:
> On Mon, Oct 17, 2016 at 11:08:35PM +0000, Emil Cronjäger wrote:
>
>
>> Marek Marczykowski-Górecki:
>>> On Mon, Oct 17, 2016 at 07:50:26PM +0000, Emil Cronjäger wrote:
>>> Take a look at those instructions (in order):
>>> https://www.qubes-os.org/doc/upgrade-to-r3.0/
>
>> That got me a shell in one of the two VM's - thanx! There were some
>> problems with the ip-commands though, but I managed to get the data out,
>> and put it into a fresh VM.
>
>> The other VM (also standalone), however, wont help me with a shell:
>
>> connected to domain [domain-name]
>> error: operation failed: PTY device is not yet assigned
>
>> I am not sure or how to determine it, but it *might* be a debian-based
>> VM, if that is to any help.
>
> Standalone (PV) VM, right? Or maybe some HVM?

yes, standalone VM, no HVM.

>> It is not crucial for me to get the VM up and running, but I need to get
>> data out of it somehow.
>
> If you just want the data, create new VM, start it, and then attach the
> old VM private.img and/or root.img to the new one as additional device:
>
> qvm-block --attach-file new-vm /var/lib/qubes/appvms/old-vm/private.img

The command goes through without any errors, but the device doesnt show
up in new-vm. No changes in lsblk before/after.
I tried the --frontend=xvdi, also goes through with no problem, but
still no new device for me in new-vm. Does it hide somewhere special?

signature.asc

Marek Marczykowski-Górecki

unread,
Oct 18, 2016, 8:50:47 AM10/18/16
to Emil Cronjäger, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, Oct 18, 2016 at 12:05:33PM +0000, Emil Cronjäger wrote:
>
>
> Marek Marczykowski-Górecki:
> > On Mon, Oct 17, 2016 at 11:08:35PM +0000, Emil Cronjäger wrote:
> >
> >
> >> Marek Marczykowski-Górecki:
> >>> On Mon, Oct 17, 2016 at 07:50:26PM +0000, Emil Cronjäger wrote:
> >>> Take a look at those instructions (in order):
> >>> https://www.qubes-os.org/doc/upgrade-to-r3.0/
> >
> >> That got me a shell in one of the two VM's - thanx! There were some
> >> problems with the ip-commands though, but I managed to get the data out,
> >> and put it into a fresh VM.
> >
> >> The other VM (also standalone), however, wont help me with a shell:
> >
> >> connected to domain [domain-name]
> >> error: operation failed: PTY device is not yet assigned
> >
> >> I am not sure or how to determine it, but it *might* be a debian-based
> >> VM, if that is to any help.
> >
> > Standalone (PV) VM, right? Or maybe some HVM?
>
> yes, standalone VM, no HVM.
>
> >> It is not crucial for me to get the VM up and running, but I need to get
> >> data out of it somehow.
> >
> > If you just want the data, create new VM, start it, and then attach the
> > old VM private.img and/or root.img to the new one as additional device:
> >
> > qvm-block --attach-file new-vm /var/lib/qubes/appvms/old-vm/private.img

Correction: prefix file path with "dom0:". But if you didn't get any
error, it should be fine too...

> The command goes through without any errors, but the device doesnt show
> up in new-vm. No changes in lsblk before/after.
> I tried the --frontend=xvdi, also goes through with no problem, but
> still no new device for me in new-vm. Does it hide somewhere special?

No, it should be there as /dev/xvdi... Anything in `dmesg` output in
new-vm?


- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYBhqoAAoJENuP0xzK19csXTkH/RvFHSeBlkCDI9U+4oyCUB7W
Pb2BeeodM2JUSTitFSHfhv6hioW0wVAfEFGMUHEWwS5I48w183j50EEmPZ1Jl+/L
llVa87oCTEkKhgDttgpWCW7p4EbUIS3bltm7vYF5FWv1BuvvPXdSuB666oLbpXaJ
evUYVnFbh+b1SEV5PTcfHRfXRfm3/fbFjda77xH99U640GkdmIHLIkVMBfSBullv
AGOPxdGvhJCNCmyJC01DcP2nKeDKi3z/+lnYDFb6AU97R3xRsK47hgZJ6PXB0llN
8j2muAth4mrgaYA0QZbFl4DRzF4mjVnYnDpXFL81aRe6vvGLtA1kl7gW9Lyr/Kw=
=o89T
-----END PGP SIGNATURE-----

Emil Cronjäger

unread,
Oct 18, 2016, 5:49:24 PM10/18/16
to Marek Marczykowski-Górecki, qubes...@googlegroups.com


Marek Marczykowski-Górecki:
It worked with the "dom0:" option, the device got mounted as /dev/xvdi
and all good. I mistakenly used prefix "old-vm:", thats why it did't
work. Thanks a lot, all solved.

signature.asc
Reply all
Reply to author
Forward
0 new messages