Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

Latest commit

 

History

History
81 lines (48 loc) · 2.01 KB

README.md

File metadata and controls

81 lines (48 loc) · 2.01 KB

Packer Templates: Debian 9 (stretch)

Notice: This repository is no longer maintained as Debian 9 is oldstable and I have no intention of creating packer-debian10.

I recommend using the Official Cloud Images for Openstack with cloud-init

Build Status

Fully automated installation of Debian 9

Supported Platforms

  • AWS EC2 (EBS AMI)
  • QEMU-KVM (qcow2)

Dependencies

EC2 AMI

Uses

Key Features

  • Dynamically discovers (and uses) latest official stretch AMI

Instructions

Build

./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-KVM

Uses

Key Features

  • Partitioning with LVM
  • Enables persistent network names
  • Enables serial console

Instructions

Install Dependencies (Debian/Ubuntu)

apt-get update && apt-get install qemu-kvm

Install Dependencies (RHEL/CentOS)

yum install qemu-kvm

Build

./build.sh qemu-kvm
Output

Output directory defaults to ./output/, configurable with -var 'output_dir=/path/to/dir'