All Projects → SkypLabs → packer-centos

SkypLabs / packer-centos

Licence: MIT license
Create CentOS images for different hypervisors with Packer

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to packer-centos

docker-hands-on-guide
Hands on guide for docker, k8s cluster lightweight virtualization.
Stars: ✭ 25 (+38.89%)
Mutual labels:  vagrant, packer, virtualbox, vmware, centos
Packer Centos 6
This build has been moved - see README.md
Stars: ✭ 78 (+333.33%)
Mutual labels:  vagrant, packer, virtualbox, vmware, centos
Bento
Packer templates for building minimal Vagrant baseboxes for multiple platforms
Stars: ✭ 3,779 (+20894.44%)
Mutual labels:  vagrant, packer, virtualbox, vmware, centos
Robox
The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
Stars: ✭ 303 (+1583.33%)
Mutual labels:  vagrant, packer, virtualbox, vmware, centos
insaneworks-packer-template
CentOS 7-8 8Stream / AlmaLinux 8 / FreeBSD 12 - 13 x64 + VirtualBox / VMWare for Packer Template + FreeBSD 13 / AlmaLinux 9 + Parallels
Stars: ✭ 38 (+111.11%)
Mutual labels:  vagrant, packer, virtualbox, vmware, centos
Packer Templates
Packer templates for Vagrant base boxes
Stars: ✭ 471 (+2516.67%)
Mutual labels:  vagrant, packer, virtualbox, vmware
Packer Boxes
Jeff Geerling's Packer build configurations for Vagrant boxes.
Stars: ✭ 495 (+2650%)
Mutual labels:  vagrant, packer, virtualbox, centos
Osx Vm Templates
macOS templates for Packer and VeeWee.
Stars: ✭ 1,050 (+5733.33%)
Mutual labels:  vagrant, packer, virtualbox, vmware
Vagrant Boxes
baseboxes build with packer.io for use with vagrant
Stars: ✭ 291 (+1516.67%)
Mutual labels:  vagrant, packer, virtualbox, vmware
packer-windows
Windows Templates for Packer: Windows 11, Windows 10, Windows Server 2022, 2019, 2016, also with Docker
Stars: ✭ 1,116 (+6100%)
Mutual labels:  vagrant, packer, virtualbox, vmware
Packer Ubuntu 1804
This build has been moved - see README.md
Stars: ✭ 101 (+461.11%)
Mutual labels:  vagrant, packer, virtualbox, vmware
ansible-role-test-vms
DEPRECATED - A Vagrant configuration to test Ansible roles against a variety of Linux distributions.
Stars: ✭ 42 (+133.33%)
Mutual labels:  vagrant, virtualbox, vmware, centos
ansible virtualization
Ansible Collection: Virtualization roles
Stars: ✭ 31 (+72.22%)
Mutual labels:  vagrant, virtualbox, vmware, kvm
Packer Build
Packer Automated VM Image and Vagrant Box Builds
Stars: ✭ 199 (+1005.56%)
Mutual labels:  vagrant, packer, virtualbox, kvm
packer-ubuntu
No description or website provided.
Stars: ✭ 29 (+61.11%)
Mutual labels:  vagrant, packer, virtualbox, vmware
Packer Centos 7
This build has been moved - see README.md
Stars: ✭ 223 (+1138.89%)
Mutual labels:  vagrant, packer, virtualbox, centos
Packer Templates
Stars: ✭ 90 (+400%)
Mutual labels:  vagrant, packer, virtualbox
Packer
Packer helpers and templates for Docker, IIS, SQL Server and Visual Studio on Windows and Ubuntu
Stars: ✭ 242 (+1244.44%)
Mutual labels:  vagrant, packer, virtualbox
packer-ubuntu-18.04
packer example - Ubuntu Server 18.04.5
Stars: ✭ 37 (+105.56%)
Mutual labels:  vagrant, packer, virtualbox
Packer Ubuntu 1404
DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
Stars: ✭ 81 (+350%)
Mutual labels:  vagrant, packer, virtualbox

Packer CentOS

This repository contains files used by Packer to create CentOS images for different hypervisors.

Hypervisors supported

  • VirtualBox (vbox)
  • VMware (vmware)
  • KVM (kvm)

Vagrant support

In order to create an image to be used with Vagrant, you need to use one of these builders:

  • vbox4vagrant
  • vmware4vagrant
  • kvm4vagrant

Variables available

Optional variables and their defaults:

  build_number      = {{timestamp}}
  centos_arch       = x86_64
  disk_size         = 10000
  headless          = true
  iso_base_url      = http://ftp.heanet.ie/pub/centos
  iso_checksum_type = sha256
  password          = password
  timeout           = 30m
  username          = root

In addition, several variable files are available to precise which version of CentOS should be used via the Packer -var-file option.

Use this template behind a proxy

In order to use this template behind an explicit proxy, you need to add this last one in some files:

  • In the kickstart file:

      url --mirrorlist="http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os" --proxy=<explicit proxy>
    
  • In the *-tools.sh scripts, you need to add an option to the yum command:

      # Install dependencies
      yum --setopt=proxy=<explicit proxy> install -y ...
    
  • In the vagrant.sh script, before the curl command:

      # Download the insecure public key from GitHub official repository
      export https_proxy=<explicit proxy>
      curl \
          --location \
          --output /home/vagrant/.ssh/authorized_keys \
          https://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub
    

Examples

To create an image of CentOS 7 with all the hypervisors, including Vagrant images:

packer build -var-file centos7.json packer-centos.json

To create an image of CentOS 6 with all the hypervisors, including Vagrant images:

packer build -var-file centos6.json packer-centos.json

To create a Vagrant CentOS 7 image only with VirtualBox and overwrite some default variables' value (here, headless and timeout):

packer build -only vbox4vagrant -var 'headless=false' -var 'timeout=1h' -var-file centos7.json packer-centos.json

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].