Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc suggestion: FAQ / copy large sparse files to dom0 #12

Closed
ghost opened this issue Mar 26, 2018 · 1 comment
Closed

Doc suggestion: FAQ / copy large sparse files to dom0 #12

ghost opened this issue Mar 26, 2018 · 1 comment
Labels
doc-suggestion Documentation suggestion

Comments

@ghost
Copy link

ghost commented Mar 26, 2018

Even if not recommended, document how to copy large sparse files to dom0 (eg. imported VM images).

related ML post: https://groups.google.com/forum/#!searchin/qubes-users/sparse$20tar|sort:date/qubes-users/aDtUgRFtCAE/AQypJpaPBgAJ

Cat the whole file and then only resparse it after the transfer.

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

That's the most secure way but it will take some time to copy the file. Alternatively, one could pipe the output of tar -Scf - large_file to dom0 and then untar the resulting file but this is not recommended since an attacker could use potential vulnerabilities in tar to compromise dom0

[edit - this suggestion is a bit controversial, so no problem to reject it ; that way we'll test "rejection" workflows :) ]

@ghost ghost added the doc-suggestion Documentation suggestion label Mar 26, 2018
@ghost
Copy link
Author

ghost commented Apr 4, 2018

@ghost ghost closed this as completed Apr 4, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-suggestion Documentation suggestion
Projects
None yet
Development

No branches or pull requests

0 participants