Giter VIP home page Giter VIP logo

harisekhon / packer Goto Github PK

View Code? Open in Web Editor NEW
31.0 2.0 4.0 413 KB

HashiCorp Packer code to build portable virtual machines in OVA format for Ubuntu, Debian and Redhat based systems with automated installers Kickstart, Preseed and AutoInstaller / Cloud-Init. Useful for IoT edge sites, Kubernetes base systems and VM appliances to ship to customers

Home Page: https://www.linkedin.com/in/HariSekhon

License: MIT License

Makefile 9.12% Shell 23.88% HCL 66.28% Ruby 0.72%
anaconda autoinstaller cloud-init debian hashicorp kickstart packer preseed qemu redhat templates ubuntu virtualbox edge iot kubernetes fedora rockylinux hashicorp-packer hacktoberfest

packer's Introduction

Hari Sekhon - HashiCorp Packer templates

GitHub stars GitHub forks Lines of Code License My LinkedIn GitHub Last Commit

Codacy CodeFactor Quality Gate Status Maintainability Rating Reliability Rating Security Rating

HCL Linux Mac

Mac Homebrew CentOS Debian Fedora Redhat Rocky Ubuntu

Repo on GitHub Repo on GitLab Repo on Azure DevOps Repo on BitBucket

CI Builds Overview Validation Kics Grype Semgrep Semgrep Cloud Trivy

HashiCorp Packer HCL Redhat Kickstart Debian Preseed Ubuntu AutoInstall Cloud-Init

Packer templates for building portable OVA virtual machines images.

Useful for IoT edge sites, Kubernetes base servers etc.

Bare metal servers can be installed using each Linux distro's native automated installers.

Virtual Machines as appliances in portable OVA format are 100% automated using the installers above.

The primary templates are for the main Linux distributions:

  • Ubuntu - using Ubuntu AutoInstaller
  • Debian - using Debian Preseeding
  • Redhat - using Redhat Kickstart
    • Redhat Enterprise Linux (RHEL)
    • CentOS (end-of-life)
    • Rocky Linux (CentOS replacement)
    • Fedora

VM OVA appliances can be created in any number of different virtualization systems supported by Packer.

You must install your virtualization system before running Packer.

The following builds are provided for these combinations of Linux distros, arches and virtualization systems:

Quick Start

Running make <distro> will build the portable virtual machine OVA for that Linux distribution 100% automated using that distro's native installer's automation method:

make debian

results in:

output-debian/debian-12.ova
output-debian/debian-12.md5
output-debian/debian-12.sha512

You can then just import the debian.ova file on any virtualization platform such as VMware vSphere or your local VirtualBox.

Easy Customization

Tweak the corresponding text files for that distro eg.

*.pkr.hcl
installers/*
scripts/*

and then re-run

make <distro>

or for a specific build:

make <distro>-<major_version>

Stargazers over time

Stargazers over time

More Core Repos

Knowledge

Readme Card Readme Card

DevOps Code

Readme Card Readme Card Readme Card Readme Card

Containerization

Readme Card Readme Card

CI/CD

Readme Card Readme Card

DBA - SQL

Readme Card

DevOps Reloaded

Readme Card Readme Card Readme Card Readme Card Readme Card

Templates

Readme Card Readme Card

Misc

Readme Card Readme Card

The rest of my original source repos are here.

Pre-built Docker images are available on my DockerHub.

packer's People

Contributors

harisekhon avatar

Stargazers

Alexander avatar  avatar  avatar  avatar Márcio Ribeiro de Oliveira avatar Roy Cohen avatar Sherzod avatar  avatar Manoj avatar  avatar Mohamed Oxmento avatar  avatar アルトリア・ペンドラゴン avatar Anjul Sahu avatar Mehmet Aydogdu avatar Nathan Lloyd Ward avatar Wissam Youssef avatar Antony Messerli avatar Quentin L avatar zsh avatar Benoît Stahl avatar 太年轻 avatar Rishabh Khanna avatar  avatar Valentin Ivanov avatar Patrick M. Slattery avatar Woodrow Pearson avatar Serhii P. avatar Y Kravitz avatar Sandalots avatar  avatar

Watchers

 avatar  avatar

packer's Issues

disk_image using iso URL doesn't work

Hi, don't know how you put this working, but I tested the https://github.com/HariSekhon/Packer-templates/blob/main/ubuntu-arm64.qemu.pkr.hcl and also https://github.com/HariSekhon/Packer-templates/blob/main/ubuntu-x86_64.qemu.pkr.hcl and both don't work without to comment the disk_image = true. The problem is when using disk_image =true, qemu uses the ISO file as the actual disk (do not create a new one) and the installer can't find any disk during the partitioning phase.

My QEMU version is 8.2.0, on Apple M1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.