Skip to content

acavella/packer-Rocky9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-Rocky9

What is packer-Rocky9 ?

packer-Rocky9 is a set of configuration files used to build an automated Rocky Linux 9 virtual machine images using Packer. This Packer configuration file allows you to build images for VMware Workstation and Oracle VM VirtualBox.

Prerequisites

How to use Packer

Commands to create an automated VM image:

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

cd c:\packer-Rocky9
packer build -only=vmware-iso rocky9.json
packer build -only=vmware-iso rocky9_uefi.json

To create a Rocky Linux 9 VM image using Oracle VM VirtualBox use the following commands:

cd c:\packer-Rocky9
packer build -only=virtualbox-iso rocky9.json
packer build -only=virtualbox-iso rocky9_uefi.json

If you omit the keyword "-only=" both the Workstation and Virtualbox VMs will be created.

By default the .iso of Rocky Linux 9 is pulled from https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.0-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 rocky9.json file.

{
  "variables": {
      "iso_url": "https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.0-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'

Default credentials

The default credentials for this VM image are:

Username Password
packer packer
root packer

Credit

Original work created by @eaksel