Re: [qubes-users] Import a .img file (Windows7) into Qubes?

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

On Mon, Oct 24, 2016 at 07:12:53AM -0700, Grzesiek Chodzicki wrote:
> W dniu niedziela, 23 października 2016 23:10:06 UTC+2 użytkownik Marek 
> Marczykowski-Górecki napisał:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA256
> > 
> > On Sun, Oct 23, 2016 at 12:29:32PM -0700, Dima Puntus wrote:
> > > Is it possible at all? I'm trying to virtualize my windows machine and 
> > > move
> > > entirely to Qubes. Some of the applications can't be reinstalled so fresh
> > > install isn't an option.
> > 
> > Should be possible, but probably you'll need to install some drivers (as
> > the emulated hardware is most likely different than your real one).
> > After that, you can simply copy your disk into .img file (using dd) and
> > point to that file when creating HVM, like:
> > 
> > qvm-create --hvm --label red --root-move-from=/path/to/file.img
> > some-vm-name
> > 
> > You'll need a lot of disk space for this... You can make it smaller by
> > first filling all free space of the (windows) disk with zeros (create
> > big file with zeros, then remove it). And then add "conv=sparse" to dd
> > command. It will not copy unused space.
> 
> can the root.img be kept in an AppVM filesystem for this?

Not easily. You'll need to modify VM libvirt configuration and start the
VM with "qvm-start --custom-config=..." every time.

- -- 
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

iQEcBAEBCAAGBQJYDkvGAAoJENuP0xzK19csNg0H/3jkBKBH5ZF36PrBcrfhl5FY
GdEj4btZ0phjfXCIBHN9Z6E/MRe0l9X9lFW5gTeItg7XUnxBSrYhdc+zZeeuSqSM
7wvrX7arHCc7xtg4zFug60JYh+VBHN4xfFKneUk2hdThl8czBPFMn+EiKJjSdTch
vb+aj8ch2OgvJT0/vAjMz37rlyXJH5L6Kxz1IY7UaqiaUt1sPVd6RNQxSU5h3/+S
OaoMFFVKVMZgbWDucbsjifoycpHz46gR0Zk/9GvY9o9dlqVGXU5LkXv/HimkklDa
+XiK7FN9vq6IR7/0y/t6zc7RlaZapGcc+IYL4+s8h7pzyy1JWij8NuKRgkyR/6E=
=D9Bf
-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/20161024175827.GP1136%40mail-itl.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Import a .img file (Windows7) into Qubes?

2016-10-24 Thread Grzesiek Chodzicki
W dniu niedziela, 23 października 2016 23:10:06 UTC+2 użytkownik Marek 
Marczykowski-Górecki napisał:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
> 
> On Sun, Oct 23, 2016 at 12:29:32PM -0700, Dima Puntus wrote:
> > Is it possible at all? I'm trying to virtualize my windows machine and move
> > entirely to Qubes. Some of the applications can't be reinstalled so fresh
> > install isn't an option.
> 
> Should be possible, but probably you'll need to install some drivers (as
> the emulated hardware is most likely different than your real one).
> After that, you can simply copy your disk into .img file (using dd) and
> point to that file when creating HVM, like:
> 
> qvm-create --hvm --label red --root-move-from=/path/to/file.img
> some-vm-name
> 
> You'll need a lot of disk space for this... You can make it smaller by
> first filling all free space of the (windows) disk with zeros (create
> big file with zeros, then remove it). And then add "conv=sparse" to dd
> command. It will not copy unused space.
> 
> - -- 
> 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
> 
> iQEcBAEBCAAGBQJYDScpAAoJENuP0xzK19csctoH/A+l9gz55qsArSJTtekdITew
> /S2zv2mvEJykiz50utUV4IphMsuYxTg6K4siw757b3Y3/yYVOSD0+k/gaLiF7BTd
> 5yTGOoXvwrRO6uHeQwpjhe1SnRSBvp0rU80ELKaCsy7m3hPh+NWR5xnJYUC4VQuK
> A9J9pJJKyoYgN13qJsurytrqebhb/7aYwEJtylBowKSafvAFYBSSpUIfr/JQ8ikL
> A7oCuOYlsaZSio1rfMFwxR/azCOBINMghrj4zI0jAy3LPXdEEjXVMkZaAF43tWRq
> kKiZXPhbtHY3idLQv1q4Wgp0Xu5VU4OUOWyGcpHyKVnpBHOuSR1M2/2j1aKcpjw=
> =r5BK
> -END PGP SIGNATURE-

can the root.img be kept in an AppVM filesystem for this?

-- 
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/d6c5b1fd-33ea-4f05-b212-669cfd01feff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Import a .img file (Windows7) into Qubes?

2016-10-23 Thread Achim Patzner
Am 23.10.2016 um 23:10 schrieb Marek Marczykowski-Górecki:
> On Sun, Oct 23, 2016 at 12:29:32PM -0700, Dima Puntus wrote:
> > Is it possible at all? I'm trying to virtualize my windows machine
> and move
> > entirely to Qubes. Some of the applications can't be reinstalled so
> fresh
> > install isn't an option.
>
> Should be possible, but probably you'll need to install some drivers (as
> the emulated hardware is most likely different than your real one).

And it depends on the installed software; some "enterprise-typical
software" for remote administration will make things hard to impossible
(I have  a few machines) that really work hard on not being compatible
with Qubes, even as pure HVM without any XEN drivers).

> You'll need a lot of disk space for this... You can make it smaller by
> first filling all free space of the (windows) disk with zeros (create
> big file with zeros, then remove it). And then add "conv=sparse" to dd
> command. It will not copy unused space.

If wasting money is not a problem you can use a physical-to-virtual tool
to convert it to a VMware image which will do all those things on the
way and convert the VMware disk to a Xen image; the better ones will
also disable drivers that won't work in virtual environments.


Achim

-- 
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/fa1af92a-9c39-e44c-af94-5727153d6636%40noses.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Import a .img file (Windows7) into Qubes?

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

On Sun, Oct 23, 2016 at 12:29:32PM -0700, Dima Puntus wrote:
> Is it possible at all? I'm trying to virtualize my windows machine and move
> entirely to Qubes. Some of the applications can't be reinstalled so fresh
> install isn't an option.

Should be possible, but probably you'll need to install some drivers (as
the emulated hardware is most likely different than your real one).
After that, you can simply copy your disk into .img file (using dd) and
point to that file when creating HVM, like:

qvm-create --hvm --label red --root-move-from=/path/to/file.img
some-vm-name

You'll need a lot of disk space for this... You can make it smaller by
first filling all free space of the (windows) disk with zeros (create
big file with zeros, then remove it). And then add "conv=sparse" to dd
command. It will not copy unused space.

- -- 
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

iQEcBAEBCAAGBQJYDScpAAoJENuP0xzK19csctoH/A+l9gz55qsArSJTtekdITew
/S2zv2mvEJykiz50utUV4IphMsuYxTg6K4siw757b3Y3/yYVOSD0+k/gaLiF7BTd
5yTGOoXvwrRO6uHeQwpjhe1SnRSBvp0rU80ELKaCsy7m3hPh+NWR5xnJYUC4VQuK
A9J9pJJKyoYgN13qJsurytrqebhb/7aYwEJtylBowKSafvAFYBSSpUIfr/JQ8ikL
A7oCuOYlsaZSio1rfMFwxR/azCOBINMghrj4zI0jAy3LPXdEEjXVMkZaAF43tWRq
kKiZXPhbtHY3idLQv1q4Wgp0Xu5VU4OUOWyGcpHyKVnpBHOuSR1M2/2j1aKcpjw=
=r5BK
-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/20161023211001.GV1136%40mail-itl.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Import a .img file (Windows7) into Qubes?

2016-10-23 Thread Dima Puntus
Is it possible at all? I'm trying to virtualize my windows machine and move
entirely to Qubes. Some of the applications can't be reinstalled so fresh
install isn't an option.

Thanks,
Dima

-- 
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/CAFGffdo%3D7ysPPYngzabXUOfHYfyP2%2BRtNib3tJ%2BOC%3DvGfLqY5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.