Skip to content

Packer configuration scripts for build Rocky Linux 8 box on ESXi

License

Notifications You must be signed in to change notification settings

gzeel/packer-rocky8-esxi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-rocky8-esxi

What is packer-rocky8-esxi ?

packer-rocky8-esxi is a set of configuration files used to build an automated Rocky Linux 8 virtual machine images using Packer. This Packer configuration file allows you to build images for VMware ESXi.

Prerequisites

How to use Packer

Commands to create an automated VM image:

To create a Rocky Linux 8 VM image using VMware Workstation use the following commands:

export VAGRANT_CLOUD_TOKEN="<insert token here>"
packer build -var 'version=<version>' -var 'boxname=<boxname>' -var 'esxi_password=<password>' rocky8.json

By default the .iso of Rocky Linux 8 is pulled from https://nlrtm1-edge1.cdn.i3d.net/o1/k9999/pub/rockylinux/8.5/isos/x86_64/Rocky-8.5-x86_64-boot.iso

You can change the URL to one closer to your build server. To do so change the "iso_url" parameter in the "variables" section of the rocky8.json file.

{
  "variables": {
      "iso_url": "https://nlrtm1-edge1.cdn.i3d.net/o1/k9999/pub/rockylinux/8.5/isos/x86_64/Rocky-8.5-x86_64-boot.iso"
}

Keyboard configuration

By default the keyboard is set to be US qwerty. To switch it to something else edit the following file:

  • ./http/ks.cfg

Set the keyboard parameter as desired, for example: keyboard --vckeymap=fr --xlayouts='fr'

Ansible Role

These configuration files use a Ansible Role : ansible-role-packer_rhel8

Default credentials

The default credentials for this VM image are:

Username Password
packer packer
root packer
vagrant vagrant

About

Packer configuration scripts for build Rocky Linux 8 box on ESXi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages