3 ms·
The linked article contains a script building the file system. It creates a block device using `qemu-img`, adds an empty filesystem using `mkfs.ext4` and then
by CodesInChaos 6y ago
The linked article contains a script building the file system.
It creates a block device using `qemu-img`, adds an empty filesystem using `mkfs.ext4` and then simply mounts it and copies in the files.
The previous posts cover this topic in more detail:
Day 43: Building VM images - https://jvns.ca/blog/2021/01/21/day-43--building-vm-images/ https://jvns.ca/blog/2021/01/21/day-43--building-vm-images/
Day 44: Building my VMs with Docker - https://jvns.ca/blog/2021/01/22/day-44--got-some-vms-to-start-in-firecracker/ https://jvns.ca/blog/2021/01/22/day-44--got-some-vms-to-star...