Re: [qubes-users] how to integrate 3-year old backed up VM's into new system?

2016-10-18 Thread Emil Cronjäger


Marek Marczykowski-Górecki:
> On Tue, Oct 18, 2016 at 12:05:33PM +, Emil Cronjäger wrote:
> 
> 
>> Marek Marczykowski-Górecki:
>>> On Mon, Oct 17, 2016 at 11:08:35PM +, Emil Cronjäger wrote:
>>>
>>>
 Marek Marczykowski-Górecki:
> On Mon, Oct 17, 2016 at 07:50:26PM +, 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?
> 

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.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/3977c91d-84b4-5632-58cc-f8f78a34cdf0%40riseup.net.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] how to integrate 3-year old backed up VM's into new system?

2016-10-18 Thread Marek Marczykowski-Górecki
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On Tue, Oct 18, 2016 at 12:05:33PM +, Emil Cronjäger wrote:
> 
> 
> Marek Marczykowski-Górecki:
> > On Mon, Oct 17, 2016 at 11:08:35PM +, Emil Cronjäger wrote:
> > 
> > 
> >> Marek Marczykowski-Górecki:
> >>> On Mon, Oct 17, 2016 at 07:50:26PM +, 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-

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20161018125050.GQ15776%40mail-itl.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] how to integrate 3-year old backed up VM's into new system?

2016-10-18 Thread Emil Cronjäger


Marek Marczykowski-Górecki:
> On Mon, Oct 17, 2016 at 11:08:35PM +, Emil Cronjäger wrote:
> 
> 
>> Marek Marczykowski-Górecki:
>>> On Mon, Oct 17, 2016 at 07:50:26PM +, 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?

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/3feb4473-aae0-f734-82d5-0baf4af76129%40riseup.net.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] how to integrate 3-year old backed up VM's into new system?

2016-10-17 Thread Marek Marczykowski-Górecki
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On Mon, Oct 17, 2016 at 11:08:35PM +, Emil Cronjäger wrote:
> 
> 
> Marek Marczykowski-Górecki:
> > On Mon, Oct 17, 2016 at 07:50:26PM +, 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-

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20161017232754.GM15776%40mail-itl.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] how to integrate 3-year old backed up VM's into new system?

2016-10-17 Thread Emil Cronjäger


Marek Marczykowski-Górecki:
> On Mon, Oct 17, 2016 at 07:50:26PM +, 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.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/da6f51de-4ca4-c6f9-c915-a646b2861311%40riseup.net.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: [qubes-users] how to integrate 3-year old backed up VM's into new system?

2016-10-17 Thread Marek Marczykowski-Górecki
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On Mon, Oct 17, 2016 at 07:50:26PM +, 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-

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20161017211952.GK15776%40mail-itl.
For more options, visit https://groups.google.com/d/optout.


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

2016-10-17 Thread Emil Cronjäger
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


-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/db36114d-35ab-7218-13e8-0d1a3e9ca9b4%40riseup.net.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature