Skip to content

eaksel/packer-CentOS7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-CentOS7

What is packer-CentOS7 ?

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

cd c:\packer-CentOS7
packer build -only=vmware-iso centos7.json
packer build -only=vmware-iso centos7_uefi.json

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

cd c:\packer-CentOS7
packer build -only=virtualbox-iso centos7.json
packer build -only=virtualbox-iso centos7_uefi.json

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

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

{
  "variables": {
      "iso_url": "http://miroir.univ-paris13.fr/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-NetInstall-2009.iso"
}

Default credentials

The default credentials for this VM image are:

Username Password
packer packer
root packer

About

Packer configuration files for CentOS 7

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages