Synopsis
Create VM images using packer.io
Installation
- Install packer https://www.packer.io/
- Go to the selected directory and run build.sh some-file.json. Example: cd netmap ./build.sh debian-9.0.0.json
Generated images boot examples
- Launch guest in simple mode(guess will access the internet)
qemu-system-x86_64 -m 4G -smp 4 -drive file=GENERATED_IMAGE,if=virtio -enable-kvm -cpu host
- Launch guest TAP/TUN mode(tap0 will appear on host OS)
qemu-system-x86_64 -m 4G -smp 8 -device e1000,netdev=net0 -netdev tap,id=net0 -drive file=GENERATED_IMAGE,if=virtio -enable-kvm -cpu host
- Launch guest netmap/VALE mode(requires custom QEMU with netmap support)
Replace VALE-X with 0,1,2... for multiple VALE-connected guests
qemu-system-x86_64 -m 4G -smp 8 -device e1000,netdev=net0 -netdev netmap,id=net0,ifname=vale0:VALE-X -drive file=/home/apalos/work/packer.io-images/netmap/output-tester/tester2,if=virtio -enable-kvm -cpu host