Fully automated installation of Debian 9
- AWS EC2 (EBS AMI)
- QEMU-KVM (qcow2)
- Packer 1.0.3+
- Dynamically discovers (and uses) latest official stretch AMI
./build.sh ec2ami
It will likely fail, requiring that some environment variables be set. Set the required variables and run it again, for example:
AWS_ACCESS_KEY_ID=AMJYP8GJ2LPLJHFCQIL \
AWS_SECRET_ACCESS_KEY=dNJubuKt5xWn32x4GaGjH2QlrvGWEdQ5fdDKKCoZ \
AWS_REGION=us-east-1 \
AWS_VPC_ID=vpc-qq05ntcj \
AWS_SUBNET_ID=subnet-tcjt9nfm \
AWS_SECURITY_GROUP_ID=sg-ia7repbg \
./build.sh ec2ami
Run ./build.sh --help
for further usage instructions
- QEMU with KVM
- Debian Preseed
- Ansible
- Partitioning with LVM
- Enables persistent network names
- Enables serial console
apt-get update && apt-get install qemu-kvm
yum install qemu-kvm
./build.sh qemu-kvm
Output directory defaults to ./output/
, configurable with -var 'output_dir=/path/to/dir'