Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakobadam/packer-qemu-templates
Packer qemu templates
https://github.com/jakobadam/packer-qemu-templates
Last synced: about 2 months ago
JSON representation
Packer qemu templates
- Host: GitHub
- URL: https://github.com/jakobadam/packer-qemu-templates
- Owner: jakobadam
- License: mpl-2.0
- Created: 2014-06-04T07:13:58.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-08-27T12:25:41.000Z (about 4 years ago)
- Last Synced: 2024-06-02T20:57:35.699Z (4 months ago)
- Language: Batchfile
- Size: 1.32 MB
- Stars: 332
- Watchers: 20
- Forks: 180
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
**NOTE: The templates are mostly unmaintained. I do, however, merge MRs.
Reach out if you interested in taking over. Kind regards, Jakob**## Introduction
The packer-qemu-templates provides Packer templates for unattended
building of relevant virtual machine images in the qcow2 format for
use with KVM.In addition, all templates for use with Vagrant, through
[vagrant-libvirt](https://github.com/pradels/vagrant-libvirt), are
configured to let Packer create a Vagrant box through the libvirt
post-processor.More info:
https://aarhusworks.com/2014/08/26/unattended-installation-of-vm-images-with-packer.html## Status
Currently the project includes templates for Ubuntu, CentOS, Debian
and Windows. In other words, the OSes of the VMs I and the other
contributors use on a day-to-day basis.Feel free to contribute more:-)
## Usage
### Build qcow2 image
Go into the relevant template directory and run packer build on the
relevant json file.```bash
$ cd windows
$ packer build -var-file windows.json windows-2012-R2-standard-vagrant.json
```Templates names that ends with vagrant automatically creates a vagrant
box.Add the box to Vagrant
```bash
$ vagrant box add box/windows-2012-R2-standard.box --name windows-2012-R2-standard
```Init vagrantfile
```
$ mkdir project && cd $_
$ vagrant init windows-2012-R2-standard
```Start machine
```
$ vagrant up
```Get IP of machine
```
$ vagrant ssh-config
```## Acknowledgements
* [packer-images](https://github.com/opentable/packer-images.git)
* [packer-windows](https://github.com/joefitzgerald/packer-windows)
* [box-cutter](https://github.com/boxcutter/)