Created configs for all Fedora 42 templates.
This commit is contained in:
@@ -1,63 +0,0 @@
|
||||
# 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](https://www.packer.io/).
|
||||
This Packer configuration file allows you to build images for VMware Workstation and Oracle VM VirtualBox.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- [Packer](https://www.packer.io/downloads.html)
|
||||
- <https://www.packer.io/intro/getting-started/install.html>
|
||||
- A Hypervisor
|
||||
- [VMware Workstation](https://www.vmware.com/products/workstation-pro.html)
|
||||
- [Oracle VM VirtualBox](https://www.virtualbox.org/)
|
||||
|
||||
## 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:
|
||||
|
||||
```cmd
|
||||
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:
|
||||
|
||||
```cmd
|
||||
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.
|
||||
|
||||
```json
|
||||
{
|
||||
"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|
|
||||
28
infra-config/04-vm-templates/fedora-42/fedora-42-large.pkrvars.hcl
Executable file
28
infra-config/04-vm-templates/fedora-42/fedora-42-large.pkrvars.hcl
Executable file
@@ -0,0 +1,28 @@
|
||||
##################################################################################
|
||||
# VARIABLES
|
||||
##################################################################################
|
||||
|
||||
# Virtual Machine Settings
|
||||
|
||||
vm_boot_wait = "5s"
|
||||
vm_name = "fedora-42-large"
|
||||
vm_id = "9103"
|
||||
vm_cpu_sockets = "1"
|
||||
vm_cpu_cores = "4"
|
||||
vm_mem_size = "4096"
|
||||
vm_disk_size = "32"
|
||||
|
||||
proxmox_bridge = "vmbr1"
|
||||
proxmox_vlan = "71"
|
||||
|
||||
ssh_username = "wed"
|
||||
|
||||
# ISO Objects
|
||||
|
||||
iso_file = "Fedora-Server-netinst-x86_64-42-1.1.iso"
|
||||
iso_checksum = "231f3e0d1dc8f565c01a9f641b3d16c49cae44530074bc2047fe2373a721c82f"
|
||||
iso_checksum_type = "sha256"
|
||||
|
||||
# Scripts
|
||||
|
||||
shell_scripts = ["scripts/cleanup.sh"]
|
||||
28
infra-config/04-vm-templates/fedora-42/fedora-42-medium.pkrvars.hcl
Executable file
28
infra-config/04-vm-templates/fedora-42/fedora-42-medium.pkrvars.hcl
Executable file
@@ -0,0 +1,28 @@
|
||||
##################################################################################
|
||||
# VARIABLES
|
||||
##################################################################################
|
||||
|
||||
# Virtual Machine Settings
|
||||
|
||||
vm_boot_wait = "5s"
|
||||
vm_name = "fedora-42-medium"
|
||||
vm_id = "9102"
|
||||
vm_cpu_sockets = "1"
|
||||
vm_cpu_cores = "2"
|
||||
vm_mem_size = "4096"
|
||||
vm_disk_size = "16"
|
||||
|
||||
proxmox_bridge = "vmbr1"
|
||||
proxmox_vlan = "71"
|
||||
|
||||
ssh_username = "wed"
|
||||
|
||||
# ISO Objects
|
||||
|
||||
iso_file = "Fedora-Server-netinst-x86_64-42-1.1.iso"
|
||||
iso_checksum = "231f3e0d1dc8f565c01a9f641b3d16c49cae44530074bc2047fe2373a721c82f"
|
||||
iso_checksum_type = "sha256"
|
||||
|
||||
# Scripts
|
||||
|
||||
shell_scripts = ["scripts/cleanup.sh"]
|
||||
28
infra-config/04-vm-templates/fedora-42/fedora-42-xlarge.pkrvars.hcl
Executable file
28
infra-config/04-vm-templates/fedora-42/fedora-42-xlarge.pkrvars.hcl
Executable file
@@ -0,0 +1,28 @@
|
||||
##################################################################################
|
||||
# VARIABLES
|
||||
##################################################################################
|
||||
|
||||
# Virtual Machine Settings
|
||||
|
||||
vm_boot_wait = "5s"
|
||||
vm_name = "fedora-42-xlarge"
|
||||
vm_id = "9104"
|
||||
vm_cpu_sockets = "1"
|
||||
vm_cpu_cores = "4"
|
||||
vm_mem_size = "8192"
|
||||
vm_disk_size = "128"
|
||||
|
||||
proxmox_bridge = "vmbr1"
|
||||
proxmox_vlan = "71"
|
||||
|
||||
ssh_username = "wed"
|
||||
|
||||
# ISO Objects
|
||||
|
||||
iso_file = "Fedora-Server-netinst-x86_64-42-1.1.iso"
|
||||
iso_checksum = "231f3e0d1dc8f565c01a9f641b3d16c49cae44530074bc2047fe2373a721c82f"
|
||||
iso_checksum_type = "sha256"
|
||||
|
||||
# Scripts
|
||||
|
||||
shell_scripts = ["scripts/cleanup.sh"]
|
||||
@@ -1,64 +0,0 @@
|
||||
# Kickstart file for Fedora 41 Server (Text-based Installation)
|
||||
#
|
||||
# For use with the Fedora Server netinstall ISO.
|
||||
# Boot the installer with:
|
||||
# linux /isolinux/vmlinuz inst.ks=http://<server>/<path>/ks.cfg
|
||||
#
|
||||
# For a local file on a USB drive, you can use:
|
||||
# linux /isolinux/vmlinuz inst.ks=hd:LABEL=<USB_LABEL>:/ks.cfg
|
||||
|
||||
# System language, keyboard layout, and timezone
|
||||
lang en_US.UTF-8
|
||||
keyboard us
|
||||
timezone America/Chicago --isUtc
|
||||
|
||||
# Installation source
|
||||
url --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-41&arch=x86_64
|
||||
|
||||
# Use text mode installer
|
||||
text
|
||||
|
||||
# Network configuration
|
||||
# Using DHCP for automatic network configuration.
|
||||
# For a static configuration, uncomment and modify the following lines:
|
||||
# network --bootproto=static --device=eth0 --ip=192.168.1.10 --netmask=255.255.255.0 --gateway=192.168.1.1 --nameserver=8.8.8.8,8.8.4.4 --hostname=fedora-server
|
||||
network --bootproto=dhcp --device=eth0 --onboot=on --ipv6=auto --hostname=fedora41-server
|
||||
|
||||
# Root password (encrypted)
|
||||
# To generate an encrypted password, use:
|
||||
# python -c 'import crypt; print(crypt.crypt("YourPassword", crypt.mksalt(crypt.METHOD_SHA512)))'
|
||||
rootpw --iscrypted $6$your_encrypted_root_password_hash
|
||||
|
||||
# Disk partitioning
|
||||
# This will erase the specified disk.
|
||||
# --ondisk=sda can be changed to a more specific device like vda for virtual machines.
|
||||
# --all will erase all partitions on the disk.
|
||||
# LVM partitioning scheme is used for flexibility.
|
||||
zerombr
|
||||
clearpart --all --initlabel --drives=sda
|
||||
autopart --type=lvm
|
||||
|
||||
# System services
|
||||
# Disables services not typically required on a minimal server.
|
||||
services --disabled="kdump,mdmonitor,mdmonitor-takeover" --enabled="sshd,chronyd"
|
||||
|
||||
# Package selection
|
||||
# @^server-product-environment provides a minimal server installation.
|
||||
# You can add additional packages as needed.
|
||||
%packages
|
||||
@^server-product-environment
|
||||
-@standard
|
||||
# Add essential command-line tools
|
||||
vim-enhanced
|
||||
tmux
|
||||
git
|
||||
%end
|
||||
|
||||
# Post-installation script
|
||||
%post --log=/root/ks-post.log
|
||||
echo "Fedora 41 Server installation complete." > /etc/motd
|
||||
# Add any additional post-installation tasks here.
|
||||
%end
|
||||
|
||||
# Reboot after installation
|
||||
reboot
|
||||
@@ -5,9 +5,7 @@
|
||||
# Credentials
|
||||
|
||||
proxmox_username = "root@pam"
|
||||
#proxmox_password = ""
|
||||
ssh_username = "wed"
|
||||
#ssh_password = ""
|
||||
|
||||
# Proxmox Objects
|
||||
proxmox_node = "pve03"
|
||||
@@ -16,4 +14,4 @@ proxmox_vm_storage_pool = "pve-templates"
|
||||
#proxmox_insecure_connection = false #Default: true
|
||||
proxmox_iso_storage_pool = "local"
|
||||
|
||||
template_name = ""
|
||||
#template_name = ""
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
##################################################################################
|
||||
# VARIABLES
|
||||
##################################################################################
|
||||
|
||||
# HTTP Settings
|
||||
|
||||
http_directory = "http"
|
||||
|
||||
# Virtual Machine Settings
|
||||
|
||||
vm_name = "centos9-large"
|
||||
vm_guest_os_type = "centos8_64Guest"
|
||||
vm_version = 19
|
||||
vm_firmware = "efi"
|
||||
vm_cdrom_type = "sata"
|
||||
vm_cpu_sockets = 1
|
||||
vm_cpu_cores = 1
|
||||
vm_mem_size = 2048
|
||||
vm_disk_size = 51200
|
||||
thin_provision = true
|
||||
disk_eagerly_scrub = false
|
||||
vm_disk_controller_type = ["pvscsi"]
|
||||
vm_network_card = "vmxnet3"
|
||||
vm_boot_wait = "5s"
|
||||
ssh_username = "wed"
|
||||
ssh_password = "1mag!ne3R"
|
||||
|
||||
# ISO Objects
|
||||
|
||||
iso_checksum = "ca03867ab88fbe565b91ae518e6f7f83debe6415234f29ff2cc5634052840ce8"
|
||||
iso_checksum_type = "sha256"
|
||||
iso_url = "https://mirror.rackspace.com/centos-stream/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-dvd1.iso"
|
||||
# Scripts
|
||||
|
||||
shell_scripts = ["scripts/cleanup.sh"]
|
||||
@@ -1,35 +0,0 @@
|
||||
##################################################################################
|
||||
# VARIABLES
|
||||
##################################################################################
|
||||
|
||||
# HTTP Settings
|
||||
|
||||
http_directory = "http"
|
||||
|
||||
# Virtual Machine Settings
|
||||
|
||||
vm_name = "centos9-medium"
|
||||
vm_guest_os_type = "centos8_64Guest"
|
||||
vm_version = 19
|
||||
vm_firmware = "efi"
|
||||
vm_cdrom_type = "sata"
|
||||
vm_cpu_sockets = 1
|
||||
vm_cpu_cores = 1
|
||||
vm_mem_size = 2048
|
||||
vm_disk_size = 25600
|
||||
thin_provision = true
|
||||
disk_eagerly_scrub = false
|
||||
vm_disk_controller_type = ["pvscsi"]
|
||||
vm_network_card = "vmxnet3"
|
||||
vm_boot_wait = "5s"
|
||||
ssh_username = "wed"
|
||||
ssh_password = "1mag!ne3R"
|
||||
|
||||
# ISO Objects
|
||||
|
||||
iso_checksum = "ca03867ab88fbe565b91ae518e6f7f83debe6415234f29ff2cc5634052840ce8"
|
||||
iso_checksum_type = "sha256"
|
||||
iso_url = "https://mirror.rackspace.com/centos-stream/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-dvd1.iso"
|
||||
# Scripts
|
||||
|
||||
shell_scripts = ["scripts/cleanup.sh"]
|
||||
Reference in New Issue
Block a user