-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Extract VM images #16
Comments
Note that one immediate application would be in scancode.io rootfs pipeline |
I played with a few tools and there is one that shines brightly by @rwmjones and that's https://libguestfs.org/ |
THis is a two step extraction using libguestfs to get a FS to a tarball which is then extractcode normally (hence dealing with links, device files and other permission oddities as a side effect). We support VDI (VirtualBox, VMDK (VMware) and QCOW2 (QEMU) Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
The More importantly, the Also, why would we want such option in the first place? |
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
- This is to extract a single archive file of any supported format non recursively. - Also apply minor formatting and refactoring for readability - Improve docstrings - Add tests Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We should be able to extract VMDK, VDI and similar qcow images, as well as ext2, ext3 and ext4 (and ideally some squashfs too?)
The text was updated successfully, but these errors were encountered: