iximiuz / docker-to-linux

Make bootable Linux disk image (ab)using Docker
https://iximiuz.com/en/posts/from-docker-container-to-bootable-linux-disk-image/
657 stars 92 forks source link

This is better (more stable) than Vagrant #9

Open syreal17 opened 3 years ago

syreal17 commented 3 years ago

Thanks for your code and great docs!

I'm using this to create some forensics practice disk images.

I found this repo early in my endeavor, however, I did not think it was the best choice to start with, surely Vagrant would be a better choice? (Perhaps for mainstream distros, but not for small distros) Surely installing something like tinycore from an ISO directly with vboxmanage would be the ticket? (It worked, but wasn't easily reproducible, and I didn't want to mess with my home network to connect the vm to the Internet). Well, maybe docker-to-linux will work?

And it did! and the image is even smaller than tinycore disk images *shuffles nervously*, but an image for forensic practice doesn't have to be perfect fidelity, and one can boot qemu off this image anyway, so it's pretty darn good!

Anyway, I thought you might be curious and pleased to know how I've been using this "for fun" project.

iximiuz commented 3 years ago

Hi @syreal17! Thanks a bunch for this piece of feedback! You made my day!

syreal17 commented 3 years ago

Did you have any luck with making a VDI with the Makefile? (I see that the clean target rm's a linux.vdi, though afaik, there is no 'vdi' reference in the rest of the repo)

I made a couple solid challenges from disk images made from this code, but I'll probably make more "traditional" vm's for some challenges that require nuance in the filesystem properties... but it's hard to beat the speed and reproducibility of this process!

iximiuz commented 3 years ago

I have some vague memories that there were some complications with vdi and/or VirtualBox. But I'm pretty sure I managed to start a VirtualBox VM using pretty much the same approach. So, it was probably pretty tedious to automate and I just decided to ship an MVP with QEMU.