On 03/02/2018 05:56 AM, Unman wrote:
On Fri, Mar 02, 2018 at 05:38:11AM -0500, Chris Laprise wrote:
On 03/02/2018 04:04 AM, donoban wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/02/2018 08:38 AM, Robert Walz wrote:
[robert@dom0 ~]$ qvm-run --pass-io tempDebian 'cat
"/home/user/meta.raw"' >
/var/lib/qubes/appvms/metasploitable/root.img I stopped the command
with Ctrl+C, because the root.img became bigger than the original
file's size. Then I got the following error messages.

Could you post:

[robert@dom0 ~]$ qvm-run --pass-io tempDebian 'ls -lsh
   "/home/user/meta.raw"'

Maybe your raw file is an sparse file. I'm not sure if cat would
handle it fine.


If source is sparse, you can also save it as sparse by piping through dd:

qvm-run --pass-io tempDebian 'cat "/home/user/meta.raw"' | dd conv=sparse
of=/var/lib/qubes/appvms/metasploitable/root.img



But that way you still cat the WHOLE file and then only resparse it after
the transfer. It will take significantly longer.

Yes, but there's no risk to dom0 with dd, as there is with parsing a guest-created tar file.

--

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

--
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/e2a7c45a-92bc-4164-2510-c0134cfdda7f%40posteo.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to