Hyper-V Generation 2 Packer Templates for Windows 2016/2019/2022, CentOS 7x/AlmaLinux 8.x/AlmaLinux 9.x/RockyLinux 8.x/9.x/OracleLinux 8.x/9.x Ubuntu 20.04/Ubuntu 22.04
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
supporthv_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.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
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
supportextra
scripts and playbooks optimizationsRockyLinux 9.0
supportRockyLinux 9.0 Docker
supportRockyLinux 9.0 Vagrant
supportansible
package in ansible.sh
provisioning scriptUbuntu 22.04
late_commands
stagearm64
and amd64
buildsAlmaLinux 8.6
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 optimizations