ruzickap / packer-templates

Scripts and Templates used for generating Vagrant images
Apache License 2.0
443 stars 113 forks source link
ansible driver libvirt linux packer packer-template packer-templates qemu templates vagrant vagrant-plugin vagrant-plugins virtio virtualbox windows

Packer Templates mainly for the Vagrant libvirt and VirtualBox

⚠️ Outdated repository

This GitHub repository is outdated and no longer actively maintained. Feel free to fork it if needed.

Things which may still be handy:

  • The packer template build process is using Ansible to configure the Linux/Windows VMs.
  • Packer build process is using GitHub Action + MacOS runners to build the images which are uploaded to Vagrant Cloud.

Anyway - I recommend to use some other alternatives...


Customized+Clean/Minimal boxes for libvirt and VirtualBox

Build Status


GitHub repository for bug reports or feature requests

Vagrant Cloud repository for the images build by these templates

Requirements

Login Credentials

root / Administrator password is vagrant or is not set.

Default login credentials:

VM Specifications

Drivers / Devices added for the VMs for specific providers.

Libvirt

VirtualBox

Configuration

Minimal Linux installation

Customized Linux installation

Some of the images/templates begins with "my_" - they are preconfigured with Ansible role:

Minimal Windows installation

Customized Windows 10 installation

Additional Drivers installed for libvirt boxes - VirtIO

Installed during installation:

Installed components via Ansible playbook win-simple.yml for Windows:

Additional Drivers installed for VirtualBox boxes

How to build images

If you have necessary software installed+configured on your local machine you can use the following commands to build the images. You can build the images using the build script build.sh or directly with Packer.

Build process with the build.sh script

git clone --recurse-submodules https://github.com/ruzickap/packer-templates.git
cd packer-templates || exit

Build process with the Packer

Helper scripts

GitLab CI configuration (obsolete) can be found here: GitLab_CI_configuration.md