Git Product home page Git Product logo

packer-rocky-vagrant's Introduction

Packer build for Rocky Linux 8/9 core Vagrant base box

Prerequisites

Packer >= 1.7.x, Vagrant >= 2.2.x and VirtualBox >= 6.1.x must be installed (beyond the scope of this document).

Description

This Packer build generates a minimal Rocky Linux 8 or 9 core image using the virtualbox-iso builder and a Vagrant box based on it using the vagrant post-processor.

Steps

  1. Adjust the contents of variables-8.json or variables-9.json accordingly. It's a good idea to always grab the latest upstream ISO.

  2. Build the box (e.g. for Rocky Linux 9):

    packer build -var-file variables-9.json packer.json
    
  3. Test the box locally:

    vagrant box add --name rocky-9.3-core-20231121 rocky-9.3-core-20231121.box
    vagrant init --minimal rocky-9.3-core-20231121
    vagrant up
    # test here
    vagrant destroy -f
    rm -f Vagrantfile
    vagrant box remove rocky-9.3-core-20231121
    
  4. Upload the box to Vagrant Cloud: dhml/rocky-9.3-core-20231121

  5. Test the box from Vagrant Cloud:

    vagrant init --minimal dhml/rocky-9.3-core-20231121
    vagrant up
    # test here
    vagrant destroy -f
    rm -f Vagrantfile
    vagrant box remove dhml/rocky-9.3-core-20231121
    
  6. Update box names/versions/URLs in Vagrantfiles in other repositories that reference this box.

packer-rocky-vagrant's People

Contributors

dhml avatar

Watchers

 avatar

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.