On Fri, Mar 02, 2018 at 10:04:53AM +0100, 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.
I think you're right. cat will churn the whole file, you need some alternative that is sparse aware. The best approach would be: qvm-run --pass-io tempDebian 'tar -Scf - /home/user/meta.raw' > meta.tar and then untar the resulting file Almost anything else (dd, rsync etc) will have some overhead in my experience. -- 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/20180302101438.6iin6nqv6oq46gmw%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.