Packer template for alpine linux
Build a virtual machine image for Alpine linux using Packer.
packer build alpine.json
This Packer template will build a VirtualBox VM (OVA) from an Alpine ISO image. Networking is configured for DHCP and an SSH user is created (default vagrant
password vagrant
) with sudo privileges.
Security Note: The Vagrant insecure public key has been added. You can replace http/ssh.keys
to provide your own secure ssh key.
You can customize this login
packer build -var=ssh_username=youruser -var=ssh_password=yourpassword
Further customization is possible by overriding other variables, or editing alpine.json
or http/answers
.
Vagrant is not required to build the image. However, the image can easily be turned into a Vagrant Base Box. See the vagrant section for more details.
These Vagrant boxes are also available on Vagrant Cloud.