Hyper-V Generation 2 Packer Templates for Windows 2019/2022, AlmaLinux 8.x/AlmaLinux 9.x/RockyLinux 8.x/9.x/OracleLinux 8.x/9.x Ubuntu 20.04/Ubuntu 22.04/Ubuntu 24.04
Bot releases are hidden (Show)
Codename: Defying Gravity - https://www.youtube.com/watch?v=l0Bs_eaXaCo
cgroup.memory=nokmem
to grubsystemd.unified_cgroup_hierarchy
for RHEL anc clones above 8 as this is set by default in OSPublished by marcinbojko 11 months ago
Codename: Slip Away - https://www.youtube.com/watch?v=G8g_7CDwbmI
RockyLinux 8.9
supportRockyLinux 9.3
supportAlmaLinux 8.9
supportAlmaLinux 9.3
supportOracleLinux 8.9
supportOracleLinux 9.3
supportPublished by marcinbojko about 1 year ago
hv_generic.ps1
script run with proper parameters. This will allow for easier maintenance and less clutter in repositoryextra
folder structure. Instead of primary structure based on hypervisor, current structure focuses on OS type, then if needed on hypervisor or cloud model. This will allow for easier maintenance and less clutter in repositorywindows-update
plugin. This will allow for easier maintenance and less clutter in repositoryempty
resources to change its flow.Packer's
role.Published by marcinbojko about 1 year ago
Codename: BAD - https://www.youtube.com/watch?v=dsUXAEzaC3Q
[BREAKING_CHANGE] for packer >= 1.9.0 hyperv-iso module was moved from core to plugins. Proper change was already set in config.pkr.hcl
, but you have to remember to run packer init --upgrade config.pkr.hcl
before running packer build
command
packer {
required_plugins {
windows-update = {
version = "0.14.1"
source = "github.com/rgl/windows-update"
}
hyperv = {
version = ">= 1.1.0"
source = "github.com/hashicorp/hyperv"
}
}
}
[Extra] extra
scripts and playbooks optimizations
[Extra] ks.cgf
files for all RHEL 9 clones - switching timezone to UTC during build
[Extra] ansible-lint fixes over playbooks
[Extra] resized partitions (/boot and /boot/EFI) to fit bigger kernel and initrd files as well as more kernels in Oracle Linux UEK. This will allow for UEK an standard kernels to coexist.
part /boot/efi --fstype="vfat" --size=400
part /boot --fstype="ext4" --size=2048
part swap --fstype="swap" --size=8192
part / --fstype="ext4" --grow --size=1
[RockyLinux] added RockyLinux 9.2
support
[RockyLinux] added RockyLinux 9.2
Docker support
[RockyLinux] added RockyLinux 9.2
Vagrant support
[OracleLinux] added OracleLinux 9.2
support
[OracleLinux] added OracleLinux 9.2
Docker support
[OracleLinux] added OracleLinux 9.2
Vagrant support
[AlmaLinux] added AlmaLinux 9.2
support
[AlmaLinux] added AlmaLinux 9.2
Docker support
[AlmaLinux] added AlmaLinux 9.2
Vagrant support
Published by marcinbojko almost 2 years ago
Codename: Jedwab - https://www.youtube.com/watch?v=G_Lsdk88AYM
extra
scripts and playbooks optimizationsRockyLinux 9.1
supportRockyLinux 9.1 Docker
supportRockyLinux 9.1 Vagrant
supportRockyLinux 8.7
supportRockyLinux 8.7 Docker
supportRockyLinux 8.7 Vagrant
supportPublished by marcinbojko almost 2 years ago
extra
scripts and playbooks optimizationsRockyLinux 9.0
supportRockyLinux 9.0 Docker
supportRockyLinux 9.0 Vagrant
supportPublished by marcinbojko about 2 years ago
ansible
package in ansible.sh
provisioning scriptPublished by marcinbojko about 2 years ago
Ubuntu 22.04
late_commands
stagearm64
and amd64
buildsPublished by marcinbojko over 2 years ago
AlmaLinux 8.6
Published by marcinbojko over 2 years ago
extra
scripts and playbooks optimizationsRockyLinux 8.6
OracleLinux 8.6
puppet
package and repository to version 7, for all Linux RHEL-based machineszabbix
package and repository version to 6 LTS for all Linux RHEL-based machinespuppet-agent
version to 7.14.0 (7.x branch) for all Windows machinesextra
scripts optimizationsforeman.example.com
in \extra\playbooks\*_variables.yml
puppet-agent
to version 6.26.0Oracle Linux 8.5
supportOracle Linux 8.5 Docker
supportOracle Linux 8.5 Vagrant
supportvariables
folder.gitattribues
as cloning this repo in Windows Environment was converting all .sh files to CR/LFAlmaLinux 8.5
RockyLinux 8.5
Windows Server 2022 Standard
supportWindows Server 2022 Datacenter
supportWindows Server 2022 Standard Vagrant
supportWindows Server 2022 Datacenter Vagrant
supportpuppet-agent
to version 6.25.1terminus
to tabby
extra
scripts optimizations[Extra] Bump puppet-agent to 6.24.0 for Windows
[Extra] Removed conemu from Windows mandatory packages
[Extra] added terminus aka tabby to phase-5a.software
[Extra] minor script changes (unified output and naming)
tested with packer 1.7.3 and 1.7.4
[Windows] tested with Windows 2019 image from 2021-07
[Extra] switch ansible to 2.11 branch
CentOS 7
templates to new Packer's HCL2 syntaxUbuntu 20.04
templates to new Packer's HCL2 syntaxWindows Server 1909 Standard
templates to new Packer's HCL2 syntaxWindows Server 2004 Standard
templates to new Packer's HCL2 syntaxWindows Server 2016 Standard
templates to new Packer's HCL2 syntaxWindows Server 2019 Standard
templates to new Packer's HCL2 syntaxWindows Server 2019 Datacenter
templates to new Packer's HCL2 syntax