Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

eaksel/packer-CentOS8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-CentOS8

What is packer-CentOS8 ?

packer-CentOS8 is a set of configuration files used to build an automated CentOS 8 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 CentOS 8 VM image using VMware Workstation use the following commands:

cd c:\packer-CentOS8
packer build -only=vmware-iso centos8.json

To create a CentOS 8 VM image using Oracle VM VirtualBox use the following commands:

cd c:\packer-CentOS8
packer build -only=virtualbox-iso centos8.json

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

By default the .iso of CentOS 8 is pulled from http://miroir.univ-paris13.fr/centos/8/isos/x86_64/CentOS-8.1.1911-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 centos8.json file.

{
  "variables": {
      "iso_url": "http://miroir.univ-paris13.fr/centos/8/isos/x86_64/CentOS-8.1.1911-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

About

Packer configuration files for CentOS 8

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages