├── .ansible-lint ├── .gitattributes ├── .github └── workflows │ └── 01_lint_me.yml ├── .gitignore ├── .markdownlint.json ├── .yamllint ├── CHANGELOG.md ├── LICENSE ├── README.md ├── config.pkr.hcl ├── extra ├── files │ ├── almalinux │ │ ├── 8 │ │ │ ├── hyperv │ │ │ │ └── ks.cfg │ │ │ ├── kvm │ │ │ │ └── ks-kvm.cfg │ │ │ ├── proxmox │ │ │ │ └── ks.cfg │ │ │ ├── uefi.sh │ │ │ └── virtualbox │ │ │ │ └── ks.cfg │ │ └── 9 │ │ │ ├── hyperv │ │ │ └── ks.cfg │ │ │ ├── kvm │ │ │ └── ks.cfg │ │ │ ├── proxmox │ │ │ └── ks.cfg │ │ │ ├── uefi.sh │ │ │ └── virtualbox │ │ │ └── ks.cfg │ ├── cloud-init │ │ ├── rhel │ │ │ ├── alicloud │ │ │ │ └── cloud.cfg │ │ │ ├── generic │ │ │ │ └── cloud.cfg │ │ │ └── oci │ │ │ │ └── cloud.cfg │ │ ├── suse │ │ │ └── generic │ │ │ │ └── cloud.cfg │ │ └── ubuntu │ │ │ └── generic │ │ │ └── cloud.cfg │ ├── gen1-vb │ │ ├── 2019 │ │ │ ├── Autounattend.xml │ │ │ └── unattend.xml │ │ ├── 2022 │ │ │ ├── Autounattend.xml │ │ │ └── unattend.xml │ │ ├── 2019-dc │ │ │ ├── Autounattend.xml │ │ │ └── unattend.xml │ │ ├── 2022-dc │ │ │ ├── Autounattend.xml │ │ │ └── unattend.xml │ │ └── ubuntu-2004 │ │ │ ├── meta-data │ │ │ └── user-data │ ├── gen1 │ │ └── Autounattend.xml │ ├── gen2-centos │ │ ├── ks.cfg │ │ └── uefi.sh │ ├── gen2-linux │ │ ├── ansible.sh │ │ ├── mkfs_device.sh │ │ ├── parallels.sh │ │ ├── prepare_neofetch.sh │ │ ├── virtualbox.sh │ │ └── zeroing.sh │ ├── opensuse_leap │ │ └── 15 │ │ │ └── proxmox │ │ │ ├── bios │ │ │ └── autoinst.xml │ │ │ └── uefi │ │ │ └── autoinst.xml │ ├── oraclelinux │ │ ├── 7 │ │ │ └── kvm │ │ │ │ └── ks-kvm.cfg │ │ ├── 8 │ │ │ ├── hyperv │ │ │ │ └── ks.cfg │ │ │ ├── kvm │ │ │ │ └── ks.cfg │ │ │ ├── proxmox │ │ │ │ └── ks.cfg │ │ │ ├── uefi.sh │ │ │ └── virtualbox │ │ │ │ └── ks.cfg │ │ └── 9 │ │ │ ├── hyperv │ │ │ └── ks.cfg │ │ │ ├── kvm │ │ │ └── ks-kvm.cfg │ │ │ ├── proxmox │ │ │ └── ks.cfg │ │ │ ├── uefi.sh │ │ │ └── virtualbox │ │ │ └── ks.cfg │ ├── redhat │ │ ├── 7 │ │ │ ├── ks-kvm-uefi.cfg │ │ │ └── ks-kvm.cfg │ │ └── 8 │ │ │ ├── ks-kvm-uefi.cfg │ │ │ └── ks-kvm.cfg │ ├── rockylinux │ │ ├── 8 │ │ │ ├── hyperv │ │ │ │ └── ks.cfg │ │ │ ├── kvm │ │ │ │ └── ks.cfg │ │ │ ├── proxmox │ │ │ │ └── ks.cfg │ │ │ ├── uefi.sh │ │ │ └── virtualbox │ │ │ │ └── ks.cfg │ │ └── 9 │ │ │ ├── hyperv │ │ │ └── ks.cfg │ │ │ ├── kvm │ │ │ └── ks.cfg │ │ │ ├── proxmox │ │ │ └── ks.cfg │ │ │ ├── uefi.sh │ │ │ └── virtualbox │ │ │ └── ks.cfg │ ├── scagent │ │ └── 1.0.3.1028 │ │ │ ├── install.sh │ │ │ ├── scvmmguestagent.1.0.3.1028.x64.tar │ │ │ └── scvmmguestagent.1.0.3.1028.x86.tar │ ├── ubuntu │ │ ├── 20.04 │ │ │ ├── hyperv │ │ │ │ ├── meta-data │ │ │ │ └── user-data │ │ │ ├── proxmox │ │ │ │ ├── meta-data │ │ │ │ └── user-data │ │ │ └── uefi.sh │ │ ├── 22.04 │ │ │ ├── hyperv │ │ │ │ ├── meta-data │ │ │ │ └── user-data │ │ │ ├── proxmox │ │ │ │ ├── meta-data │ │ │ │ └── user-data │ │ │ ├── uefi.sh │ │ │ └── virtualbox │ │ │ │ └── virtualbox.sh │ │ ├── 23.04 │ │ │ └── proxmox │ │ │ │ ├── meta-data │ │ │ │ └── user-data │ │ ├── 24.04 │ │ │ ├── hyperv │ │ │ │ ├── meta-data │ │ │ │ └── user-data │ │ │ ├── proxmox-uefi │ │ │ │ ├── meta-data │ │ │ │ └── user-data │ │ │ ├── proxmox │ │ │ │ ├── meta-data │ │ │ │ └── user-data │ │ │ └── uefi.sh │ │ └── shared │ │ │ ├── common-password │ │ │ ├── motd.sh │ │ │ ├── prepare_neofetch.sh │ │ │ ├── provision.sh │ │ │ ├── puppet.conf │ │ │ ├── vagrant.sh │ │ │ └── zeroing.sh │ └── windows │ │ ├── 2019 │ │ ├── hyperv │ │ │ ├── dc │ │ │ │ ├── Autounattend.xml │ │ │ │ ├── unattend.xml │ │ │ │ └── unattend_vagrant.xml │ │ │ └── std │ │ │ │ ├── Autounattend.xml │ │ │ │ ├── unattend.xml │ │ │ │ └── unattend_vagrant.xml │ │ └── proxmox │ │ │ ├── bootstrap.ps1 │ │ │ ├── dc │ │ │ └── Autounattend.xml │ │ │ ├── std │ │ │ └── Autounattend.xml │ │ │ └── unattend.xml │ │ ├── 2022 │ │ ├── hyperv │ │ │ ├── dc │ │ │ │ ├── Autounattend.xml │ │ │ │ ├── unattend.xml │ │ │ │ └── unattend_vagrant.xml │ │ │ └── std │ │ │ │ ├── Autounattend.xml │ │ │ │ ├── unattend.xml │ │ │ │ └── unattend_vagrant.xml │ │ ├── proxmox │ │ │ ├── bootstrap.ps1 │ │ │ ├── dc │ │ │ │ └── Autounattend.xml │ │ │ ├── std │ │ │ │ └── Autounattend.xml │ │ │ └── unattend.xml │ │ └── virtualbox │ │ │ └── std │ │ │ ├── Autounattend.xml │ │ │ └── unattend.xml │ │ └── scagent │ │ └── 1.0.3.1028 │ │ ├── install.sh │ │ ├── scvmmguestagent.1.0.3.1028.x64.tar │ │ └── scvmmguestagent.1.0.3.1028.x86.tar ├── playbooks │ ├── provision_alma8_variables.yml │ ├── provision_alma9_variables.yml │ ├── provision_centos7_variables.yml │ ├── provision_centos8_variables.yml │ ├── provision_oracle8_variables.yml │ ├── provision_oracle9_variables.yml │ ├── provision_rhel.yaml │ ├── provision_rocky8_variables.yml │ ├── provision_rocky9_variables.yml │ ├── provision_vagrant.yaml │ └── requirements.yml └── scripts │ ├── azure │ ├── bootstrap.cmd │ ├── bootstrap.ps1 │ └── post-phase-4.ps1 │ ├── hyper-v │ └── bootstrap.ps1 │ ├── oci │ └── bootstrap.ps1 │ ├── virtualbox │ ├── bootstrap.ps1 │ ├── generalize.ps1 │ ├── setupcomplete.cmd │ ├── sysprep.cmd │ ├── vbox-sha1.cer │ └── vbox-sha256.cer │ └── windows │ └── shared │ ├── extend-trial.cmd │ ├── phase-1.ps1 │ ├── phase-2.ps1 │ ├── phase-3.ps1 │ ├── phase-4.windows-updates.ps1 │ ├── phase-5a.software.ps1 │ ├── phase-5b.docker.ps1 │ ├── phase-5c.vagrant.ps1 │ └── phase-5d.windows-compress.ps1 ├── images └── token.png ├── kvm ├── kvm_rhel.pkr.hcl ├── variables_kvm_almalinux-8.10.pkvars.hcl ├── variables_kvm_almalinux-8.7.pkvars.hcl ├── variables_kvm_almalinux-8.8.pkvars.hcl ├── variables_kvm_almalinux-8.9.pkvars.hcl ├── variables_kvm_almalinux-9.0.pkvars.hcl ├── variables_kvm_almalinux-9.1.pkvars.hcl ├── variables_kvm_almalinux-9.2.pkvars.hcl ├── variables_kvm_almalinux-9.3.pkvars.hcl ├── variables_kvm_almalinux-9.4.pkvars.hcl ├── variables_kvm_oraclelinux-8.10.pkvars.hcl ├── variables_kvm_oraclelinux-8.6.pkvars.hcl ├── variables_kvm_oraclelinux-8.7.pkvars.hcl ├── variables_kvm_oraclelinux-8.8.pkvars.hcl ├── variables_kvm_oraclelinux-8.9.pkvars.hcl ├── variables_kvm_oraclelinux-9.0.pkvars.hcl ├── variables_kvm_oraclelinux-9.1.pkvars.hcl ├── variables_kvm_oraclelinux-9.2.pkvars.hcl ├── variables_kvm_oraclelinux-9.3.pkvars.hcl ├── variables_kvm_oraclelinux-9.4.pkvars.hcl ├── variables_kvm_rockylinux-8.10.pkvars.hcl ├── variables_kvm_rockylinux-8.7.pkvars.hcl ├── variables_kvm_rockylinux-8.8.pkvars.hcl ├── variables_kvm_rockylinux-8.9.pkvars.hcl ├── variables_kvm_rockylinux-9.0.pkvars.hcl ├── variables_kvm_rockylinux-9.1.pkvars.hcl ├── variables_kvm_rockylinux-9.2.pkvars.hcl ├── variables_kvm_rockylinux-9.3.pkvars.hcl └── variables_kvm_rockylinux-9.4.pkvars.hcl ├── kvm_almalinux_810.sh ├── kvm_almalinux_87.sh ├── kvm_almalinux_88.sh ├── kvm_almalinux_89.sh ├── kvm_almalinux_90.sh ├── kvm_almalinux_91.sh ├── kvm_almalinux_92.sh ├── kvm_almalinux_93.sh ├── kvm_almalinux_94.sh ├── kvm_oraclelinux_810.sh ├── kvm_oraclelinux_86.sh ├── kvm_oraclelinux_87.sh ├── kvm_oraclelinux_88.sh ├── kvm_oraclelinux_89.sh ├── kvm_oraclelinux_90.sh ├── kvm_oraclelinux_91.sh ├── kvm_oraclelinux_92.sh ├── kvm_oraclelinux_93.sh ├── kvm_oraclelinux_94..sh ├── kvm_rockylinux_810.sh ├── kvm_rockylinux_87.sh ├── kvm_rockylinux_88.sh ├── kvm_rockylinux_89.sh ├── kvm_rockylinux_90.sh ├── kvm_rockylinux_91.sh ├── kvm_rockylinux_92.sh ├── kvm_rockylinux_93.sh ├── kvm_rockylinux_94.sh ├── proxmox ├── proxmox_rhel.pkr.hcl ├── proxmox_rhel_blank.pkr.hcl ├── proxmox_sles.pkr.hcl ├── proxmox_ubuntu.pkr.hcl ├── proxmox_windows.pkr.hcl ├── variables_almalinux810.pkvars.hcl ├── variables_almalinux810_uefi.pkvars.hcl ├── variables_almalinux88.pkvars.hcl ├── variables_almalinux88_uefi.pkvars.hcl ├── variables_almalinux89.pkvars.hcl ├── variables_almalinux89_uefi.pkvars.hcl ├── variables_almalinux92.pkvars.hcl ├── variables_almalinux92_uefi.pkvars.hcl ├── variables_almalinux93.pkvars.hcl ├── variables_almalinux93_uefi.pkvars.hcl ├── variables_almalinux94.pkvars.hcl ├── variables_almalinux94_uefi.pkvars.hcl ├── variables_opensuse_leap_15_5.pkvars.hcl ├── variables_opensuse_leap_15_5_uefi.pkvars.hcl ├── variables_opensuse_leap_15_6.pkvars.hcl ├── variables_opensuse_leap_15_6_uefi.pkvars.hcl ├── variables_oraclelinux810.pkvars.hcl ├── variables_oraclelinux810_uefi.pkvars.hcl ├── variables_oraclelinux88.pkvars.hcl ├── variables_oraclelinux88_uefi.pkvars.hcl ├── variables_oraclelinux89.pkvars.hcl ├── variables_oraclelinux89_uefi.pkvars.hcl ├── variables_oraclelinux92.pkvars.hcl ├── variables_oraclelinux92_uefi.pkvars.hcl ├── variables_oraclelinux93.pkvars.hcl ├── variables_oraclelinux93_uefi.pkvars.hcl ├── variables_oraclelinux94.pkvars.hcl ├── variables_oraclelinux94_uefi.pkvars.hcl ├── variables_rockylinux810.pkvars.hcl ├── variables_rockylinux810_uefi.pkvars.hcl ├── variables_rockylinux88.pkvars.hcl ├── variables_rockylinux88_uefi.pkvars.hcl ├── variables_rockylinux89.pkvars.hcl ├── variables_rockylinux89_uefi.pkvars.hcl ├── variables_rockylinux92.pkvars.hcl ├── variables_rockylinux92_uefi.pkvars.hcl ├── variables_rockylinux93.pkvars.hcl ├── variables_rockylinux93_uefi.pkvars.hcl ├── variables_rockylinux94.pkvars.hcl ├── variables_rockylinux94_uefi.pkvars.hcl ├── variables_ubuntu2204.pkvars.hcl ├── variables_ubuntu2204_uefi.pkvars.hcl ├── variables_ubuntu2304.pkvars.hcl ├── variables_ubuntu2304_uefi.pkvars.hcl ├── variables_ubuntu2404.pkvars.hcl ├── variables_ubuntu2404_uefi.pkvars.hcl ├── variables_windows2019-dc.pkvars.hcl ├── variables_windows2019-dc_uefi.pkvars.hcl ├── variables_windows2019-std.pkvars.hcl ├── variables_windows2019-std_uefi.pkvars.hcl ├── variables_windows2022-dc.pkvars.hcl ├── variables_windows2022-dc_uefi.pkvars.hcl ├── variables_windows2022-std.pkvars.hcl └── variables_windows2022-std_uefi.pkvars.hcl ├── proxmox_generic.sh ├── renovate.json ├── secrets └── proxmox-example.sh └── variables ├── almalinux8.yml ├── almalinux9-arm64.yml ├── almalinux9.yml ├── centos7.yml ├── oraclelinux8.yml ├── oraclelinux9-arm64.yml ├── oraclelinux9.yml ├── rockylinux8.yml ├── rockylinux9-arm64.yml └── rockylinux9.yml /.ansible-lint: -------------------------------------------------------------------------------- 1 | skip_list: 2 | - package-latest 3 | - experimental 4 | - name[casing] 5 | - yaml[line-length] 6 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | *.cfg text eol=lf 3 | install text eol=lf 4 | *.ps1 text eol=crlf 5 | -------------------------------------------------------------------------------- /.github/workflows/01_lint_me.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Super-Linter 3 | 4 | # Run this workflow every time a new commit pushed to your repository 5 | on: 6 | push: 7 | pull_request: 8 | branches: [master, main, develop] 9 | jobs: 10 | # Set the job key. The key is displayed as the job name 11 | # when a job name is not provided 12 | super-lint: 13 | # Name the Job 14 | name: Lint code base 15 | # Set the type of machine to run on 16 | runs-on: ubuntu-latest 17 | 18 | steps: 19 | # Checks out a copy of your repository on the ubuntu-latest machine 20 | - name: Checkout code 21 | uses: actions/checkout@v4 22 | with: 23 | fetch-depth: 0 24 | # Runs the Super-Linter action 25 | - name: Run Super-Linter 26 | uses: github/super-linter/slim@v6 27 | env: 28 | LINTER_RULES_PATH: / 29 | DEFAULT_BRANCH: main 30 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 31 | VALIDATE_ALL_CODEBASE: true 32 | VALIDATE_YAML: true -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | output* 3 | packer_cachepacker-para* 4 | packer_cache 5 | *.box 6 | packer* 7 | .DS_Store 8 | .vagrant 9 | iso/* 10 | iso* 11 | *.iso 12 | vbox/* 13 | *.log 14 | secrets/proxmox.sh 15 | .vscode/* 16 | packer-/* 17 | /.snippets 18 | .snippets* 19 | *snippets* 20 | 21 | 22 | -------------------------------------------------------------------------------- /.markdownlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "MD046": false, 3 | "MD013": false 4 | } 5 | -------------------------------------------------------------------------------- /.yamllint: -------------------------------------------------------------------------------- 1 | extends: relaxed 2 | 3 | rules: 4 | comments-indentation: disable 5 | line-length: 6 | max: 160 7 | level: warning 8 | indentation: 9 | spaces: consistent 10 | indent-sequences: consistent 11 | -------------------------------------------------------------------------------- /config.pkr.hcl: -------------------------------------------------------------------------------- 1 | packer { 2 | required_plugins { 3 | windows-update = { 4 | version = ">=0.14.1" 5 | source = "github.com/rgl/windows-update" 6 | } 7 | qemu = { 8 | version = ">= 1.0.9" 9 | source = "github.com/hashicorp/qemu" 10 | } 11 | alicloud = { 12 | version = ">= 1.1.0" 13 | source = "github.com/hashicorp/alicloud" 14 | } 15 | proxmox = { 16 | version = ">= 1.1.3" 17 | source = "github.com/hashicorp/proxmox" 18 | } 19 | ansible = { 20 | source = "github.com/hashicorp/ansible" 21 | version = "~> 1" 22 | } 23 | vagrant = { 24 | source = "github.com/hashicorp/vagrant" 25 | version = "~> 1" 26 | } 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /extra/files/almalinux/8/hyperv/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # Use CDROM installation media 12 | cdrom 13 | # Run the Setup Agent on first boot 14 | firstboot --disable 15 | # System services 16 | services --enabled="chronyd" 17 | services --enabled="sshd" 18 | services --enabled="NetworkManager" 19 | 20 | # Keyboard layouts 21 | keyboard --vckeymap=us --xlayouts='us' 22 | # System language 23 | lang en_US --addsupport=en_GB.UTF-8 24 | 25 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 26 | # Root password 27 | rootpw --plaintext password 28 | # System timezone 29 | timezone UTC --isUtc --ntpservers=0.rhel.pool.ntp.org 30 | # System bootloader configuration 31 | bootloader --location=mbr 32 | zerombr 33 | # Partition clearing information 34 | clearpart --all --initlabel 35 | # Disk partitioning information 36 | part /boot/efi --fstype="vfat" --size=400 37 | part /boot --fstype="ext4" --size=2048 38 | part swap --fstype="swap" --size=8192 39 | part / --fstype="ext4" --grow --size=1 40 | 41 | %packages 42 | @guest-agents 43 | @legacy-unix 44 | @system-tools 45 | mc 46 | curl 47 | wget 48 | tar 49 | bzip2 50 | kernel-devel 51 | kernel-headers 52 | perl 53 | gcc 54 | git 55 | make 56 | elfutils-libelf-devel 57 | langpacks-en 58 | glibc-all-langpacks 59 | openssh-server 60 | openssh-clients 61 | openssh 62 | tuned 63 | tuned-profiles-atomic 64 | qemu-guest-agent 65 | python3-pip 66 | python3-setuptools 67 | spice-vdagent 68 | qemu-guest-agent 69 | cloud-init 70 | cloud-utils-growpart 71 | %end 72 | 73 | %addon com_redhat_subscription_manager 74 | %end 75 | %addon ADDON_placeholder --disable --reserve-mb=auto 76 | %end 77 | %addon com_redhat_kdump --disable 78 | %end 79 | 80 | %anaconda 81 | pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty 82 | pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok 83 | pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty 84 | %end 85 | 86 | # post part 87 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 88 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 89 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 90 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 91 | systemctl enable sshd --now 92 | %end 93 | 94 | %post --log=/var/log/anaconda/kickstart_post.log 95 | systemctl enable sshd --now 96 | #systemctl enable qemu-guest-agent 97 | systemctl set-default multi-user.target 98 | %end 99 | 100 | #reboot 101 | reboot -------------------------------------------------------------------------------- /extra/files/almalinux/8/kvm/ks-kvm.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # firewall 12 | firewall --disabled 13 | # Use CDROM installation media 14 | cdrom 15 | # Run the Setup Agent on first boot 16 | firstboot --disable 17 | # System services 18 | services --enabled="chronyd" 19 | services --enabled="sshd" 20 | services --enabled="NetworkManager" 21 | 22 | # Keyboard layouts 23 | keyboard --vckeymap=us --xlayouts='us' 24 | # System language 25 | lang en_US --addsupport=en_GB.UTF-8 26 | 27 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 28 | # Root password 29 | rootpw --plaintext password 30 | # System timezone 31 | timezone UTC --isUtc --ntpservers=0.rhel.pool.ntp.org 32 | # System bootloader configuration 33 | bootloader 34 | zerombr 35 | # Partition clearing information 36 | clearpart --all --initlabel 37 | # Disk partitioning information 38 | part /boot/efi --fstype="vfat" --size=400 39 | part /boot --fstype="ext4" --size=2048 40 | part swap --fstype="swap" --size=8192 41 | part / --fstype="ext4" --grow --size=1 42 | 43 | %packages 44 | @guest-agents 45 | @legacy-unix 46 | @system-tools 47 | bash 48 | mc 49 | curl 50 | wget 51 | tar 52 | bzip2 53 | kernel-devel 54 | kernel-headers 55 | perl 56 | gcc 57 | git 58 | make 59 | elfutils-libelf-devel 60 | langpacks-en 61 | glibc-all-langpacks 62 | openssh-server 63 | openssh-clients 64 | openssh 65 | python3-pip 66 | python3-setuptools 67 | tuned 68 | tuned-profiles-atomic 69 | tuned-utils 70 | spice-vdagent 71 | qemu-guest-agent 72 | cloud-init 73 | cloud-utils-growpart 74 | %end 75 | 76 | %addon com_redhat_subscription_manager 77 | %end 78 | %addon ADDON_placeholder --disable --reserve-mb=auto 79 | %end 80 | %addon com_redhat_kdump --disable 81 | %end 82 | 83 | %anaconda 84 | pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty 85 | pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok 86 | pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty 87 | %end 88 | 89 | # post part 90 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 91 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 92 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 93 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 94 | systemctl enable sshd 95 | %end 96 | 97 | %post --log=/var/log/anaconda/kickstart_post.log 98 | systemctl enable qemu-guest-agent 99 | systemctl set-default multi-user.target 100 | %end 101 | 102 | #reboot 103 | reboot -------------------------------------------------------------------------------- /extra/files/almalinux/8/proxmox/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # Use CDROM installation media 12 | cdrom 13 | # Run the Setup Agent on first boot 14 | firstboot --disable 15 | # System services 16 | services --enabled="chronyd" 17 | services --enabled="sshd" 18 | services --enabled="NetworkManager" 19 | 20 | # Keyboard layouts 21 | keyboard --vckeymap=us --xlayouts='us' 22 | # System language 23 | lang en_US --addsupport=en_GB.UTF-8 24 | 25 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 26 | # Root password 27 | rootpw --plaintext password 28 | # System timezone 29 | timezone UTC --isUtc --ntpservers=0.rhel.pool.ntp.org 30 | # System bootloader configuration 31 | bootloader --location=mbr 32 | zerombr 33 | # Partition clearing information 34 | clearpart --all --initlabel 35 | # Disk partitioning information 36 | part /boot/efi --fstype="vfat" --size=400 37 | part /boot --fstype="ext4" --size=2048 38 | part swap --fstype="swap" --size=8192 39 | part / --fstype="ext4" --grow --size=1 40 | 41 | %packages 42 | @guest-agents 43 | @legacy-unix 44 | @system-tools 45 | mc 46 | curl 47 | wget 48 | tar 49 | bzip2 50 | kernel-devel 51 | kernel-headers 52 | perl 53 | gcc 54 | git 55 | make 56 | elfutils-libelf-devel 57 | langpacks-en 58 | glibc-all-langpacks 59 | openssh-server 60 | openssh-clients 61 | openssh 62 | tuned 63 | tuned-profiles-atomic 64 | qemu-guest-agent 65 | python3-pip 66 | python3-setuptools 67 | spice-vdagent 68 | qemu-guest-agent 69 | cloud-init 70 | cloud-utils-growpart 71 | %end 72 | 73 | %addon com_redhat_subscription_manager 74 | %end 75 | %addon ADDON_placeholder --disable --reserve-mb=auto 76 | %end 77 | %addon com_redhat_kdump --disable 78 | %end 79 | 80 | %anaconda 81 | pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty 82 | pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok 83 | pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty 84 | %end 85 | 86 | # post part 87 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 88 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 89 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 90 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 91 | systemctl enable sshd --now 92 | %end 93 | 94 | %post --log=/var/log/anaconda/kickstart_post.log 95 | systemctl enable sshd --now 96 | systemctl enable qemu-guest-agent 97 | systemctl set-default multi-user.target 98 | %end 99 | 100 | #reboot 101 | reboot -------------------------------------------------------------------------------- /extra/files/almalinux/8/uefi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # try to deal with broken centos UEFI in Hyper-V 3 | 4 | # Let's find out which bootnumber we have currently in UEFI with CentOS label 5 | bootnum=$(efibootmgr -v|grep -i centos|awk '{print $1}'|cut -c5-8) 6 | 7 | if [ -d "/boot/efi/EFI/centos" ]; then 8 | echo "Centos exists" 9 | # cp -av /boot/efi/EFI/centos/. /boot/efi/EFI/BOOT/ 10 | # now centos exists 11 | if [ -z "$bootnum" ]; then 12 | echo "Current CentOS boot number equals: $bootnum" 13 | efibootmgr -b "$bootnum" -B 14 | efibootmgr --create --label CentOS --disk /dev/sda1 --loader "\EFI\centos\shim.efi" 15 | sudo grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg 16 | efibootmgr -v 17 | fi 18 | fi 19 | -------------------------------------------------------------------------------- /extra/files/almalinux/8/virtualbox/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # Use CDROM installation media 12 | cdrom 13 | # Run the Setup Agent on first boot 14 | firstboot --disable 15 | # System services 16 | services --enabled="chronyd" 17 | services --enabled="sshd" 18 | services --enabled="NetworkManager" 19 | 20 | # Keyboard layouts 21 | keyboard --vckeymap=us --xlayouts='us' 22 | # System language 23 | lang en_US --addsupport=en_GB.UTF-8 24 | 25 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 26 | # Root password 27 | rootpw --plaintext password 28 | # System timezone 29 | timezone UTC --isUtc --ntpservers=0.rhel.pool.ntp.org 30 | # System bootloader configuration 31 | bootloader --location=mbr 32 | zerombr 33 | # Partition clearing information 34 | clearpart --all --initlabel 35 | # Disk partitioning information 36 | part /boot/efi --fstype="vfat" --size=400 37 | part /boot --fstype="ext4" --size=2048 38 | part swap --fstype="swap" --size=8192 39 | part / --fstype="ext4" --grow --size=1 40 | 41 | %packages 42 | @guest-agents 43 | @legacy-unix 44 | @system-tools 45 | mc 46 | curl 47 | wget 48 | tar 49 | bzip2 50 | kernel-devel 51 | kernel-headers 52 | perl 53 | gcc 54 | git 55 | make 56 | elfutils-libelf-devel 57 | langpacks-en 58 | glibc-all-langpacks 59 | openssh-server 60 | openssh-clients 61 | openssh 62 | tuned 63 | tuned-profiles-atomic 64 | qemu-guest-agent 65 | python3-pip 66 | python3-setuptools 67 | spice-vdagent 68 | qemu-guest-agent 69 | cloud-init 70 | cloud-utils-growpart 71 | %end 72 | 73 | %addon com_redhat_subscription_manager 74 | %end 75 | %addon ADDON_placeholder --disable --reserve-mb=auto 76 | %end 77 | %addon com_redhat_kdump --disable 78 | %end 79 | 80 | %anaconda 81 | pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty 82 | pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok 83 | pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty 84 | %end 85 | 86 | # post part 87 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 88 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 89 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 90 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 91 | systemctl enable sshd --now 92 | %end 93 | 94 | %post --log=/var/log/anaconda/kickstart_post.log 95 | systemctl enable sshd --now 96 | systemctl enable qemu-guest-agent 97 | systemctl set-default multi-user.target 98 | %end 99 | 100 | #reboot 101 | reboot -------------------------------------------------------------------------------- /extra/files/almalinux/9/hyperv/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL9 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # Use CDROM installation media 12 | cdrom 13 | # Run the Setup Agent on first boot 14 | firstboot --disable 15 | # System services 16 | services --enabled="chronyd" 17 | services --enabled="sshd" 18 | services --enabled="NetworkManager" 19 | 20 | # Keyboard layouts 21 | keyboard --vckeymap=us --xlayouts='us' 22 | # System language 23 | lang en_US --addsupport=en_GB.UTF-8 24 | 25 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 26 | # Root password 27 | rootpw --plaintext password 28 | # System timezone 29 | timezone UTC --utc 30 | # System bootloader configuration 31 | bootloader 32 | zerombr 33 | # Partition clearing information 34 | clearpart --all --initlabel 35 | # # Disk partitioning information 36 | part /boot/efi --fstype="vfat" --size=400 37 | part /boot --fstype="ext4" --size=2048 38 | part swap --fstype="swap" --size=8192 39 | part / --fstype="ext4" --grow --size=1 40 | 41 | %packages 42 | @guest-agents 43 | @legacy-unix 44 | @system-tools 45 | bash 46 | mc 47 | curl 48 | wget 49 | tar 50 | bzip2 51 | kernel-devel 52 | kernel-headers 53 | perl 54 | gcc 55 | git 56 | make 57 | elfutils-libelf-devel 58 | langpacks-en 59 | glibc-all-langpacks 60 | openssh-server 61 | openssh-clients 62 | openssh 63 | tuned 64 | tuned-profiles-atomic 65 | qemu-guest-agent 66 | python3-pip 67 | python3-setuptools 68 | spice-vdagent 69 | qemu-guest-agent 70 | %end 71 | 72 | %addon com_redhat_subscription_manager 73 | %end 74 | %addon ADDON_placeholder --disable --reserve-mb=auto 75 | %end 76 | %addon com_redhat_kdump --disable 77 | %end 78 | 79 | # post part 80 | # post part 81 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 82 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 83 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 84 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 85 | systemctl enable sshd 86 | %end 87 | 88 | # post part 89 | %post --log=/var/log/anaconda/kickstart_post.log 90 | #systemctl enable qemu-guest-agent 91 | systemctl set-default multi-user.target 92 | %end 93 | 94 | # post part 95 | %post --log=/var/log/anaconda/kickstart_post_efi.log 96 | cp -pr /boot/efi/EFI/almalinux/* /boot/efi/EFI/BOOT/ 97 | %end 98 | 99 | #reboot 100 | reboot 101 | -------------------------------------------------------------------------------- /extra/files/almalinux/9/kvm/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL9 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # Use CDROM installation media 12 | cdrom 13 | # Run the Setup Agent on first boot 14 | firstboot --disable 15 | # System services 16 | services --enabled="chronyd" 17 | services --enabled="sshd" 18 | services --enabled="NetworkManager" 19 | 20 | # Keyboard layouts 21 | keyboard --vckeymap=us --xlayouts='us' 22 | # System language 23 | lang en_US --addsupport=en_GB.UTF-8 24 | 25 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 26 | # Root password 27 | rootpw --plaintext password 28 | # System timezone 29 | timezone UTC --utc 30 | # System bootloader configuration 31 | bootloader 32 | zerombr 33 | # Partition clearing information 34 | clearpart --all --initlabel 35 | # # Disk partitioning information 36 | part /boot/efi --fstype="vfat" --size=400 37 | part /boot --fstype="ext4" --size=2048 38 | part swap --fstype="swap" --size=8192 39 | part / --fstype="ext4" --grow --size=1 40 | 41 | %packages 42 | @guest-agents 43 | @legacy-unix 44 | @system-tools 45 | bash 46 | mc 47 | curl 48 | wget 49 | tar 50 | bzip2 51 | kernel-devel 52 | kernel-headers 53 | perl 54 | gcc 55 | git 56 | make 57 | elfutils-libelf-devel 58 | langpacks-en 59 | glibc-all-langpacks 60 | openssh-server 61 | openssh-clients 62 | openssh 63 | tuned 64 | tuned-profiles-atomic 65 | qemu-guest-agent 66 | python3-pip 67 | python3-setuptools 68 | spice-vdagent 69 | qemu-guest-agent 70 | %end 71 | 72 | %addon com_redhat_subscription_manager 73 | %end 74 | %addon ADDON_placeholder --disable --reserve-mb=auto 75 | %end 76 | %addon com_redhat_kdump --disable 77 | %end 78 | 79 | # post part 80 | # post part 81 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 82 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 83 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 84 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 85 | systemctl enable sshd 86 | %end 87 | 88 | # post part 89 | %post --log=/var/log/anaconda/kickstart_post.log 90 | systemctl enable qemu-guest-agent 91 | systemctl set-default multi-user.target 92 | %end 93 | 94 | # post part 95 | %post --log=/var/log/anaconda/kickstart_post_efi.log 96 | cp -pr /boot/efi/EFI/almalinux/* /boot/efi/EFI/BOOT/ 97 | %end 98 | 99 | #reboot 100 | reboot 101 | -------------------------------------------------------------------------------- /extra/files/almalinux/9/proxmox/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL9 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # Use CDROM installation media 12 | cdrom 13 | # Run the Setup Agent on first boot 14 | firstboot --disable 15 | # System services 16 | services --enabled="chronyd" 17 | services --enabled="sshd" 18 | services --enabled="NetworkManager" 19 | 20 | # Keyboard layouts 21 | keyboard --vckeymap=us --xlayouts='us' 22 | # System language 23 | lang en_US --addsupport=en_GB.UTF-8 24 | 25 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 26 | # Root password 27 | rootpw --plaintext password 28 | # System timezone 29 | timezone UTC --utc 30 | # System bootloader configuration 31 | bootloader 32 | zerombr 33 | # Partition clearing information 34 | clearpart --all --initlabel 35 | # # Disk partitioning information 36 | part /boot/efi --fstype="vfat" --size=400 37 | part /boot --fstype="ext4" --size=2048 38 | part swap --fstype="swap" --size=8192 39 | part / --fstype="ext4" --grow --size=1 40 | 41 | %packages 42 | @guest-agents 43 | @legacy-unix 44 | @system-tools 45 | bash 46 | mc 47 | curl 48 | wget 49 | tar 50 | bzip2 51 | kernel-devel 52 | kernel-headers 53 | perl 54 | gcc 55 | git 56 | make 57 | elfutils-libelf-devel 58 | langpacks-en 59 | glibc-all-langpacks 60 | openssh-server 61 | openssh-clients 62 | openssh 63 | tuned 64 | tuned-profiles-atomic 65 | qemu-guest-agent 66 | python3-pip 67 | python3-setuptools 68 | spice-vdagent 69 | qemu-guest-agent 70 | %end 71 | 72 | %addon com_redhat_subscription_manager 73 | %end 74 | %addon ADDON_placeholder --disable --reserve-mb=auto 75 | %end 76 | %addon com_redhat_kdump --disable 77 | %end 78 | 79 | # post part 80 | # post part 81 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 82 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 83 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 84 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 85 | systemctl enable sshd 86 | %end 87 | 88 | # post part 89 | %post --log=/var/log/anaconda/kickstart_post.log 90 | systemctl enable qemu-guest-agent 91 | systemctl set-default multi-user.target 92 | %end 93 | 94 | # post part 95 | %post --log=/var/log/anaconda/kickstart_post_efi.log 96 | cp -pr /boot/efi/EFI/almalinux/* /boot/efi/EFI/BOOT/ 97 | %end 98 | 99 | #reboot 100 | reboot 101 | -------------------------------------------------------------------------------- /extra/files/almalinux/9/uefi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # try to deal with broken centos UEFI in Hyper-V 3 | 4 | # Let's find out which bootnumber we have currently in UEFI with CentOS label 5 | bootnum=$(efibootmgr -v|grep -i centos|awk '{print $1}'|cut -c5-8) 6 | 7 | if [ -d "/boot/efi/EFI/centos" ]; then 8 | echo "Centos exists" 9 | # cp -av /boot/efi/EFI/centos/. /boot/efi/EFI/BOOT/ 10 | # now centos exists 11 | if [ -z "$bootnum" ]; then 12 | echo "Current CentOS boot number equals: $bootnum" 13 | efibootmgr -b "$bootnum" -B 14 | efibootmgr --create --label CentOS --disk /dev/sda1 --loader "\EFI\centos\shim.efi" 15 | sudo grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg 16 | efibootmgr -v 17 | fi 18 | fi 19 | -------------------------------------------------------------------------------- /extra/files/almalinux/9/virtualbox/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL9 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # Use CDROM installation media 12 | cdrom 13 | # Run the Setup Agent on first boot 14 | firstboot --disable 15 | # System services 16 | services --enabled="chronyd" 17 | services --enabled="sshd" 18 | services --enabled="NetworkManager" 19 | 20 | # Keyboard layouts 21 | keyboard --vckeymap=us --xlayouts='us' 22 | # System language 23 | lang en_US --addsupport=en_GB.UTF-8 24 | 25 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 26 | # Root password 27 | rootpw --plaintext password 28 | # System timezone 29 | timezone UTC --utc 30 | # System bootloader configuration 31 | bootloader 32 | zerombr 33 | # Partition clearing information 34 | clearpart --all --initlabel 35 | # # Disk partitioning information 36 | part /boot/efi --fstype="vfat" --size=400 37 | part /boot --fstype="ext4" --size=2048 38 | part swap --fstype="swap" --size=8192 39 | part / --fstype="ext4" --grow --size=1 40 | 41 | %packages 42 | @guest-agents 43 | @legacy-unix 44 | @system-tools 45 | bash 46 | mc 47 | curl 48 | wget 49 | tar 50 | bzip2 51 | kernel-devel 52 | kernel-headers 53 | perl 54 | gcc 55 | git 56 | make 57 | elfutils-libelf-devel 58 | langpacks-en 59 | glibc-all-langpacks 60 | openssh-server 61 | openssh-clients 62 | openssh 63 | tuned 64 | tuned-profiles-atomic 65 | qemu-guest-agent 66 | python3-pip 67 | python3-setuptools 68 | spice-vdagent 69 | qemu-guest-agent 70 | %end 71 | 72 | %addon com_redhat_subscription_manager 73 | %end 74 | %addon ADDON_placeholder --disable --reserve-mb=auto 75 | %end 76 | %addon com_redhat_kdump --disable 77 | %end 78 | 79 | # post part 80 | # post part 81 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 82 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 83 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 84 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 85 | systemctl enable sshd 86 | %end 87 | 88 | # post part 89 | %post --log=/var/log/anaconda/kickstart_post.log 90 | systemctl enable qemu-guest-agent 91 | systemctl set-default multi-user.target 92 | %end 93 | 94 | # post part 95 | %post --log=/var/log/anaconda/kickstart_post_efi.log 96 | cp -pr /boot/efi/EFI/almalinux/* /boot/efi/EFI/BOOT/ 97 | %end 98 | 99 | #reboot 100 | reboot 101 | -------------------------------------------------------------------------------- /extra/files/gen1-vb/ubuntu-2004/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/gen1-vb/ubuntu-2004/meta-data -------------------------------------------------------------------------------- /extra/files/gen2-centos/ks.cfg: -------------------------------------------------------------------------------- 1 | #platform=x86, AMD64, or Intel EM64T 2 | #version=DEVEL 3 | # Install OS instead of upgrade 4 | install 5 | # X Window System configuration information 6 | xconfig --startxonboot 7 | # Keyboard layouts 8 | # old format: keyboard us 9 | # new format: 10 | keyboard --vckeymap=us --xlayouts='us','pl' 11 | # Root password 12 | rootpw password 13 | # Use network installation 14 | #url --url="http://mirror.centos.org/centos/7/os/x86_64" 15 | # Use cdrom 16 | cdrom 17 | # System language 18 | lang en_US --addsupport=en_GB.UTF-8 19 | # Firewall configuration 20 | firewall --disabled 21 | # System authorization information 22 | auth --useshadow --passalgo=sha512 23 | # Use graphical install 24 | # graphical 25 | # Use text install 26 | text 27 | # Run the Setup Agent on first boot 28 | firstboot --disable 29 | # SELinux configuration 30 | selinux --disabled 31 | # License agreement 32 | eula --agreed 33 | 34 | # System services 35 | services --enabled="chronyd" 36 | services --enabled="sshd" 37 | services --enabled="NetworkManager" 38 | 39 | ignoredisk --only-use=sda 40 | # Network information 41 | network --bootproto=dhcp --device=eth0 --noipv6 --activate 42 | # Reboot after installation 43 | reboot 44 | # System timezone 45 | timezone Europe/Copenhagen --ntpservers=3.centos.pool.ntp.org,0.centos.pool.ntp.org,2.centos.pool.ntp.org,1.centos.pool.ntp.org 46 | # System bootloader configuration 47 | bootloader --location=mbr --boot-drive=sda 48 | # autopart --type=lvm 49 | # Clear the Master Boot Record 50 | zerombr 51 | # Partition clearing information 52 | clearpart --all --initlabel 53 | # Disk partitioning information 54 | part /boot/efi --fstype="vfat" --size=200 55 | part /boot --fstype="ext4" --size=1024 56 | part swap --fstype="swap" --size=16384 57 | part / --fstype="ext4" --grow --size=1 58 | 59 | # pre part 60 | %pre 61 | 62 | %end 63 | 64 | # post part 65 | %post 66 | systemctl enable sshd 67 | # systemctl start sshd 68 | systemctl set-default multi-user.target 69 | systemctl disable initial-setup-text 70 | systemctl disable initial-setup-graphical 71 | sed -i 's/__all__ = \["EULAspoke"\]/__all__ = \["LicenseScreen"\]/' /usr/lib/python2.7/site-packages/initial_setup/tui/spokes/eula.py 72 | # secure boot files 73 | cp -pr /boot/efi/EFI/centos/* /boot/efi/EFI/BOOT/ 74 | # delete libvirt 75 | systemctl stop libvirtd 76 | systemctl disable libvirtd 77 | %end 78 | 79 | %packages 80 | @base 81 | @compat-libraries 82 | @core 83 | #@dial-up 84 | @guest-agents 85 | #@hardware-monitoring 86 | @input-methods 87 | @network-file-system-client 88 | @performance 89 | #@security-tools 90 | #@x11 91 | chrony 92 | mc 93 | curl 94 | wget 95 | yum-priorities 96 | yum-versionlock 97 | yum-utils 98 | yum-cron 99 | openssh-server 100 | openssh-clients 101 | openssh 102 | kernel-devel 103 | kernel-headers 104 | make 105 | patch 106 | gcc 107 | %end 108 | -------------------------------------------------------------------------------- /extra/files/gen2-centos/uefi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # try to deal with broken centos UEFI in Hyper-V 3 | 4 | # Let's find out which bootnumber we have currently in UEFI with CentOS label 5 | bootnum=$(efibootmgr -v|grep -i centos|awk '{print $1}'|cut -c5-8) 6 | 7 | if [ -d "/boot/efi/EFI/centos" ]; then 8 | echo "Centos exists" 9 | # now centos exists 10 | if [ -z "$bootnum" ]; then 11 | echo "Current CentOS boot number equals: $bootnum" 12 | efibootmgr -b "$bootnum" -B 13 | efibootmgr --create --label CentOS --disk /dev/sda1 --loader "\EFI\centos\shim.efi" 14 | sudo grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg 15 | efibootmgr -v 16 | fi 17 | fi 18 | 19 | -------------------------------------------------------------------------------- /extra/files/gen2-linux/mkfs_device.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [[ $# -eq 0 ]] ; then 4 | echo 'No parameters given, I need device and mountpoint' 5 | exit 1 6 | else 7 | # main loop 8 | if [ -b "$1" ];then 9 | echo "$1 exists" 10 | device=$1 11 | if [ -z "$(/usr/sbin/sfdisk -d "$device" 2>&1)" ]; then 12 | echo "$device doesn't have partitions" 13 | /usr/sbin/parted --script "$device" \ 14 | mklabel gpt \ 15 | mkpart primary 2048s 100% \ 16 | print devices 17 | # end of parted script 18 | part=$device'1' 19 | sleep 3 20 | echo "$part" 21 | /usr/sbin/partprobe -s "$device" 22 | sleep 2 23 | /usr/sbin/mkfs.ext4 "$part" 24 | /usr/sbin/tune2fs -m 1 "$part" 25 | echo "done paritioning" 26 | fi 27 | else 28 | echo "$1 doesn't exists" 29 | fi 30 | fi 31 | -------------------------------------------------------------------------------- /extra/files/gen2-linux/parallels.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | mkdir /tmp/parallels 3 | mount /dev/sr1 /tmp/parallels 4 | cd /tmp/parallels||exit 5 | ./install --install-unattended-with-deps 6 | sleep 3 7 | cd / 8 | umount /tmp/parallels 9 | sleep 3 10 | exit 0 11 | -------------------------------------------------------------------------------- /extra/files/gen2-linux/prepare_neofetch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # prepare (comment/uncomment lines according to our needs) 3 | 4 | config="/etc/neofetch/config.conf" 5 | config_dir="/etc/neofetch" 6 | 7 | if [ ! -d $config_dir ];then 8 | echo "No $config_dir exists - creating one" 9 | mkdir -v $config_dir 10 | fi 11 | 12 | if [ ! -e $config ];then 13 | if [ -e /root/.config/neofetch/config.conf ];then 14 | echo "Copying config from root to /etc/neofetch" 15 | cp -pv /root/.config/neofetch/config.conf $config 16 | fi 17 | fi 18 | 19 | if [ -e $config ]; then 20 | echo "Starting Neofetch configuration" 21 | # comment 22 | sed -i -e 's/^[[:blank:]]*info "Packages" packages/#info "Packages" packages/g' $config 23 | sed -i -e 's/^[[:blank:]]*info "Resolution" resolution/#info "Resolution" resolution/g' $config 24 | sed -i -e 's/^[[:blank:]]*info "DE" de/#info "DE" de/g' $config 25 | sed -i -e 's/^[[:blank:]]*info "WM" wm/#info "WM" wm/g' $config 26 | sed -i -e 's/^[[:blank:]]*info "WM Theme" wm_theme/#info "WM Theme" wm_theme/g' $config 27 | sed -i -e 's/^[[:blank:]]*info "Theme" theme/#info "Theme" theme/g' $config 28 | sed -i -e 's/^[[:blank:]]*info "Icons" icons/#info "Icons" icons/g' $config 29 | sed -i -e 's/^[[:blank:]]*info "Terminal" term/#info "Terminal" term/g' $config 30 | sed -i -e 's/^[[:blank:]]*info "Terminal Font" term_font/#info "Terminal Font" term_font/g' $config 31 | sed -i -e 's/^[[:blank:]]*info cols/#info cols/g' $config 32 | # uncomment 33 | sed -i -e 's/^[[:blank:]]*# info "Disk" disk/info "Disk" disk/g' $config 34 | sed -i -e 's/^[[:blank:]]*# info "Local IP" local_ip/info "Local IP" local_ip/g' $config 35 | # disable color block - workaround for HV console 36 | sed -i -e 's/color_blocks="on"/color_blocks="off"/g' $config 37 | echo "Finished Neofetch configuration" 38 | else 39 | echo "File $config doesn't exist - couldn't configure neofetch" 40 | fi 41 | -------------------------------------------------------------------------------- /extra/files/gen2-linux/virtualbox.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Executing scripts/virtualbox.sh" 4 | 5 | if [ -f /tmp/VBoxGuestAdditions.iso ]; then 6 | mount -o loop /tmp/VBoxGuestAdditions.iso /mnt 7 | sh /mnt/VBoxLinuxAdditions.run 8 | rc=$? 9 | umount /mnt 10 | rm -rf /tmp/VBoxGuestAdditions.iso 11 | 12 | if [ $rc -ne 0 ]; then 13 | cat /var/log/VBoxGuestAdditions.log 14 | exit $rc 15 | else 16 | echo "Virtualbox guest addons have been installed successfully" 17 | exit 0 18 | fi 19 | else 20 | echo "No VBoxGuestAdditions.iso could be found" 21 | exit 0 22 | fi 23 | exit 0 24 | -------------------------------------------------------------------------------- /extra/files/gen2-linux/zeroing.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Zeroing 3 | echo "Zeroing phase" 4 | time dd if=/dev/zero|pv -treb|dd of=/file.zero bs=4096;sync;sync;rm -rfv /file.zero;sync;sync 5 | rm -rfv /file.zero||true 6 | echo "Zeroing done" 7 | -------------------------------------------------------------------------------- /extra/files/oraclelinux/7/kvm/ks-kvm.cfg: -------------------------------------------------------------------------------- 1 | lang en_US 2 | keyboard us 3 | # Root password 4 | rootpw $1$f0Hr84$whurdRGVEJbZs8QJJoWLB. --iscrypted 5 | # Use network installation 6 | #url --url="http://mirror.centos.org/centos/7/os/x86_64" 7 | # Use cdrom 8 | cdrom 9 | # System language 10 | # Firewall configuration 11 | firewall --disabled 12 | # 13 | # System authorization information 14 | auth --passalgo=sha512 --useshadow 15 | # Use graphical install 16 | # graphical 17 | # Use text install 18 | text 19 | # Run the Setup Agent on first boot 20 | firstboot --disable 21 | # SELinux configuration 22 | selinux --disabled 23 | # License agreement 24 | eula --agreed 25 | 26 | #X-window 27 | skipx 28 | 29 | # System services 30 | services --enabled="chronyd" 31 | services --enabled="sshd" 32 | services --enabled="NetworkManager" 33 | 34 | # Network information 35 | network --bootproto=dhcp --noipv6 --activate 36 | # Reboot after installation 37 | reboot 38 | # System timezone 39 | timezone Etc/UTC --isUtc 40 | # System bootloader configuration 41 | bootloader --append="rhgb quiet crashkernel=auto" 42 | # Clear the Master Boot Record 43 | zerombr 44 | # Partition clearing information 45 | clearpart --all --initlabel 46 | # Disk partitioning information 47 | part /boot --fstype="ext4" --size=2048 48 | part swap --fstype="swap" --size=8192 49 | 50 | part pv.01 --size=1 --grow 51 | volgroup vg_root pv.01 52 | logvol / --vgname=vg_root --size=1 --grow --name=lv_root 53 | logvol /var --vgname=vg_root --size=8192 --name=lv_var 54 | 55 | # pre part 56 | %pre 57 | 58 | %end 59 | 60 | # post part 61 | %post --log=/var/log/anaconda/kickstart_post.log 62 | systemctl enable sshd 63 | # systemctl start sshd 64 | systemctl set-default multi-user.target 65 | systemctl disable initial-setup-text 66 | systemctl disable initial-setup-graphical 67 | sed -i 's/__all__ = \["EULAspoke"\]/__all__ = \["LicenseScreen"\]/' /usr/lib/python2.7/site-packages/initial_setup/tui/spokes/eula.py 68 | %end 69 | 70 | %packages 71 | @base 72 | @compat-libraries 73 | @core 74 | @guest-agents 75 | @input-methods 76 | @network-file-system-client 77 | @performance 78 | chrony 79 | mc 80 | curl 81 | wget 82 | yum-versionlock 83 | yum-utils 84 | yum-cron 85 | openssh-server 86 | openssh-clients 87 | openssh 88 | kernel-devel 89 | kernel-headers 90 | make 91 | patch 92 | gcc 93 | git 94 | spice-vdagent 95 | %end 96 | -------------------------------------------------------------------------------- /extra/files/oraclelinux/8/uefi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # try to deal with broken centos UEFI in Hyper-V 3 | 4 | # Let's find out which bootnumber we have currently in UEFI with CentOS label 5 | bootnum=$(efibootmgr -v|grep -i centos|awk '{print $1}'|cut -c5-8) 6 | 7 | if [ -d "/boot/efi/EFI/centos" ]; then 8 | echo "Centos exists" 9 | # cp -av /boot/efi/EFI/centos/. /boot/efi/EFI/BOOT/ 10 | # now centos exists 11 | if [ -z "$bootnum" ]; then 12 | echo "Current CentOS boot number equals: $bootnum" 13 | efibootmgr -b "$bootnum" -B 14 | efibootmgr --create --label CentOS --disk /dev/sda1 --loader "\EFI\centos\shim.efi" 15 | sudo grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg 16 | efibootmgr -v 17 | fi 18 | fi 19 | -------------------------------------------------------------------------------- /extra/files/oraclelinux/9/hyperv/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL9 2 | # X Window System configuration information 3 | #xconfig --startxonboot 4 | # License agreement 5 | eula --agreed 6 | # Use graphical install 7 | text 8 | # SELinux configuration 9 | selinux --disabled 10 | # Network information 11 | network --bootproto=dhcp --noipv6 --activate 12 | #network --bootproto=dhcp --hostname=localhost.localdomain 13 | # firewall 14 | firewall --disabled 15 | 16 | #ignoredisk --only-use=sda 17 | # Use CDROM installation media 18 | cdrom 19 | # Run the Setup Agent on first boot 20 | firstboot --disable 21 | # System services 22 | services --enabled="chronyd" 23 | services --enabled="sshd" 24 | services --enabled="NetworkManager" 25 | 26 | # Keyboard layouts 27 | keyboard --vckeymap=us --xlayouts='us' 28 | # System language 29 | lang en_US --addsupport=en_GB.UTF-8 30 | 31 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 32 | # Root password 33 | rootpw --plaintext password 34 | # System timezone 35 | timezone UTC --utc 36 | # System bootloader configuration 37 | bootloader --location=mbr 38 | #autopart --type=lvm 39 | zerombr 40 | # Partition clearing information 41 | clearpart --all --initlabel 42 | # Disk partitioning information 43 | 44 | #Disk partitioning information 45 | part /boot/efi --fstype="vfat" --size=400 46 | part /boot --fstype="ext4" --size=2048 47 | part swap --fstype="swap" --size=8192 48 | part / --fstype="ext4" --grow --size=1 49 | 50 | 51 | %packages 52 | @guest-agents 53 | @legacy-unix 54 | @system-tools 55 | mc 56 | curl 57 | wget 58 | tar 59 | bzip2 60 | kernel-devel 61 | kernel-headers 62 | kernel-uek-devel 63 | perl 64 | gcc 65 | git 66 | make 67 | elfutils-libelf-devel 68 | langpacks-en 69 | glibc-all-langpacks 70 | openssh-server 71 | openssh-clients 72 | openssh 73 | python3-pip 74 | python3-setuptools 75 | tuned 76 | tuned-profiles-atomic 77 | spice-vdagent 78 | qemu-guest-agent 79 | %end 80 | 81 | %addon com_redhat_subscription_manager 82 | %end 83 | %addon ADDON_placeholder --disable --reserve-mb=auto 84 | %end 85 | %addon com_redhat_kdump --disable 86 | %end 87 | 88 | 89 | # post part 90 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 91 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 92 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 93 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 94 | systemctl enable sshd --now 95 | %end 96 | 97 | # post part 98 | %post --log=/var/log/anaconda/kickstart_post.log 99 | #systemctl enable qemu-guest-agent 100 | systemctl set-default multi-user.target 101 | %end 102 | 103 | #reboot 104 | reboot -------------------------------------------------------------------------------- /extra/files/oraclelinux/9/kvm/ks-kvm.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL9 2 | # X Window System configuration information 3 | #xconfig --startxonboot 4 | # License agreement 5 | eula --agreed 6 | # Use graphical install 7 | text 8 | # SELinux configuration 9 | selinux --disabled 10 | # Network information 11 | network --bootproto=dhcp --noipv6 --activate 12 | #network --bootproto=dhcp --hostname=localhost.localdomain 13 | # firewall 14 | firewall --disabled 15 | 16 | #ignoredisk --only-use=sda 17 | # Use CDROM installation media 18 | cdrom 19 | # Run the Setup Agent on first boot 20 | firstboot --disable 21 | # System services 22 | services --enabled="chronyd" 23 | services --enabled="sshd" 24 | services --enabled="NetworkManager" 25 | 26 | # Keyboard layouts 27 | keyboard --vckeymap=us --xlayouts='us' 28 | # System language 29 | lang en_US --addsupport=en_GB.UTF-8 30 | 31 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 32 | # Root password 33 | rootpw --plaintext password 34 | # System timezone 35 | timezone UTC --utc 36 | # System bootloader configuration 37 | bootloader --location=mbr 38 | #autopart --type=lvm 39 | zerombr 40 | # Partition clearing information 41 | clearpart --all --initlabel 42 | # Disk partitioning information 43 | 44 | #Disk partitioning information 45 | part /boot --fstype="ext4" --size=2048 46 | part swap --fstype="swap" --size=8192 47 | 48 | part pv.01 --size=1 --grow 49 | volgroup vg_root pv.01 50 | logvol / --vgname=vg_root --size=1 --grow --name=lv_root 51 | logvol /var --vgname=vg_root --size=8192 --name=lv_var 52 | 53 | 54 | %packages 55 | @guest-agents 56 | @legacy-unix 57 | @system-tools 58 | mc 59 | curl 60 | wget 61 | tar 62 | bzip2 63 | kernel-devel 64 | kernel-headers 65 | kernel-uek-devel 66 | perl 67 | gcc 68 | git 69 | make 70 | elfutils-libelf-devel 71 | langpacks-en 72 | glibc-all-langpacks 73 | openssh-server 74 | openssh-clients 75 | openssh 76 | python3-pip 77 | python3-setuptools 78 | tuned 79 | tuned-profiles-atomic 80 | spice-vdagent 81 | qemu-guest-agent 82 | %end 83 | 84 | %addon com_redhat_subscription_manager 85 | %end 86 | %addon ADDON_placeholder --disable --reserve-mb=auto 87 | %end 88 | %addon com_redhat_kdump --disable 89 | %end 90 | 91 | 92 | # post part 93 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 94 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 95 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 96 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 97 | systemctl enable sshd --now 98 | %end 99 | 100 | # post part 101 | %post --log=/var/log/anaconda/kickstart_post.log 102 | systemctl enable qemu-guest-agent 103 | systemctl set-default multi-user.target 104 | %end 105 | 106 | #reboot 107 | reboot -------------------------------------------------------------------------------- /extra/files/oraclelinux/9/proxmox/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # Use CDROM installation media 12 | cdrom 13 | # Run the Setup Agent on first boot 14 | firstboot --disable 15 | # System services 16 | services --enabled="chronyd" 17 | services --enabled="sshd" 18 | services --enabled="NetworkManager" 19 | 20 | # Keyboard layouts 21 | keyboard --vckeymap=us --xlayouts='us' 22 | # System language 23 | lang en_US --addsupport=en_GB.UTF-8 24 | 25 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 26 | # Root password 27 | rootpw --plaintext password 28 | # System timezone 29 | timezone UTC --utc 30 | # System bootloader configuration 31 | bootloader 32 | #autopart --type=lvm 33 | zerombr 34 | # Partition clearing information 35 | clearpart --all --initlabel 36 | # Disk partitioning information 37 | part /boot/efi --fstype="vfat" --size=400 38 | part /boot --fstype="ext4" --size=2048 39 | part swap --fstype="swap" --size=8192 40 | part / --fstype="ext4" --grow --size=1 41 | 42 | %packages 43 | @guest-agents 44 | @legacy-unix 45 | @system-tools 46 | bash 47 | mc 48 | curl 49 | wget 50 | tar 51 | bzip2 52 | kernel-devel 53 | kernel-headers 54 | kernel-uek-devel 55 | perl 56 | gcc 57 | git 58 | make 59 | elfutils-libelf-devel 60 | langpacks-en 61 | glibc-all-langpacks 62 | openssh-server 63 | openssh-clients 64 | openssh 65 | tuned 66 | tuned-profiles-atomic 67 | %end 68 | 69 | %addon com_redhat_subscription_manager 70 | %end 71 | %addon ADDON_placeholder --disable --reserve-mb=auto 72 | %end 73 | %addon com_redhat_kdump --disable 74 | %end 75 | 76 | # post part 77 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 78 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 79 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 80 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 81 | systemctl enable sshd 82 | %end 83 | 84 | # post part 85 | %post --log=/var/log/anaconda/kickstart_post.log 86 | systemctl enable qemu-guest-agent 87 | systemctl set-default multi-user.target 88 | %end 89 | 90 | # post part 91 | %post --log=/var/log/anaconda/kickstart_post_efi.log 92 | cp -pr /boot/efi/EFI/oraclelinux/* /boot/efi/EFI/BOOT/ 93 | %end 94 | 95 | #reboot 96 | reboot -------------------------------------------------------------------------------- /extra/files/oraclelinux/9/uefi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # try to deal with broken centos UEFI in Hyper-V 3 | 4 | # Let's find out which bootnumber we have currently in UEFI with CentOS label 5 | bootnum=$(efibootmgr -v|grep -i oracle|awk '{print $1}'|cut -c5-8) 6 | 7 | if [ -d "/boot/efi/EFI/oracle" ]; then 8 | echo "Oracle exists" 9 | # cp -av /boot/efi/EFI/centos/. /boot/efi/EFI/BOOT/ 10 | # now centos exists 11 | if [ -z "$bootnum" ]; then 12 | echo "Current Oracle boot number equals: $bootnum" 13 | efibootmgr -b "$bootnum" -B 14 | efibootmgr --create --label OracleLinux --disk /dev/sda1 --loader "\EFI\oracle\shim.efi" 15 | sudo grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg 16 | efibootmgr -v 17 | fi 18 | fi 19 | -------------------------------------------------------------------------------- /extra/files/oraclelinux/9/virtualbox/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # Use CDROM installation media 12 | cdrom 13 | # Run the Setup Agent on first boot 14 | firstboot --disable 15 | # System services 16 | services --enabled="chronyd" 17 | services --enabled="sshd" 18 | services --enabled="NetworkManager" 19 | 20 | # Keyboard layouts 21 | keyboard --vckeymap=us --xlayouts='us' 22 | # System language 23 | lang en_US --addsupport=en_GB.UTF-8 24 | 25 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 26 | # Root password 27 | rootpw --plaintext password 28 | # System timezone 29 | timezone UTC --utc 30 | # System bootloader configuration 31 | bootloader 32 | #autopart --type=lvm 33 | zerombr 34 | # Partition clearing information 35 | clearpart --all --initlabel 36 | # Disk partitioning information 37 | part /boot/efi --fstype="vfat" --size=400 38 | part /boot --fstype="ext4" --size=2048 39 | part swap --fstype="swap" --size=8192 40 | part / --fstype="ext4" --grow --size=1 41 | 42 | %packages 43 | @guest-agents 44 | @legacy-unix 45 | @system-tools 46 | bash 47 | mc 48 | curl 49 | wget 50 | tar 51 | bzip2 52 | kernel-devel 53 | kernel-headers 54 | kernel-uek-devel 55 | perl 56 | gcc 57 | git 58 | make 59 | elfutils-libelf-devel 60 | langpacks-en 61 | glibc-all-langpacks 62 | openssh-server 63 | openssh-clients 64 | openssh 65 | tuned 66 | tuned-profiles-atomic 67 | %end 68 | 69 | %addon com_redhat_subscription_manager 70 | %end 71 | %addon ADDON_placeholder --disable --reserve-mb=auto 72 | %end 73 | %addon com_redhat_kdump --disable 74 | %end 75 | 76 | # post part 77 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 78 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 79 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 80 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 81 | systemctl enable sshd 82 | %end 83 | 84 | # post part 85 | %post --log=/var/log/anaconda/kickstart_post.log 86 | systemctl enable qemu-guest-agent 87 | systemctl set-default multi-user.target 88 | %end 89 | 90 | # post part 91 | %post --log=/var/log/anaconda/kickstart_post_efi.log 92 | cp -pr /boot/efi/EFI/oraclelinux/* /boot/efi/EFI/BOOT/ 93 | %end 94 | 95 | #reboot 96 | reboot -------------------------------------------------------------------------------- /extra/files/redhat/7/ks-kvm-uefi.cfg: -------------------------------------------------------------------------------- 1 | lang en_US 2 | keyboard us 3 | # Root password 4 | rootpw $1$f0Hr84$whurdRGVEJbZs8QJJoWLB. --iscrypted 5 | # Use network installation 6 | #url --url="http://mirror.centos.org/centos/7/os/x86_64" 7 | # Use cdrom 8 | cdrom 9 | # System language 10 | # Firewall configuration 11 | firewall --disabled 12 | # 13 | # System authorization information 14 | auth --passalgo=sha512 --useshadow 15 | # Use graphical install 16 | # graphical 17 | # Use text install 18 | text 19 | # Run the Setup Agent on first boot 20 | firstboot --disable 21 | # SELinux configuration 22 | selinux --disabled 23 | # License agreement 24 | eula --agreed 25 | 26 | #X-window 27 | skipx 28 | 29 | # System services 30 | services --enabled="chronyd" 31 | services --enabled="sshd" 32 | services --enabled="NetworkManager" 33 | 34 | # Network information 35 | network --bootproto=dhcp --noipv6 --activate 36 | # Reboot after installation 37 | reboot 38 | # System timezone 39 | timezone Etc/UTC --isUtc 40 | # System bootloader configuration 41 | bootloader --append="rhgb quiet crashkernel=auto" 42 | # Clear the Master Boot Record 43 | zerombr 44 | # Partition clearing information 45 | clearpart --all --initlabel 46 | # # Disk partitioning information 47 | part /boot/efi --fstype="efi" --size=200 --fsoptions="umask=0077,shortname=winnt" 48 | part /boot --fstype="ext4" --size=2048 49 | part pv.01 --size=1 --grow 50 | volgroup vg_root pv.01 51 | logvol swap --vgname=vg_root --size=8192 --name=lv_swap 52 | logvol / --vgname=vg_root --size=1 --grow --name=lv_root 53 | 54 | # part /boot --fstype="ext4" --size=2048 55 | # part swap --fstype="swap" --size=8192 56 | # part pv.01 --size=1 --grow 57 | # volgroup vg_root pv.01 58 | # logvol / --vgname=vg_root --size=1 --grow --name=lv_root 59 | # logvol /var --vgname=vg_root --size=8192 --name=lv_var 60 | 61 | # pre part 62 | %pre 63 | 64 | %end 65 | 66 | # post part 67 | %post --log=/var/log/anaconda/kickstart_post.log 68 | systemctl enable sshd 69 | # systemctl start sshd 70 | systemctl set-default multi-user.target 71 | systemctl disable initial-setup-text 72 | systemctl disable initial-setup-graphical 73 | sed -i 's/__all__ = \["EULAspoke"\]/__all__ = \["LicenseScreen"\]/' /usr/lib/python2.7/site-packages/initial_setup/tui/spokes/eula.py 74 | %end 75 | 76 | %packages 77 | @base 78 | @compat-libraries 79 | @core 80 | @guest-agents 81 | @input-methods 82 | @network-file-system-client 83 | @performance 84 | chrony 85 | mc 86 | curl 87 | wget 88 | yum-versionlock 89 | yum-utils 90 | yum-cron 91 | openssh-server 92 | openssh-clients 93 | openssh 94 | kernel-devel 95 | kernel-headers 96 | make 97 | patch 98 | gcc 99 | spice-vdagent 100 | cloud-init 101 | cloud-utils-growpart 102 | gdb 103 | git 104 | %end 105 | -------------------------------------------------------------------------------- /extra/files/redhat/7/ks-kvm.cfg: -------------------------------------------------------------------------------- 1 | lang en_US 2 | keyboard us 3 | # Root password 4 | rootpw $1$f0Hr84$whurdRGVEJbZs8QJJoWLB. --iscrypted 5 | # Use network installation 6 | #url --url="http://mirror.centos.org/centos/7/os/x86_64" 7 | # Use cdrom 8 | cdrom 9 | # System language 10 | # Firewall configuration 11 | firewall --disabled 12 | # 13 | # System authorization information 14 | auth --passalgo=sha512 --useshadow 15 | # Use graphical install 16 | # graphical 17 | # Use text install 18 | text 19 | # Run the Setup Agent on first boot 20 | firstboot --disable 21 | # SELinux configuration 22 | selinux --disabled 23 | # License agreement 24 | eula --agreed 25 | 26 | #X-window 27 | skipx 28 | 29 | # System services 30 | services --enabled="chronyd" 31 | services --enabled="sshd" 32 | services --enabled="NetworkManager" 33 | 34 | # Network information 35 | network --bootproto=dhcp --noipv6 --activate 36 | # Reboot after installation 37 | reboot 38 | # System timezone 39 | timezone Etc/UTC --isUtc 40 | # System bootloader configuration 41 | bootloader --append="rhgb quiet crashkernel=auto" 42 | # Clear the Master Boot Record 43 | zerombr 44 | # Partition clearing information 45 | clearpart --all --initlabel 46 | # Disk partitioning information 47 | part /boot --fstype="ext4" --size=2048 48 | part swap --fstype="swap" --size=8192 49 | 50 | part pv.01 --size=1 --grow 51 | volgroup vg_root pv.01 52 | logvol / --vgname=vg_root --size=1 --grow --name=lv_root 53 | logvol /var --vgname=vg_root --size=8192 --name=lv_var 54 | 55 | # pre part 56 | %pre 57 | 58 | %end 59 | 60 | # post part 61 | %post --log=/var/log/anaconda/kickstart_post.log 62 | systemctl enable sshd 63 | # systemctl start sshd 64 | systemctl set-default multi-user.target 65 | systemctl disable initial-setup-text 66 | systemctl disable initial-setup-graphical 67 | sed -i 's/__all__ = \["EULAspoke"\]/__all__ = \["LicenseScreen"\]/' /usr/lib/python2.7/site-packages/initial_setup/tui/spokes/eula.py 68 | %end 69 | 70 | %packages 71 | @base 72 | @compat-libraries 73 | @core 74 | @guest-agents 75 | @input-methods 76 | @network-file-system-client 77 | @performance 78 | chrony 79 | mc 80 | curl 81 | wget 82 | yum-versionlock 83 | yum-utils 84 | yum-cron 85 | openssh-server 86 | openssh-clients 87 | openssh 88 | kernel-devel 89 | kernel-headers 90 | make 91 | patch 92 | gcc 93 | spice-vdagent 94 | cloud-init 95 | cloud-utils-growpart 96 | gdb 97 | git 98 | %end 99 | -------------------------------------------------------------------------------- /extra/files/redhat/8/ks-kvm.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # firewall 12 | firewall --disabled 13 | # Use CDROM installation media 14 | cdrom 15 | # Run the Setup Agent on first boot 16 | firstboot --disable 17 | # System services 18 | services --enabled="chronyd" 19 | services --enabled="sshd" 20 | services --enabled="NetworkManager" 21 | 22 | # Keyboard layouts 23 | keyboard --vckeymap=us --xlayouts='us' 24 | # System language 25 | lang en_US --addsupport=en_GB.UTF-8 26 | 27 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 28 | # Root password 29 | rootpw --plaintext password 30 | # System timezone 31 | timezone UTC --isUtc --ntpservers=0.rhel.pool.ntp.org 32 | # System bootloader configuration 33 | bootloader 34 | zerombr 35 | # Partition clearing information 36 | clearpart --all --initlabel 37 | # Disk partitioning information 38 | part /boot --fstype="ext4" --size=2048 39 | part swap --fstype="swap" --size=8192 40 | 41 | part pv.01 --size=1 --grow 42 | volgroup vg_root pv.01 43 | logvol / --vgname=vg_root --size=1 --grow --name=lv_root 44 | logvol /var --vgname=vg_root --size=8192 --name=lv_var 45 | 46 | %packages 47 | @guest-agents 48 | @legacy-unix 49 | @system-tools 50 | bash 51 | mc 52 | curl 53 | wget 54 | tar 55 | bzip2 56 | kernel-devel 57 | kernel-headers 58 | perl 59 | gcc 60 | git 61 | make 62 | elfutils-libelf-devel 63 | langpacks-en 64 | glibc-all-langpacks 65 | openssh-server 66 | openssh-clients 67 | openssh 68 | python3-pip 69 | python3-setuptools 70 | tuned 71 | tuned-profiles-atomic 72 | tuned-utils 73 | spice-vdagent 74 | qemu-guest-agent 75 | cloud-init 76 | cloud-utils-growpart 77 | %end 78 | 79 | %addon com_redhat_subscription_manager 80 | %end 81 | %addon ADDON_placeholder --disable --reserve-mb=auto 82 | %end 83 | %addon com_redhat_kdump --disable 84 | %end 85 | 86 | %anaconda 87 | pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty 88 | pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok 89 | pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty 90 | %end 91 | 92 | # post part 93 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 94 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 95 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 96 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 97 | systemctl enable sshd 98 | %end 99 | 100 | %post --log=/var/log/anaconda/kickstart_post.log 101 | systemctl enable qemu-guest-agent 102 | systemctl set-default multi-user.target 103 | %end 104 | 105 | #reboot 106 | reboot -------------------------------------------------------------------------------- /extra/files/rockylinux/8/hyperv/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # firewall 12 | firewall --disabled 13 | # Use CDROM installation media 14 | cdrom 15 | # Run the Setup Agent on first boot 16 | firstboot --disable 17 | # System services 18 | services --enabled="chronyd" 19 | services --enabled="sshd" 20 | services --enabled="NetworkManager" 21 | 22 | # Keyboard layouts 23 | keyboard --vckeymap=us --xlayouts='us' 24 | # System language 25 | lang en_US --addsupport=en_GB.UTF-8 26 | 27 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 28 | # Root password 29 | rootpw --plaintext password 30 | # System timezone 31 | timezone UTC --isUtc --ntpservers=0.rhel.pool.ntp.org 32 | # System bootloader configuration 33 | bootloader 34 | zerombr 35 | # Partition clearing information 36 | clearpart --all --initlabel 37 | # Disk partitioning information 38 | part /boot/efi --fstype="vfat" --size=400 39 | part /boot --fstype="ext4" --size=2048 40 | part swap --fstype="swap" --size=8192 41 | part / --fstype="ext4" --grow --size=1 42 | 43 | %packages 44 | @guest-agents 45 | @legacy-unix 46 | @system-tools 47 | bash 48 | mc 49 | curl 50 | wget 51 | tar 52 | bzip2 53 | kernel-devel 54 | kernel-headers 55 | perl 56 | gcc 57 | git 58 | make 59 | elfutils-libelf-devel 60 | langpacks-en 61 | glibc-all-langpacks 62 | openssh-server 63 | openssh-clients 64 | openssh 65 | python3-pip 66 | python3-setuptools 67 | tuned 68 | tuned-profiles-atomic 69 | tuned-utils 70 | spice-vdagent 71 | qemu-guest-agent 72 | %end 73 | 74 | %addon com_redhat_subscription_manager 75 | %end 76 | %addon ADDON_placeholder --disable --reserve-mb=auto 77 | %end 78 | %addon com_redhat_kdump --disable 79 | %end 80 | 81 | %anaconda 82 | pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty 83 | pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok 84 | pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty 85 | %end 86 | 87 | # post part 88 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 89 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 90 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 91 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 92 | systemctl enable sshd 93 | %end 94 | 95 | %post --log=/var/log/anaconda/kickstart_post.log 96 | systemctl enable qemu-guest-agent 97 | systemctl set-default multi-user.target 98 | %end 99 | 100 | #reboot 101 | reboot -------------------------------------------------------------------------------- /extra/files/rockylinux/8/kvm/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # firewall 12 | firewall --disabled 13 | # Use CDROM installation media 14 | cdrom 15 | # Run the Setup Agent on first boot 16 | firstboot --disable 17 | # System services 18 | services --enabled="chronyd" 19 | services --enabled="sshd" 20 | services --enabled="NetworkManager" 21 | 22 | # Keyboard layouts 23 | keyboard --vckeymap=us --xlayouts='us' 24 | # System language 25 | lang en_US --addsupport=en_GB.UTF-8 26 | 27 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 28 | # Root password 29 | rootpw --plaintext password 30 | # System timezone 31 | timezone UTC --isUtc --ntpservers=0.rhel.pool.ntp.org 32 | # System bootloader configuration 33 | bootloader 34 | zerombr 35 | # Partition clearing information 36 | clearpart --all --initlabel 37 | # Disk partitioning information 38 | part /boot/efi --fstype="vfat" --size=400 39 | part /boot --fstype="ext4" --size=2048 40 | part swap --fstype="swap" --size=8192 41 | part / --fstype="ext4" --grow --size=1 42 | 43 | %packages 44 | @guest-agents 45 | @legacy-unix 46 | @system-tools 47 | bash 48 | mc 49 | curl 50 | wget 51 | tar 52 | bzip2 53 | kernel-devel 54 | kernel-headers 55 | perl 56 | gcc 57 | git 58 | make 59 | elfutils-libelf-devel 60 | langpacks-en 61 | glibc-all-langpacks 62 | openssh-server 63 | openssh-clients 64 | openssh 65 | python3-pip 66 | python3-setuptools 67 | tuned 68 | tuned-profiles-atomic 69 | tuned-utils 70 | spice-vdagent 71 | qemu-guest-agent 72 | %end 73 | 74 | %addon com_redhat_subscription_manager 75 | %end 76 | %addon ADDON_placeholder --disable --reserve-mb=auto 77 | %end 78 | %addon com_redhat_kdump --disable 79 | %end 80 | 81 | %anaconda 82 | pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty 83 | pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok 84 | pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty 85 | %end 86 | 87 | # post part 88 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 89 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 90 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 91 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 92 | systemctl enable sshd 93 | %end 94 | 95 | %post --log=/var/log/anaconda/kickstart_post.log 96 | systemctl enable qemu-guest-agent 97 | systemctl set-default multi-user.target 98 | %end 99 | 100 | #reboot 101 | reboot -------------------------------------------------------------------------------- /extra/files/rockylinux/8/proxmox/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # firewall 12 | firewall --disabled 13 | # Use CDROM installation media 14 | cdrom 15 | # Run the Setup Agent on first boot 16 | firstboot --disable 17 | # System services 18 | services --enabled="chronyd" 19 | services --enabled="sshd" 20 | services --enabled="NetworkManager" 21 | 22 | # Keyboard layouts 23 | keyboard --vckeymap=us --xlayouts='us' 24 | # System language 25 | lang en_US --addsupport=en_GB.UTF-8 26 | 27 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 28 | # Root password 29 | rootpw --plaintext password 30 | # System timezone 31 | timezone UTC --isUtc --ntpservers=0.rhel.pool.ntp.org 32 | # System bootloader configuration 33 | bootloader 34 | zerombr 35 | # Partition clearing information 36 | clearpart --all --initlabel 37 | # Disk partitioning information 38 | part /boot/efi --fstype="vfat" --size=400 39 | part /boot --fstype="ext4" --size=2048 40 | part swap --fstype="swap" --size=8192 41 | part / --fstype="ext4" --grow --size=1 42 | 43 | %packages 44 | @guest-agents 45 | @legacy-unix 46 | @system-tools 47 | bash 48 | mc 49 | curl 50 | wget 51 | tar 52 | bzip2 53 | kernel-devel 54 | kernel-headers 55 | perl 56 | gcc 57 | git 58 | make 59 | elfutils-libelf-devel 60 | langpacks-en 61 | glibc-all-langpacks 62 | openssh-server 63 | openssh-clients 64 | openssh 65 | python3-pip 66 | python3-setuptools 67 | tuned 68 | tuned-profiles-atomic 69 | tuned-utils 70 | spice-vdagent 71 | qemu-guest-agent 72 | %end 73 | 74 | %addon com_redhat_subscription_manager 75 | %end 76 | %addon ADDON_placeholder --disable --reserve-mb=auto 77 | %end 78 | %addon com_redhat_kdump --disable 79 | %end 80 | 81 | %anaconda 82 | pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty 83 | pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok 84 | pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty 85 | %end 86 | 87 | # post part 88 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 89 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 90 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 91 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 92 | systemctl enable sshd 93 | %end 94 | 95 | %post --log=/var/log/anaconda/kickstart_post.log 96 | systemctl enable qemu-guest-agent 97 | systemctl set-default multi-user.target 98 | %end 99 | 100 | #reboot 101 | reboot -------------------------------------------------------------------------------- /extra/files/rockylinux/8/uefi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # try to deal with broken centos UEFI in Hyper-V 3 | 4 | # Let's find out which bootnumber we have currently in UEFI with CentOS label 5 | bootnum=$(efibootmgr -v|grep -i centos|awk '{print $1}'|cut -c5-8) 6 | 7 | if [ -d "/boot/efi/EFI/centos" ]; then 8 | echo "Centos exists" 9 | # cp -av /boot/efi/EFI/centos/. /boot/efi/EFI/BOOT/ 10 | # now centos exists 11 | if [ -z "$bootnum" ]; then 12 | echo "Current CentOS boot number equals: $bootnum" 13 | efibootmgr -b "$bootnum" -B 14 | efibootmgr --create --label CentOS --disk /dev/sda1 --loader "\EFI\centos\shim.efi" 15 | sudo grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg 16 | efibootmgr -v 17 | fi 18 | fi 19 | -------------------------------------------------------------------------------- /extra/files/rockylinux/8/virtualbox/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL8 2 | # X Window System configuration information 3 | # License agreement 4 | eula --agreed 5 | # Use graphical install 6 | text 7 | # SELinux configuration 8 | selinux --disabled 9 | # Network information 10 | network --bootproto=dhcp --noipv6 --activate 11 | # firewall 12 | firewall --disabled 13 | # Use CDROM installation media 14 | cdrom 15 | # Run the Setup Agent on first boot 16 | firstboot --disable 17 | # System services 18 | services --enabled="chronyd" 19 | services --enabled="sshd" 20 | services --enabled="NetworkManager" 21 | 22 | # Keyboard layouts 23 | keyboard --vckeymap=us --xlayouts='us' 24 | # System language 25 | lang en_US --addsupport=en_GB.UTF-8 26 | 27 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 28 | # Root password 29 | rootpw --plaintext password 30 | # System timezone 31 | timezone UTC --isUtc --ntpservers=0.rhel.pool.ntp.org 32 | # System bootloader configuration 33 | bootloader 34 | zerombr 35 | # Partition clearing information 36 | clearpart --all --initlabel 37 | # Disk partitioning information 38 | part /boot/efi --fstype="vfat" --size=400 39 | part /boot --fstype="ext4" --size=2048 40 | part swap --fstype="swap" --size=8192 41 | part / --fstype="ext4" --grow --size=1 42 | 43 | %packages 44 | @guest-agents 45 | @legacy-unix 46 | @system-tools 47 | bash 48 | mc 49 | curl 50 | wget 51 | tar 52 | bzip2 53 | kernel-devel 54 | kernel-headers 55 | perl 56 | gcc 57 | git 58 | make 59 | elfutils-libelf-devel 60 | langpacks-en 61 | glibc-all-langpacks 62 | openssh-server 63 | openssh-clients 64 | openssh 65 | python3-pip 66 | python3-setuptools 67 | tuned 68 | tuned-profiles-atomic 69 | tuned-utils 70 | spice-vdagent 71 | qemu-guest-agent 72 | %end 73 | 74 | %addon com_redhat_subscription_manager 75 | %end 76 | %addon ADDON_placeholder --disable --reserve-mb=auto 77 | %end 78 | %addon com_redhat_kdump --disable 79 | %end 80 | 81 | %anaconda 82 | pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty 83 | pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok 84 | pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty 85 | %end 86 | 87 | # post part 88 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 89 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 90 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 91 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 92 | systemctl enable sshd 93 | %end 94 | 95 | %post --log=/var/log/anaconda/kickstart_post.log 96 | systemctl enable qemu-guest-agent 97 | systemctl set-default multi-user.target 98 | %end 99 | 100 | #reboot 101 | reboot -------------------------------------------------------------------------------- /extra/files/rockylinux/9/hyperv/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL9 2 | # X Window System configuration information 3 | #xconfig --startxonboot 4 | # License agreement 5 | eula --agreed 6 | # Use graphical install 7 | text 8 | # SELinux configuration 9 | selinux --disabled 10 | # Network information 11 | network --bootproto=dhcp --noipv6 --activate 12 | # Use CDROM installation media 13 | cdrom 14 | # Run the Setup Agent on first boot 15 | firstboot --disable 16 | # System services 17 | services --enabled="chronyd" 18 | services --enabled="sshd" 19 | services --enabled="NetworkManager" 20 | 21 | # Keyboard layouts 22 | keyboard --vckeymap=us --xlayouts='us' 23 | # System language 24 | lang en_US --addsupport=en_GB.UTF-8 25 | 26 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 27 | # Root password 28 | rootpw --plaintext password 29 | # System timezone 30 | timezone UTC --utc 31 | # System bootloader configuration 32 | # bootloader --location=mbr --boot-drive=sda 33 | bootloader 34 | #autopart --type=lvm 35 | zerombr 36 | # Partition clearing information 37 | clearpart --all --initlabel 38 | # Disk partitioning information 39 | part /boot/efi --fstype="vfat" --size=400 40 | part /boot --fstype="ext4" --size=2048 41 | part swap --fstype="swap" --size=8192 42 | part / --fstype="ext4" --grow --size=1 43 | 44 | %packages 45 | @guest-agents 46 | @legacy-unix 47 | @system-tools 48 | bash 49 | mc 50 | curl 51 | wget 52 | tar 53 | bzip2 54 | kernel-devel 55 | kernel-headers 56 | perl 57 | gcc 58 | git 59 | make 60 | elfutils-libelf-devel 61 | langpacks-en 62 | glibc-all-langpacks 63 | openssh-server 64 | openssh-clients 65 | openssh 66 | tuned 67 | tuned-profiles-atomic 68 | tuned-utils 69 | spice-vdagent 70 | qemu-guest-agent 71 | %end 72 | 73 | %addon com_redhat_subscription_manager 74 | %end 75 | %addon ADDON_placeholder --disable --reserve-mb=auto 76 | %end 77 | %addon com_redhat_kdump --disable 78 | %end 79 | # post part 80 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 81 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 82 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 83 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 84 | systemctl enable sshd 85 | %end 86 | 87 | # post part 88 | %post --log=/var/log/anaconda/kickstart_post.log 89 | systemctl enable qemu-guest-agent 90 | systemctl set-default multi-user.target 91 | %end 92 | 93 | %post --log=/var/log/anaconda/kickstart_post_efi.log 94 | cp -pr /boot/efi/EFI/rockylinux/* /boot/efi/EFI/BOOT/ 95 | %end 96 | 97 | #reboot 98 | reboot -------------------------------------------------------------------------------- /extra/files/rockylinux/9/kvm/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL9 2 | # X Window System configuration information 3 | #xconfig --startxonboot 4 | # License agreement 5 | eula --agreed 6 | # Use graphical install 7 | text 8 | # SELinux configuration 9 | selinux --disabled 10 | # Network information 11 | network --bootproto=dhcp --noipv6 --activate 12 | # Use CDROM installation media 13 | cdrom 14 | # Run the Setup Agent on first boot 15 | firstboot --disable 16 | # System services 17 | services --enabled="chronyd" 18 | services --enabled="sshd" 19 | services --enabled="NetworkManager" 20 | 21 | # Keyboard layouts 22 | keyboard --vckeymap=us --xlayouts='us' 23 | # System language 24 | lang en_US --addsupport=en_GB.UTF-8 25 | 26 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 27 | # Root password 28 | rootpw --plaintext password 29 | # System timezone 30 | timezone UTC --utc 31 | # System bootloader configuration 32 | # bootloader --location=mbr --boot-drive=sda 33 | bootloader 34 | #autopart --type=lvm 35 | zerombr 36 | # Partition clearing information 37 | clearpart --all --initlabel 38 | # Disk partitioning information 39 | part /boot/efi --fstype="vfat" --size=400 40 | part /boot --fstype="ext4" --size=2048 41 | part swap --fstype="swap" --size=8192 42 | part / --fstype="ext4" --grow --size=1 43 | 44 | %packages 45 | @guest-agents 46 | @legacy-unix 47 | @system-tools 48 | bash 49 | mc 50 | curl 51 | wget 52 | tar 53 | bzip2 54 | kernel-devel 55 | kernel-headers 56 | perl 57 | gcc 58 | git 59 | make 60 | elfutils-libelf-devel 61 | langpacks-en 62 | glibc-all-langpacks 63 | openssh-server 64 | openssh-clients 65 | openssh 66 | tuned 67 | tuned-profiles-atomic 68 | tuned-utils 69 | spice-vdagent 70 | qemu-guest-agent 71 | %end 72 | 73 | %addon com_redhat_subscription_manager 74 | %end 75 | %addon ADDON_placeholder --disable --reserve-mb=auto 76 | %end 77 | %addon com_redhat_kdump --disable 78 | %end 79 | # post part 80 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 81 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 82 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 83 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 84 | systemctl enable sshd 85 | %end 86 | 87 | # post part 88 | %post --log=/var/log/anaconda/kickstart_post.log 89 | systemctl enable qemu-guest-agent 90 | systemctl set-default multi-user.target 91 | %end 92 | 93 | %post --log=/var/log/anaconda/kickstart_post_efi.log 94 | cp -pr /boot/efi/EFI/rockylinux/* /boot/efi/EFI/BOOT/ 95 | %end 96 | 97 | #reboot 98 | reboot -------------------------------------------------------------------------------- /extra/files/rockylinux/9/proxmox/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL9 2 | # X Window System configuration information 3 | #xconfig --startxonboot 4 | # License agreement 5 | eula --agreed 6 | # Use graphical install 7 | text 8 | # SELinux configuration 9 | selinux --disabled 10 | # Network information 11 | network --bootproto=dhcp --noipv6 --activate 12 | # Use CDROM installation media 13 | cdrom 14 | # Run the Setup Agent on first boot 15 | firstboot --disable 16 | # System services 17 | services --enabled="chronyd" 18 | services --enabled="sshd" 19 | services --enabled="NetworkManager" 20 | 21 | # Keyboard layouts 22 | keyboard --vckeymap=us --xlayouts='us' 23 | # System language 24 | lang en_US --addsupport=en_GB.UTF-8 25 | 26 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 27 | # Root password 28 | rootpw --plaintext password 29 | # System timezone 30 | timezone UTC --utc 31 | # System bootloader configuration 32 | # bootloader --location=mbr --boot-drive=sda 33 | bootloader 34 | #autopart --type=lvm 35 | zerombr 36 | # Partition clearing information 37 | clearpart --all --initlabel 38 | # Disk partitioning information 39 | part /boot/efi --fstype="vfat" --size=400 40 | part /boot --fstype="ext4" --size=2048 41 | part swap --fstype="swap" --size=8192 42 | part / --fstype="ext4" --grow --size=1 43 | 44 | %packages 45 | @guest-agents 46 | @legacy-unix 47 | @system-tools 48 | bash 49 | mc 50 | curl 51 | wget 52 | tar 53 | bzip2 54 | kernel-devel 55 | kernel-headers 56 | perl 57 | gcc 58 | git 59 | make 60 | elfutils-libelf-devel 61 | langpacks-en 62 | glibc-all-langpacks 63 | openssh-server 64 | openssh-clients 65 | openssh 66 | tuned 67 | tuned-profiles-atomic 68 | tuned-utils 69 | spice-vdagent 70 | qemu-guest-agent 71 | %end 72 | 73 | %addon com_redhat_subscription_manager 74 | %end 75 | %addon ADDON_placeholder --disable --reserve-mb=auto 76 | %end 77 | %addon com_redhat_kdump --disable 78 | %end 79 | # post part 80 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 81 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 82 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 83 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 84 | systemctl enable sshd 85 | %end 86 | 87 | # post part 88 | %post --log=/var/log/anaconda/kickstart_post.log 89 | systemctl enable qemu-guest-agent 90 | systemctl set-default multi-user.target 91 | %end 92 | 93 | %post --log=/var/log/anaconda/kickstart_post_efi.log 94 | cp -pr /boot/efi/EFI/rockylinux/* /boot/efi/EFI/BOOT/ 95 | %end 96 | 97 | #reboot 98 | reboot -------------------------------------------------------------------------------- /extra/files/rockylinux/9/uefi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # try to deal with broken centos UEFI in Hyper-V 3 | 4 | # Let's find out which bootnumber we have currently in UEFI with CentOS label 5 | bootnum=$(efibootmgr -v|grep -i centos|awk '{print $1}'|cut -c5-8) 6 | 7 | if [ -d "/boot/efi/EFI/centos" ]; then 8 | echo "Centos exists" 9 | # cp -av /boot/efi/EFI/centos/. /boot/efi/EFI/BOOT/ 10 | # now centos exists 11 | if [ -z "$bootnum" ]; then 12 | echo "Current CentOS boot number equals: $bootnum" 13 | efibootmgr -b "$bootnum" -B 14 | efibootmgr --create --label CentOS --disk /dev/sda1 --loader "\EFI\centos\shim.efi" 15 | sudo grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg 16 | efibootmgr -v 17 | fi 18 | fi 19 | -------------------------------------------------------------------------------- /extra/files/rockylinux/9/virtualbox/ks.cfg: -------------------------------------------------------------------------------- 1 | #version=RHEL9 2 | # X Window System configuration information 3 | #xconfig --startxonboot 4 | # License agreement 5 | eula --agreed 6 | # Use graphical install 7 | text 8 | # SELinux configuration 9 | selinux --disabled 10 | # Network information 11 | network --bootproto=dhcp --noipv6 --activate 12 | # Use CDROM installation media 13 | cdrom 14 | # Run the Setup Agent on first boot 15 | firstboot --disable 16 | # System services 17 | services --enabled="chronyd" 18 | services --enabled="sshd" 19 | services --enabled="NetworkManager" 20 | 21 | # Keyboard layouts 22 | keyboard --vckeymap=us --xlayouts='us' 23 | # System language 24 | lang en_US --addsupport=en_GB.UTF-8 25 | 26 | repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream 27 | # Root password 28 | rootpw --plaintext password 29 | # System timezone 30 | timezone UTC --utc 31 | # System bootloader configuration 32 | # bootloader --location=mbr --boot-drive=sda 33 | bootloader 34 | #autopart --type=lvm 35 | zerombr 36 | # Partition clearing information 37 | clearpart --all --initlabel 38 | # Disk partitioning information 39 | part /boot/efi --fstype="vfat" --size=400 40 | part /boot --fstype="ext4" --size=2048 41 | part swap --fstype="swap" --size=8192 42 | part / --fstype="ext4" --grow --size=1 43 | 44 | %packages 45 | @guest-agents 46 | @legacy-unix 47 | @system-tools 48 | bash 49 | mc 50 | curl 51 | wget 52 | tar 53 | bzip2 54 | kernel-devel 55 | kernel-headers 56 | perl 57 | gcc 58 | git 59 | make 60 | elfutils-libelf-devel 61 | langpacks-en 62 | glibc-all-langpacks 63 | openssh-server 64 | openssh-clients 65 | openssh 66 | tuned 67 | tuned-profiles-atomic 68 | tuned-utils 69 | spice-vdagent 70 | qemu-guest-agent 71 | %end 72 | 73 | %addon com_redhat_subscription_manager 74 | %end 75 | %addon ADDON_placeholder --disable --reserve-mb=auto 76 | %end 77 | %addon com_redhat_kdump --disable 78 | %end 79 | # post part 80 | %post --log=/var/log/anaconda/kickstart_post_sshd.log 81 | sed -ri 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 82 | sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config 83 | sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 84 | systemctl enable sshd 85 | %end 86 | 87 | # post part 88 | %post --log=/var/log/anaconda/kickstart_post.log 89 | systemctl enable qemu-guest-agent 90 | systemctl set-default multi-user.target 91 | %end 92 | 93 | %post --log=/var/log/anaconda/kickstart_post_efi.log 94 | cp -pr /boot/efi/EFI/rockylinux/* /boot/efi/EFI/BOOT/ 95 | %end 96 | 97 | #reboot 98 | reboot -------------------------------------------------------------------------------- /extra/files/scagent/1.0.3.1028/scvmmguestagent.1.0.3.1028.x64.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/scagent/1.0.3.1028/scvmmguestagent.1.0.3.1028.x64.tar -------------------------------------------------------------------------------- /extra/files/scagent/1.0.3.1028/scvmmguestagent.1.0.3.1028.x86.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/scagent/1.0.3.1028/scvmmguestagent.1.0.3.1028.x86.tar -------------------------------------------------------------------------------- /extra/files/ubuntu/20.04/hyperv/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/ubuntu/20.04/hyperv/meta-data -------------------------------------------------------------------------------- /extra/files/ubuntu/20.04/proxmox/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/ubuntu/20.04/proxmox/meta-data -------------------------------------------------------------------------------- /extra/files/ubuntu/20.04/uefi.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # try to deal with broken centos/ubuntu UEFI in Hyper-V 3 | 4 | # Let's find out which bootnumber we have currently in UEFI with Ubuntu label 5 | bootnum=$(efibootmgr -v|grep -i ubuntu|awk '{print $1}'|cut -c5-8) 6 | 7 | if [ -d "/boot/efi/EFI/ubuntu" ]; then 8 | echo "Ubuntu exists" 9 | # now centos exists 10 | if [ -z "$bootnum" ]; then 11 | echo "Current Ubuntu boot number equals: $bootnum" 12 | efibootmgr -b "$bootnum" -B 13 | efibootmgr --create --label Ubuntu --disk /dev/sda1 --loader "\EFI\ubuntu\shim.efi" 14 | sudo grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg 15 | efibootmgr -v 16 | fi 17 | fi 18 | -------------------------------------------------------------------------------- /extra/files/ubuntu/22.04/hyperv/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/ubuntu/22.04/hyperv/meta-data -------------------------------------------------------------------------------- /extra/files/ubuntu/22.04/proxmox/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/ubuntu/22.04/proxmox/meta-data -------------------------------------------------------------------------------- /extra/files/ubuntu/22.04/uefi.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # try to deal with broken centos/ubuntu UEFI in Hyper-V 3 | 4 | # Let's find out which bootnumber we have currently in UEFI with Ubuntu label 5 | bootnum=$(efibootmgr -v|grep -i ubuntu|awk '{print $1}'|cut -c5-8) 6 | 7 | if [ -d "/boot/efi/EFI/ubuntu" ]; then 8 | echo "Ubuntu exists" 9 | # now centos exists 10 | if [ -z "$bootnum" ]; then 11 | echo "Current Ubuntu boot number equals: $bootnum" 12 | efibootmgr -b "$bootnum" -B 13 | efibootmgr --create --label Ubuntu --disk /dev/sda1 --loader "\EFI\ubuntu\shim.efi" 14 | sudo grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg 15 | efibootmgr -v 16 | fi 17 | fi 18 | -------------------------------------------------------------------------------- /extra/files/ubuntu/22.04/virtualbox/virtualbox.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "Executing scripts/virtualbox.sh" 4 | 5 | if [ -f /tmp/VBoxGuestAdditions.iso ]; then 6 | mount -o loop /tmp/VBoxGuestAdditions.iso /mnt 7 | sh /mnt/VBoxLinuxAdditions.run 8 | rc=$? 9 | umount /mnt 10 | rm -rf /tmp/VBoxGuestAdditions.iso 11 | 12 | if [ $rc -ne 0 ]; then 13 | if [ -e /var/log/VBoxGuestAdditions.log ]; then 14 | cat /var/log/VBoxGuestAdditions.log 15 | fi 16 | exit $rc 17 | else 18 | echo "Virtualbox guest addons have been installed successfully" 19 | exit 0 20 | fi 21 | else 22 | echo "No VBoxGuestAdditions.iso could be found" 23 | exit 1 24 | fi 25 | exit 0 26 | -------------------------------------------------------------------------------- /extra/files/ubuntu/23.04/proxmox/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/ubuntu/23.04/proxmox/meta-data -------------------------------------------------------------------------------- /extra/files/ubuntu/24.04/hyperv/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/ubuntu/24.04/hyperv/meta-data -------------------------------------------------------------------------------- /extra/files/ubuntu/24.04/proxmox-uefi/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/ubuntu/24.04/proxmox-uefi/meta-data -------------------------------------------------------------------------------- /extra/files/ubuntu/24.04/proxmox/meta-data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/ubuntu/24.04/proxmox/meta-data -------------------------------------------------------------------------------- /extra/files/ubuntu/24.04/uefi.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # try to deal with broken centos/ubuntu UEFI in Hyper-V 3 | 4 | # Let's find out which bootnumber we have currently in UEFI with Ubuntu label 5 | bootnum=$(efibootmgr -v|grep -i ubuntu|awk '{print $1}'|cut -c5-8) 6 | 7 | if [ -d "/boot/efi/EFI/ubuntu" ]; then 8 | echo "Ubuntu exists" 9 | # now centos exists 10 | if [ -z "$bootnum" ]; then 11 | echo "Current Ubuntu boot number equals: $bootnum" 12 | efibootmgr -b "$bootnum" -B 13 | efibootmgr --create --label Ubuntu --disk /dev/sda1 --loader "\EFI\ubuntu\shim.efi" 14 | sudo grub2-mkconfig -o /boot/efi/EFI/BOOT/grub.cfg 15 | efibootmgr -v 16 | fi 17 | fi 18 | -------------------------------------------------------------------------------- /extra/files/ubuntu/shared/common-password: -------------------------------------------------------------------------------- 1 | # 2 | # /etc/pam.d/common-password - password-related modules common to all services 3 | # 4 | # This file is included from other service-specific PAM config files, 5 | # and should contain a list of modules that define the services to be 6 | # used to change user passwords. The default is pam_unix. 7 | 8 | # Explanation of pam_unix options: 9 | # 10 | # The "sha512" option enables salted SHA512 passwords. Without this option, 11 | # the default is Unix crypt. Prior releases used the option "md5". 12 | # 13 | # The "obscure" option replaces the old `OBSCURE_CHECKS_ENAB' option in 14 | # login.defs. 15 | # 16 | # See the pam_unix manpage for other options. 17 | 18 | # As of pam 1.0.1-6, this file is managed by pam-auth-update by default. 19 | # To take advantage of this, it is recommended that you configure any 20 | # local modules either before or after the default block, and use 21 | # pam-auth-update to manage selection of other modules. See 22 | # pam-auth-update(8) for details. 23 | 24 | # here are the per-package modules (the "Primary" block) 25 | password [success=1 default=ignore] pam_unix.so sha512 minlen=1 26 | # here's the fallback if no module succeeds 27 | password requisite pam_permit.so 28 | # prime the stack with a positive return value if there isn't one already; 29 | # this avoids us returning an error just because nothing sets a success code 30 | # since the modules above will each just jump around 31 | password required pam_permit.so 32 | # and here are more per-package modules (the "Additional" block) 33 | # end of pam-auth-update config 34 | -------------------------------------------------------------------------------- /extra/files/ubuntu/shared/motd.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | neofetch --config /etc/neofetch/config.conf 3 | if [ -f ~/.Xauthority ]; then 4 | xauth merge ~/.Xauthority 5 | fi 6 | export XAUTHORITY=$HOME/.Xauthority 7 | 8 | -------------------------------------------------------------------------------- /extra/files/ubuntu/shared/prepare_neofetch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # prepare (comment/uncomment lines according to our needs) 3 | 4 | config="/etc/neofetch/config.conf" 5 | config_dir="/etc/neofetch" 6 | 7 | neofetch || true 8 | 9 | if [ ! -d $config_dir ];then 10 | echo "No $config_dir exists - creating one" 11 | mkdir -v $config_dir 12 | fi 13 | 14 | if [ ! -e $config ];then 15 | if [ -e /home/ubuntu/.config/neofetch/config.conf ];then 16 | echo "Copying config from ubuntu to /etc/neofetch" 17 | cp -pv /home/ubuntu/.config/neofetch/config.conf $config 18 | fi 19 | fi 20 | 21 | if [ -e $config ]; then 22 | echo "Starting Neofetch configuration" 23 | # comment 24 | sed -i -e 's/^[[:blank:]]*info "Packages" packages/#info "Packages" packages/g' $config 25 | sed -i -e 's/^[[:blank:]]*info "Resolution" resolution/#info "Resolution" resolution/g' $config 26 | sed -i -e 's/^[[:blank:]]*info "DE" de/#info "DE" de/g' $config 27 | sed -i -e 's/^[[:blank:]]*info "WM" wm/#info "WM" wm/g' $config 28 | sed -i -e 's/^[[:blank:]]*info "WM Theme" wm_theme/#info "WM Theme" wm_theme/g' $config 29 | sed -i -e 's/^[[:blank:]]*info "Theme" theme/#info "Theme" theme/g' $config 30 | sed -i -e 's/^[[:blank:]]*info "Icons" icons/#info "Icons" icons/g' $config 31 | sed -i -e 's/^[[:blank:]]*info "Terminal" term/#info "Terminal" term/g' $config 32 | sed -i -e 's/^[[:blank:]]*info "Terminal Font" term_font/#info "Terminal Font" term_font/g' $config 33 | sed -i -e 's/^[[:blank:]]*info cols/#info cols/g' $config 34 | # uncomment 35 | sed -i -e 's/^[[:blank:]]*# info "Disk" disk/info "Disk" disk/g' $config 36 | sed -i -e 's/^[[:blank:]]*# info "Local IP" local_ip/info "Local IP" local_ip/g' $config 37 | # disable color block - workaround for HV console 38 | sed -i -e 's/color_blocks="on"/color_blocks="off"/g' $config 39 | echo "Finished Neofetch configuration" 40 | else 41 | echo "File $config doesn't exist - couldn't configure neofetch" 42 | fi 43 | -------------------------------------------------------------------------------- /extra/files/ubuntu/shared/puppet.conf: -------------------------------------------------------------------------------- 1 | # This file can be used to override the default puppet settings. 2 | # See the following links for more details on what settings are available: 3 | # - https://docs.puppetlabs.com/puppet/latest/reference/config_important_settings.html 4 | # - https://docs.puppetlabs.com/puppet/latest/reference/config_about_settings.html 5 | # - https://docs.puppetlabs.com/puppet/latest/reference/config_file_main.html 6 | # - https://docs.puppetlabs.com/puppet/latest/reference/configuration.html 7 | runinterval = 1800 8 | server = foreman.example.com 9 | -------------------------------------------------------------------------------- /extra/files/ubuntu/shared/vagrant.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Script to manipulate vagrant user for Ubuntu distros 3 | export DEBIAN_FRONTEND=noninteractive 4 | echo "Executing scripts/vagrant.sh" 5 | useradd --badnames -m -U -p "$(echo "vagrant" | openssl passwd -1 -stdin)" -s /bin/bash vagrant 6 | echo "Executing scripts/vagrant.sh - adding password" 7 | mkdir -p 700 /home/vagrant/.ssh 8 | curl -sL https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub -o /home/vagrant/.ssh/authorized_keys 9 | chmod -v 0600 /home/vagrant/.ssh/authorized_keys 10 | chown -v -R vagrant:vagrant /home/vagrant/.ssh 11 | cat > /etc/sudoers.d/vagrant << EOF_sudoers_vagrant 12 | vagrant ALL=(ALL) NOPASSWD: ALL 13 | Defaults:vagrant !requiretty 14 | EOF_sudoers_vagrant 15 | chmod -v 0440 /etc/sudoers.d/vagrant 16 | /bin/sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers 17 | if [ -f /etc/pam.d/common-password.bak ]; then 18 | echo "Restoring original common-password" 19 | mv -fv /etc/pam.d/common-password.bak /etc/pam.d/common-password 20 | rm -rfv /etc/pam.d/*.bak 21 | fi 22 | echo "End of scripts/vagrant.sh" 23 | -------------------------------------------------------------------------------- /extra/files/ubuntu/shared/zeroing.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Zeroing 3 | echo "Zeroing phase" 4 | time dd if=/dev/zero|pv -treb|dd of=/file.zero bs=4096;sync;sync;rm -rfv /file.zero;sync;sync 5 | rm -rfv /file.zero||true 6 | echo "Zeroing done" 7 | -------------------------------------------------------------------------------- /extra/files/windows/2019/hyperv/dc/unattend.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | true 7 | true 8 | true 9 | true 10 | Work 11 | 12 | 13 | 14 | 0c0a:00000c0a 15 | es-US 16 | es-US 17 | es-US 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /extra/files/windows/2019/hyperv/std/unattend.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | true 7 | true 8 | true 9 | true 10 | Work 11 | 12 | 13 | 14 | 0c0a:00000c0a 15 | es-US 16 | es-US 17 | es-US 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /extra/files/windows/2019/proxmox/unattend.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | en-US 7 | 8 | 0409:00000409 9 | en-US 10 | en-US 11 | en-US 12 | 13 | 14 | 15 | 16 | windows-2019 17 | 18 | 19 | 20 | 21 | 22 | true 23 | Work 24 | 1 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extra/files/windows/2022/hyperv/dc/unattend.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | true 7 | true 8 | true 9 | true 10 | Work 11 | 12 | 13 | 14 | 0c0a:00000c0a 15 | es-US 16 | es-US 17 | es-US 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /extra/files/windows/2022/hyperv/std/unattend.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | true 7 | true 8 | true 9 | true 10 | Work 11 | 12 | 13 | 14 | 0c0a:00000c0a 15 | es-US 16 | es-US 17 | es-US 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /extra/files/windows/2022/proxmox/unattend.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | en-US 7 | 8 | 0409:00000409 9 | en-US 10 | en-US 11 | en-US 12 | 13 | 14 | 15 | 16 | windows-2022 17 | 18 | 19 | 20 | 21 | 22 | true 23 | Work 24 | 1 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /extra/files/windows/scagent/1.0.3.1028/scvmmguestagent.1.0.3.1028.x64.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/windows/scagent/1.0.3.1028/scvmmguestagent.1.0.3.1028.x64.tar -------------------------------------------------------------------------------- /extra/files/windows/scagent/1.0.3.1028/scvmmguestagent.1.0.3.1028.x86.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/files/windows/scagent/1.0.3.1028/scvmmguestagent.1.0.3.1028.x86.tar -------------------------------------------------------------------------------- /extra/playbooks/requirements.yml: -------------------------------------------------------------------------------- 1 | --- 2 | collections: 3 | - name: ansible.posix 4 | - name: community.general 5 | - name: community.crypto 6 | -------------------------------------------------------------------------------- /extra/scripts/azure/bootstrap.cmd: -------------------------------------------------------------------------------- 1 | net user /add adpacker xBph2L?h 2 | net localgroup administrators adpacker /add 3 | PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList 'Set-ExecutionPolicy Bypass -Force' -Verb RunAs}" 4 | 5 | -------------------------------------------------------------------------------- /extra/scripts/azure/bootstrap.ps1: -------------------------------------------------------------------------------- 1 | # Create new azure admin user 2 | Write-Output "Bootstrap: Start" 3 | Get-ExecutionPolicy -Verbose 4 | Import-Module ServerManager 5 | $username="adpacker" 6 | $secure_pwd = ConvertTo-SecureString 'xBph2L?h' -AsPlainText -Force 7 | Remove-LocalUser -Name $username -ErrorAction SilentlyContinue -Verbose 8 | try { 9 | New-LocalUser $username -Password $secure_pwd -FullName $username -Description "packer azure deploy user" -Verbose 10 | Add-LocalGroupMember -Group "Administrators" -Member $username -Verbose 11 | } 12 | catch { 13 | Write-Output "Adding user $username failed" 14 | } 15 | 16 | Write-Output "Bootstrap: End" -------------------------------------------------------------------------------- /extra/scripts/azure/post-phase-4.ps1: -------------------------------------------------------------------------------- 1 | # remove deploy user 2 | Write-Output "Post-Phase-4: Start" 3 | $username="adpacker" 4 | try { 5 | Get-WMIObject -Class Win32_UserProfile | Where-Object {($_.LocalPath -like "*$username*")} | Remove-WMIObject -Verbose 6 | Write-Output "Profile of $username removed" 7 | } 8 | catch { 9 | Write-Output "Failure in removing WMI profile for: $username" 10 | } 11 | 12 | try { 13 | Remove-LocalUser -Name $username -ErrorAction SilentlyContinue -Verbose 14 | Write-Output "Account of $username removed" 15 | } 16 | catch { 17 | Write-Output "Failure in removing local user: $username" 18 | } 19 | Write-Output "Post-Phase-4: End" 20 | -------------------------------------------------------------------------------- /extra/scripts/hyper-v/bootstrap.ps1: -------------------------------------------------------------------------------- 1 | # This script is called from the answerfile 2 | 3 | # You cannot enable Windows PowerShell Remoting on network connections that are set to Public 4 | # http://msdn.microsoft.com/en-us/library/windows/desktop/aa370750(v=vs.85).aspx 5 | # http://blogs.msdn.com/b/powershell/archive/2009/04/03/setting-network-location-to-private.aspx 6 | 7 | #Write-Host "Copy unattend.xml to C:\Windows\Panther\Unattend\" 8 | #New-Item C:\Windows\Panther\Unattend -Type Directory 9 | 10 | # Get network connections 11 | $networkListManager = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]'{DCB00C01-570F-4A9B-8D69-199FDBA5723B}')) 12 | $connections = $networkListManager.GetNetworkConnections() 13 | 14 | $connections |ForEach-Object { 15 | Write-Host "Setting network config" 16 | $_.GetNetwork().GetName() + 'category was previously set to' + $_.GetNetwork().GetCategory() | Out-File c:\windows\temp\logfile.txt 17 | $_.GetNetwork().SetCategory(1) 18 | $_.GetNetwork().GetName() + 'change to ' + $_.GetNetwork().GetCategory() | Out-File C:\windows\temp\logfile.txt -Append 19 | } 20 | 21 | Function Enable-WinRM { 22 | Write-Host "Enable WinRM" 23 | netsh advfirewall firewall set rule group="remote administration" new enable=yes 24 | netsh advfirewall firewall add rule name="WinRM open Port 5985" dir=in action=allow protocol=TCP localport=5985 25 | 26 | winrm quickconfig -q 27 | winrm quickconfig -transport:http 28 | winrm set winrm/config '@{MaxTimeoutms="7200000"}' 29 | winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="0"}' 30 | winrm set winrm/config/winrs '@{MaxProcessesPerShell="0"}' 31 | winrm set winrm/config/winrs '@{MaxShellsPerUser="0"}' 32 | winrm set winrm/config/service '@{AllowUnencrypted="true"}' 33 | winrm set winrm/config/service/auth '@{Basic="true"}' 34 | winrm set winrm/config/client/auth '@{Basic="true"}' 35 | 36 | net stop winrm 37 | sc.exe config winrm start= auto 38 | net start winrm 39 | 40 | } 41 | 42 | Get-WmiObject -Class Win32_UserAccount -Filter "name = 'Administrator'" | Set-WmiInstance -Arguments @{PasswordExpires = 0 } 43 | Enable-WinRM 44 | -------------------------------------------------------------------------------- /extra/scripts/oci/bootstrap.ps1: -------------------------------------------------------------------------------- 1 | 2 | net user opc "P@$$w0rd" /logonpasswordchg:no /active:yes 3 | netsh advfirewall firewall set rule group="remote administration" new enable=yes 4 | netsh advfirewall firewall add rule name="WinRM open Port 5985" dir=in action=allow protocol=TCP localport=5985 5 | winrm quickconfig -q 6 | winrm quickconfig -transport:http 7 | winrm set winrm/config '@{MaxTimeoutms="7200000"}' 8 | winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="0"}' 9 | winrm set winrm/config/winrs '@{MaxProcessesPerShell="0"}' 10 | winrm set winrm/config/winrs '@{MaxShellsPerUser="0"}' 11 | winrm set winrm/config/service '@{AllowUnencrypted="true"}' 12 | winrm set winrm/config/service/auth '@{Basic="true"}' 13 | winrm set winrm/config/client/auth '@{Basic="true"}' 14 | net stop winrm 15 | sc.exe config winrm start= auto 16 | net start winrm -------------------------------------------------------------------------------- /extra/scripts/virtualbox/bootstrap.ps1: -------------------------------------------------------------------------------- 1 | # This script is called from the answerfile 2 | 3 | # You cannot enable Windows PowerShell Remoting on network connections that are set to Public 4 | # http://msdn.microsoft.com/en-us/library/windows/desktop/aa370750(v=vs.85).aspx 5 | # http://blogs.msdn.com/b/powershell/archive/2009/04/03/setting-network-location-to-private.aspx 6 | 7 | Write-Output "Bootstrap: Copy Autounattend.xml to C:\Windows\Panther\Unattend\" 8 | New-Item C:\Windows\Panther\Unattend -Type Directory 9 | New-Item c:\Scripts -Type Directory 10 | Copy-Item f:\Autounattend.xml C:\Windows\Panther\Unattend\unattend.xml -Force 11 | New-Item -Path 'C:\Windows\Setup\Scripts' -ItemType Directory -Force 12 | try { 13 | Write-Output "Bootstrap: Copy certificates" 14 | Copy-Item f:\vbox-sha256.cer c:\Scripts -Force 15 | Copy-Item f:\vbox-sha1.cer c:\Scripts -Force 16 | certutil -addstore -f "TrustedPublisher" c:\Scripts\vbox-sha256.cer 17 | certutil -addstore -f "TrustedPublisher" c:\Scripts\vbox-sha1.cer 18 | } 19 | 20 | catch { 21 | Write-Output "Bootstrap failed" 22 | } 23 | 24 | # Get network connections 25 | $networkListManager = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]'{DCB00C01-570F-4A9B-8D69-199FDBA5723B}')) 26 | $connections = $networkListManager.GetNetworkConnections() 27 | 28 | $connections |ForEach-Object { 29 | Write-Host "Bootstrap: Setting network config" 30 | $_.GetNetwork().GetName() + 'category was previously set to' + $_.GetNetwork().GetCategory() | Out-File c:\windows\temp\logfile.txt 31 | $_.GetNetwork().SetCategory(1) 32 | $_.GetNetwork().GetName() + 'change to ' + $_.GetNetwork().GetCategory() | Out-File C:\windows\temp\logfile.txt -Append 33 | } 34 | 35 | Function Enable-WinRM { 36 | Write-Host "Bootstrap: Enable WinRM" 37 | netsh advfirewall firewall set rule group="remote administration" new enable=yes 38 | netsh advfirewall firewall add rule name="Open Port 5985" dir=in action=allow protocol=TCP localport=5985 39 | Write-Output "Bootstrap: Configuring WinRM" 40 | winrm quickconfig -q 41 | winrm quickconfig -transport:http 42 | winrm set winrm/config '@{MaxTimeoutms="7200000"}' 43 | winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="0"}' 44 | winrm set winrm/config/winrs '@{MaxProcessesPerShell="0"}' 45 | winrm set winrm/config/winrs '@{MaxShellsPerUser="0"}' 46 | winrm set winrm/config/service '@{AllowUnencrypted="true"}' 47 | winrm set winrm/config/service/auth '@{Basic="true"}' 48 | winrm set winrm/config/client/auth '@{Basic="true"}' 49 | Write-Output "Bootstrap: Setting WinRM to autostart" 50 | net stop winrm 51 | sc.exe config winrm start= auto 52 | net start winrm 53 | } 54 | 55 | Get-WmiObject -Class Win32_UserAccount -Filter "name = 'vagrant'" | Set-WmiInstance -Arguments @{PasswordExpires = 0 } 56 | Enable-WinRM 57 | Write-Output "Bootstrap: End" -------------------------------------------------------------------------------- /extra/scripts/virtualbox/generalize.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Starting Phase 5a - Generalize and prepare sysprep scripts" 2 | New-Item -Path 'C:\Windows\Setup\Scripts' -ItemType Directory -Force 3 | 4 | # Initialize variable to check if Guest Additions are installed 5 | $vboxGuestInstalled = $false 6 | 7 | # Function to install VirtualBox Guest Additions 8 | function Install-VBoxGuestAdditions { 9 | param ( 10 | [string]$driveLetter 11 | ) 12 | $installerPath = "${driveLetter}:\VBoxWindowsAdditions.exe" 13 | if (Test-Path $installerPath) { 14 | Write-Host "Found VBoxWindowsAdditions.exe at $installerPath" 15 | Write-Host "Installing Virtualbox Guest Additions from $installerPath" 16 | & $installerPath /S 17 | if ($?) { 18 | Write-Host "Installation successful. Sleeping for 60 seconds to ensure completion." 19 | Start-Sleep -s 60 20 | $global:vboxGuestInstalled = $true 21 | } else { 22 | Write-Output "Error occurred during installation from $installerPath." 23 | } 24 | } else { 25 | Write-Output "VBoxWindowsAdditions.exe not found at $installerPath" 26 | } 27 | } 28 | 29 | 30 | 31 | 32 | # Enumerate all drives and attempt to install Guest Additions from the first match 33 | Get-PSDrive -PSProvider 'FileSystem' | ForEach-Object { 34 | if (-not $vboxGuestInstalled) { 35 | Install-VBoxGuestAdditions -driveLetter $_.Name 36 | } 37 | $vboxGuestInstalled=$true 38 | } 39 | 40 | 41 | 42 | Write-Output "Ending Phase 5a - Generalize and prepare sysprep scripts" 43 | if ($vboxGuestInstalled) { 44 | Write-Output "Virtualbox Guest Additions installed successfully." 45 | exit 0 46 | } else { 47 | Write-Output "Virtualbox Guest Addition installation failed - exiting." 48 | exit -1 49 | } 50 | -------------------------------------------------------------------------------- /extra/scripts/virtualbox/setupcomplete.cmd: -------------------------------------------------------------------------------- 1 | :: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc766314(v=ws.10) 2 | :: Things that should be done after system starts 3 | cmd.exe /c sc config winrm start=auto 4 | cmd.exe /c net start winrm 5 | -------------------------------------------------------------------------------- /extra/scripts/virtualbox/sysprep.cmd: -------------------------------------------------------------------------------- 1 | sc config winrm start=auto 2 | C:/windows/system32/sysprep/sysprep.exe /generalize /oobe /quiet /shutdown 3 | 4 | -------------------------------------------------------------------------------- /extra/scripts/virtualbox/vbox-sha1.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/scripts/virtualbox/vbox-sha1.cer -------------------------------------------------------------------------------- /extra/scripts/virtualbox/vbox-sha256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/extra/scripts/virtualbox/vbox-sha256.cer -------------------------------------------------------------------------------- /extra/scripts/windows/shared/extend-trial.cmd: -------------------------------------------------------------------------------- 1 | slmgr -rearm 2 | -------------------------------------------------------------------------------- /extra/scripts/windows/shared/phase-2.ps1: -------------------------------------------------------------------------------- 1 | # Phase 2 - generic and essential stuff 2 | $goterror=0 3 | $packages=@("sysinternals","dotnetfx") 4 | $packages_count=$packages.Count 5 | $packages_attempt=1 6 | $packages_success=$false 7 | $packages_success_count=0 8 | $packages_attempt_max=10 9 | $packages_exit_codes=@(0,1605,1614,1641,3010) 10 | 11 | 12 | Write-Output "Phase 2 [START] - Start of Phase 2" 13 | [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 14 | try { 15 | Set-TimeZone -Id "Central European Standard Time" -Verbose 16 | } 17 | catch { 18 | Write-Output "Phase 2 [INFO] - set timezone went wrong" 19 | $goterror=1 20 | } 21 | try { 22 | Write-Output "Phase 2 [INFO] - Setting high performance power plan" 23 | powercfg.exe /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 24 | } 25 | catch { 26 | Write-Output "Phase 2 [ERROR] - Set powercfg went wrong" 27 | $goterror=1 28 | } 29 | choco feature enable -n allowEmptyChecksums 30 | choco feature enable -name=usePackageExitCodes 31 | Write-Output "Phase 2 [INFO] - Chocolatey packagess installing, $packages_count to go" 32 | #safely install packages 33 | foreach ($package in $packages) { 34 | $packages_attempt=1 35 | $packages_success=$false 36 | do { 37 | try { 38 | Write-Output "Phase 2 [INFO] - Chocolatey installing $package attempt nr. $packages_attempt of $packages_attempt_max" 39 | choco upgrade $package -y --no-progress --limit-output 40 | Write-Output "Phase 2 [INFO] - Chocolatey installing $package attempt nr. $packages_attempt exit code: $LASTEXITCODE" 41 | if ($packages_exit_codes.Contains($LASTEXITCODE)) { 42 | $packages_success=$true 43 | $packages_success_count++ 44 | Write-Output "Phase 2 [INFO] - Chocolatey installing $package installed succesfuly in $packages_attempt attempt of $packages_attempt_max" 45 | } 46 | else { 47 | $goterror=1 48 | } 49 | } 50 | catch { 51 | Write-Output "Phase 2 [INFO] - Packages installing retry nr. $packages_attempt of $packages_attempt_max " 52 | } 53 | $packages_attempt++ 54 | } 55 | until ($packages_attempt -eq $packages_attempt_max -or $packages_success) 56 | } 57 | if (-not $packages_success) { 58 | $goterror=1 59 | Write-Output "Phase 2 [ERROR] - chocolatey packages installation went wrong" 60 | Write-Output "Phase 2 [WARN] - End of Phase 2 Succesfuly installed $packages_success_count of $packages_count" 61 | exit (1) 62 | } 63 | Write-Output "Phase 2 [INFO] - Succesfuly installed $packages_success_count of $packages_count" 64 | Write-Output "Phase 2 [END] - End of Phase 2" 65 | if ($goterror) { 66 | Write-Output "Phase 2 [ERROR] - something went wrong" 67 | exit (1) 68 | } 69 | else { 70 | exit 0 71 | } 72 | -------------------------------------------------------------------------------- /extra/scripts/windows/shared/phase-5a.software.ps1: -------------------------------------------------------------------------------- 1 | # Post updates entries, not required to do a reboot 2 | Write-Output "Phase 5a [START] - Software" 3 | [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 4 | #install Tabby 5 | choco install tabby -y --ia="/ALLUSERS /S" --no-progress --limit-output 6 | if (Test-Path ("$Env:ProgramFiles\Tabby")) { 7 | Write-Output "Phase 5a - adding paths for Tabby" 8 | [Environment]::SetEnvironmentVariable("Path",[Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::Machine) + ";$Env:ProgramFiles\Tabby",[EnvironmentVariableTarget]::Machine) 9 | } 10 | choco upgrade all -y 11 | Write-Output "Phase 5a [END]- Software" 12 | 13 | -------------------------------------------------------------------------------- /extra/scripts/windows/shared/phase-5c.vagrant.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Phase 5c [START] - Vagrant" 2 | # Create Vagrant account 3 | [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 4 | # Disable UAC 5 | reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /d 0 /t REG_DWORD /f /reg:64 6 | # Disable password complexity 7 | secedit /export /cfg c:\secpol.cfg 8 | (Get-Content C:\secpol.cfg) -Replace "PasswordComplexity = 1","PasswordComplexity = 0" | Out-File C:\secpol.cfg 9 | secedit /configure /db c:\windows\security\local.sdb /cfg c:\secpol.cfg /areas SECURITYPOLICY 10 | Remove-Item C:\secpol.cfg -Force 11 | # Create user 12 | $Password = ConvertTo-SecureString "vagrant" -AsPlainText -Force -Verbose 13 | New-LocalUser "vagrant" -Password $Password -FullName "vagrant" -Description "Vagrant user" 14 | Add-LocalGroupMember -Group "Administrators" -Member "vagrant" 15 | Write-Output "Phase 5c [END] - Vagrant" 16 | -------------------------------------------------------------------------------- /extra/scripts/windows/shared/phase-5d.windows-compress.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Phase-5d [START] - Cleaning/zeroing/compacting" 2 | [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 3 | 4 | # Clean WU downloads 5 | try { 6 | Stop-Service -Name wuauserv -Force -Verbose -ErrorAction SilentlyContinue 7 | Start-Sleep -Seconds 10 8 | Stop-Service -Name cryptsvc -Force -Verbose -ErrorAction SilentlyContinue 9 | Start-Sleep -Seconds 10 10 | if (Test-Path -Path "$env:systemroot\SoftwareDistribution\Download" ) { 11 | Write-Output "Phase-5d [INFO]: Cleaning updates.." 12 | Remove-Item "$env:systemroot\SoftwareDistribution\Download\*" -Recurse -Force -Verbose -ErrorAction SilentlyContinue 13 | } 14 | if (Test-Path -Path "$env:systemroot\Prefetch") { 15 | Write-Output "Phase-5d [INFO]: Cleaning prefetch.." 16 | Remove-Item "$env:systemroot\Prefetch\*.*" -Recurse -Force -Verbose -ErrorAction SilentlyContinue 17 | } 18 | } 19 | catch { 20 | Write-Output "Phase-5d [WARN]: Cleaning failed.." 21 | } 22 | 23 | # Disable Windows Error Reporting 24 | Disable-WindowsErrorReporting -ErrorAction SilentlyContinue 25 | # remove logs 26 | wevtutil el | Foreach-Object {wevtutil cl "$_"} 27 | 28 | # resetbase/thin winsxs 29 | dism /online /cleanup-image /StartComponentCleanup /ResetBase 30 | dism /online /cleanup-Image /SPSuperseded 31 | 32 | # Remove leftovers from deploy 33 | if ((Test-Path -Path "$env:systemroot\Temp") -and ("$env:systemroot")) { 34 | Write-Output "Phase-5d [INFO]: Cleaning TEMP" 35 | Remove-Item $env:systemroot\Temp\* -Exclude "packer-*","script-*" -Recurse -Force -ErrorAction SilentlyContinue 36 | } 37 | 38 | # optimize disk 39 | Write-Output "Phase-5d [INFO] Defragging.." 40 | if (Get-Command Optimize-Volume -ErrorAction SilentlyContinue) { 41 | Optimize-Volume -DriveLetter C -Defrag -verbose 42 | } else { 43 | Defrag.exe c: /H 44 | } 45 | 46 | Write-Output "Phase-5d [INFO] Zeroing out empty space..." 47 | $startDTM = (Get-Date) 48 | $FilePath="c:\zero.tmp" 49 | $Volume = Get-WmiObject win32_logicaldisk -filter "DeviceID='C:'" 50 | $ArraySize= 4096kb 51 | $SpaceToLeave= $Volume.Size * 0.001 52 | $FileSize= $Volume.FreeSpace - $SpacetoLeave 53 | $ZeroArray= new-object byte[]($ArraySize) 54 | 55 | $Stream= [io.File]::OpenWrite($FilePath) 56 | try { 57 | $CurFileSize = 0 58 | while($CurFileSize -lt $FileSize) { 59 | $Stream.Write($ZeroArray,0, $ZeroArray.Length) 60 | $CurFileSize +=$ZeroArray.Length 61 | } 62 | } 63 | finally { 64 | if($Stream) { 65 | $Stream.Close() 66 | } 67 | } 68 | Remove-Item $FilePath -Recurse -Force -ErrorAction SilentlyContinue 69 | $endDTM = (Get-Date) 70 | Write-Output "Phase 5d [INFO] Zeroing took: $(($endDTM-$startDTM).totalseconds) seconds" 71 | 72 | Write-Output "Phase-5d [END]" 73 | exit 0 -------------------------------------------------------------------------------- /images/token.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcinbojko/proxmox-kvm-packer/e148779626d1e6b20c57afae4bb30f1849df7836/images/token.png -------------------------------------------------------------------------------- /kvm/variables_kvm_almalinux-8.10.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/8/kvm/ks-kvm.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:463fa92155b886e31627f6713e1c2824343762245a914715ffd6f2efc300b7a1" 9 | iso_url = "https://repo.almalinux.org/almalinux/8.10/isos/x86_64/AlmaLinux-8.10-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "almalinux-8.10-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_almalinux-8.7.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/8/kvm/ks-kvm.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:b95ddf9d56a849cc8eb4b95dd2321c13af637d3379b91f5d96c39e96fb4403b3" 9 | iso_url = "https://repo.almalinux.org/vault/8.7/isos/x86_64/AlmaLinux-8.7-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "almalinux-8.7-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_almalinux-8.8.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/8/kvm/ks-kvm.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:635b30b967b509a32a1a3d81401db9861922acb396d065922b39405a43a04a31" 9 | iso_url = "https://ftp.psnc.pl/linux/almalinux/8.8/isos/x86_64/AlmaLinux-8.8-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "almalinux-8.8-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_almalinux-8.9.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/8/kvm/ks-kvm.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:f4d536fd1512fdf1936a8305454239bdcc9020f1b633d0ef37f1ff34a396b8d5" 9 | iso_url = "https://repo.almalinux.org/almalinux/8.9/isos/x86_64/AlmaLinux-8.9-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "almalinux-8.9-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_almalinux-9.0.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:6617436f8f2ee5408ff448a4eedce4ce61e2fdb3153a646b875010256bc9fd6b" 9 | iso_url = "https://repo.almalinux.org/vault/9.0/isos/x86_64/AlmaLinux-9.0-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "almalinux-9.0-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_almalinux-9.1.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:2a44e3f8a012c132da19b9aae2bf949e20b116f0a2a7ac3eca111972f4ac952f" 9 | iso_url = "https://repo.almalinux.org/vault/9.1/isos/x86_64/AlmaLinux-9.1-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "almalinux-9.1-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_almalinux-9.2.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:00c91b923997c44822595998deb0cebcfaa53e93c2bed8745b04516badff431f" 9 | iso_url = "https://ftp.psnc.pl/linux/almalinux/9.2/isos/x86_64/AlmaLinux-9.2-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "almalinux-9.2-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_almalinux-9.3.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:4a8c4ed4b79edd0977d7f88be7c07e12c4b748671a7786eb636c6700e58068d5" 9 | iso_url = "https://repo.almalinux.org/almalinux/9.3/isos/x86_64/AlmaLinux-9.3-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "almalinux-9.3-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_almalinux-9.4.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:34c4285d524605da6dbd76b0b475338f6ea0a28bb88929bf14b04db68f1e1620" 9 | iso_url = "https://repo.almalinux.org/almalinux/9.4/isos/x86_64/AlmaLinux-9.4-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "almalinux-9.4-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_oraclelinux-8.10.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:7676a80eeaafa16903eebb2abba147a3afe230b130cc066d56fdd6854d8da900" 9 | iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL8/u10/x86_64/OracleLinux-R8-U10-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "oraclelinux-8.10-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_oraclelinux-8.6.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:988969accaddd7fbf4f7ddced16c1b69d3e5c097435fcb2474426936a9c52aeb" 9 | iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL8/u6/x86_64/OracleLinux-R8-U6-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "oraclelinux-7.8-x86_64" -------------------------------------------------------------------------------- /kvm/variables_kvm_oraclelinux-8.7.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:dd6ede6c0597189b7dffb800b32835002bd95f19c254734aeb58f58651aa03fb" 9 | iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL8/u7/x86_64/OracleLinux-R8-U7-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "oraclelinux-8.7-x86_64" -------------------------------------------------------------------------------- /kvm/variables_kvm_oraclelinux-8.8.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:cae39116245ff7c3c86d5305d9c11430ce5c4e512987563435ac59c37a082d7e" 9 | iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL8/u8/x86_64/OracleLinux-R8-U8-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "oraclelinux-8.8-x86_64" -------------------------------------------------------------------------------- /kvm/variables_kvm_oraclelinux-8.9.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:ce90b598be2e9889fa880128fc53b3e9c1f95d9e31859759e5e180602312c181" 9 | iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL8/u9/x86_64/OracleLinux-R8-U9-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "oraclelinux-8.9-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_oraclelinux-9.0.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/kvm/ks-kvm.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:d5fe339e2f6c4bc157e294bd218eb49c1a920473cae552fb00cfc8978ead3d67" 9 | iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL9/u0/x86_64/OracleLinux-R9-U0-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "oraclelinux-9.0-x86_64" -------------------------------------------------------------------------------- /kvm/variables_kvm_oraclelinux-9.1.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/kvm/ks-kvm.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:a46ac0b717881a2673c7dc981b3219f6dea747e3d6bd18908fcb8c1f42b82786" 9 | iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL9/u1/x86_64/OracleLinux-R9-U1-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "oraclelinux-9.1-x86_64" -------------------------------------------------------------------------------- /kvm/variables_kvm_oraclelinux-9.2.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/kvm/ks-kvm.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:cac3c41cc2d3467ba8902a5d74575bcf460f129634d5a0d1d67d87094dd70b09" 9 | iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL9/u2/x86_64/OracleLinux-R9-U2-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "oraclelinux-9.2-x86_64" -------------------------------------------------------------------------------- /kvm/variables_kvm_oraclelinux-9.3.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/kvm/ks-kvm.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:242f0ecc37417995137507862cb170215c0b5bd512c47badd16b623686ef39e2" 9 | iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL9/u3/x86_64/OracleLinux-R9-U3-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "oraclelinux-9.3-x86_64" -------------------------------------------------------------------------------- /kvm/variables_kvm_oraclelinux-9.4.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/kvm/ks-kvm.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:77034a4945474cb7c77820bd299cac9a557b8a298a5810c31d63ce404ad13c5e" 9 | iso_url = "https://yum.oracle.com/ISOS/OracleLinux/OL9/u4/x86_64/OracleLinux-R9-U4-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "oraclelinux-9.4-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_rockylinux-8.10.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/8/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:642ada8a49dbeca8cca6543b31196019ee3d649a0163b5db0e646c7409364eeb" 9 | iso_url = "https://download.rockylinux.org/pub/rocky/8/isos/x86_64/Rocky-8.10-x86_64-dvd1.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "rockylinux-8.10-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_rockylinux-8.7.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/8/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:4827dce1c58560d3ca470a5053e8d86ba059cbb77cfca3b5f6a5863d2aac5b84" 9 | iso_url = "https://dl.rockylinux.org/vault/rocky/8.7/isos/x86_64/Rocky-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "rockylinux-8.7-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_rockylinux-8.8.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/8/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:7b8bdfe189cf24ae5c2d6a88f7a0b5f3012d23f9332c47943d538b4bc03a3704" 9 | iso_url = "https://ftp.psnc.pl/linux/rockylinux/8.8/isos/x86_64/Rocky-x86_64-dvd1.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "rockylinux-8.8-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_rockylinux-8.9.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/8/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:1abe38fd11279879e3e7658ef748c1ef06ee763351a53bb424020ec053c50d0b" 9 | iso_url = "https://ftp.psnc.pl/linux/rockylinux/8.9/isos/x86_64/Rocky-x86_64-dvd1.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "rockylinux-8.9-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_rockylinux-9.0.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:6fe05fb0992d0ed2e131da669e308bb10e8f5672ad5c0a1ec331ca3006d24493" 9 | iso_url = "https://dl.rockylinux.org/vault/rocky/9.0/isos/x86_64/Rocky-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "rockylinux-9.1-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_rockylinux-9.1.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:d490bac0fbc08b5621b8d5c861fb6e2ac0c46fa6b78cc3858d8594c56d65d5cb" 9 | iso_url = "https://dl.rockylinux.org/vault/rocky/9.1/isos/x86_64/Rocky-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "rockylinux-9.1-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_rockylinux-9.2.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:cd43bb2671472471b1fc0a7a30113dfc9a56831516c46f4dbd12fb43bb4286d2" 9 | iso_url = "https://ftp.psnc.pl/linux/rockylinux/9.2/isos/x86_64/Rocky-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "rockylinux-9.2-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_rockylinux-9.3.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:82441c7c9630b313d4183106231b08e192382bb6c7827e62acd467a749f030b9" 9 | iso_url = "https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.3-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "rockylinux-9.3-x86_64" 16 | -------------------------------------------------------------------------------- /kvm/variables_kvm_rockylinux-9.4.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/kvm/ks.cfg" 2 | cpus = "4" 3 | cloud_init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 4 | disk_interface = "virtio" 5 | disk_size = "60G" 6 | format = "qcow2" 7 | headless = false 8 | iso_checksum = "sha256:e20445907daefbfcdb05ba034e9fc4cf91e0e8dc164ebd7266ffb8fdd8ea99e7" 9 | iso_url = "https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.4-x86_64-dvd.iso" 10 | memory = "4096" 11 | net_device = "virtio-net" 12 | shutdown_command = "sudo -S /sbin/halt -h -p" 13 | ssh_password = "password" 14 | ssh_username = "root" 15 | template = "rockylinux-9.4-x86_64" 16 | -------------------------------------------------------------------------------- /proxmox/variables_almalinux810.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma8_variables.yml", "-e", "@variables/almalinux8.yml","--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/8/proxmox/ks.cfgesc" 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/AlmaLinux-8.10-x86_64-dvd.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | qemu_agent = true 30 | scsi_controller = "virtio-scsi-single" 31 | sockets = "1" 32 | ssh_password = "password" 33 | ssh_username = "root" 34 | task_timeout = "20m" 35 | template = "almalinux8.10" 36 | unmount_iso = true 37 | -------------------------------------------------------------------------------- /proxmox/variables_almalinux810_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/8/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "almalinux8.10.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_almalinux88.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma8_variables.yml", "-e", "@variables/almalinux8.yml","-e", "{\"install_updates\": false}", "--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/8/proxmox/ks.cfgesc" 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/AlmaLinux-8.8-x86_64-dvd.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | qemu_agent = true 30 | scsi_controller = "virtio-scsi-single" 31 | sockets = "1" 32 | ssh_password = "password" 33 | ssh_username = "root" 34 | task_timeout = "20m" 35 | template = "almalinux8.8" 36 | unmount_iso = true 37 | -------------------------------------------------------------------------------- /proxmox/variables_almalinux88_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/8/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "almalinux8.8.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_almalinux89.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma8_variables.yml", "-e", "@variables/almalinux8.yml","-e", "{\"install_updates\": false}", "--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/8/proxmox/ks.cfgesc" 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/AlmaLinux-8.9-x86_64-dvd.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | qemu_agent = true 30 | scsi_controller = "virtio-scsi-single" 31 | sockets = "1" 32 | ssh_password = "password" 33 | ssh_username = "root" 34 | task_timeout = "20m" 35 | template = "almalinux8.9" 36 | unmount_iso = true 37 | -------------------------------------------------------------------------------- /proxmox/variables_almalinux89_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/8/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "almalinux8.9.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_almalinux92.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma9_variables.yml", "-e", "@variables/almalinux9.yml", "-e", "{\"install_updates\": false}", "--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/AlmaLinux-9.2-x86_64-dvd.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "almalinux9.2" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_almalinux92_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "almalinux9.2.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_almalinux93.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma9_variables.yml", "-e", "@variables/almalinux9.yml","-e", "{\"install_updates\": false}","--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/AlmaLinux-9.3-x86_64-dvd.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "almalinux9.3" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_almalinux93_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "almalinux9.3.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_almalinux94.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma9_variables.yml", "-e", "@variables/almalinux9.yml","--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/AlmaLinux-9.4-x86_64-dvd.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "almalinux9.4" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_almalinux94_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/almalinux/9/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "almalinux9.4.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_opensuse_leap_15_5.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma8_variables.yml", "-e", "@variables/almalinux8.yml","--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = " linux textmode=1 autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/opensuse_leap/15/proxmox/bios/autoinst.xml " 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/suse/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/openSUSE-Leap-15.5-DVD-x86_64-Build491.1-Media.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | qemu_agent = true 30 | scsi_controller = "virtio-scsi-single" 31 | sockets = "1" 32 | ssh_password = "password" 33 | ssh_username = "root" 34 | task_timeout = "20m" 35 | template = "opensuse-leap-15.5" 36 | unmount_iso = true 37 | -------------------------------------------------------------------------------- /proxmox/variables_opensuse_leap_15_5_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | #boot_command = " linux textmode=1 netsetup=dhcp autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/opensuse_leap/15/proxmox/uefi/autoinst1.xml " 2 | boot_command = " c setparams 'Installation' linuxefi /boot/x86_64/loader/linux autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/opensuse_leap/15/proxmox/uefi/autoinst.xml initrd /boot/x86_64/loader/initrd boot" 3 | efi_storage_pool = "zfs" 4 | efi_type = "4m" 5 | pre_enrolled_keys = "true" 6 | bios = "ovmf" 7 | machine = "q35" 8 | use_efi = "true" 9 | template = "opensuse-leap-15.5.uefi" 10 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_opensuse_leap_15_6.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma8_variables.yml", "-e", "@variables/almalinux8.yml","--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = " linux textmode=1 autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/opensuse_leap/15/proxmox/bios/autoinst.xml " 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/suse/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/openSUSE-Leap-15.6-DVD-x86_64-Build709.1-Media.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | qemu_agent = true 30 | scsi_controller = "virtio-scsi-single" 31 | sockets = "1" 32 | ssh_password = "password" 33 | ssh_username = "root" 34 | task_timeout = "20m" 35 | template = "opensuse-leap-15.6" 36 | unmount_iso = true 37 | -------------------------------------------------------------------------------- /proxmox/variables_opensuse_leap_15_6_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'Installation' linuxefi /boot/x86_64/loader/linux autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/opensuse_leap/15/proxmox/uefi/autoinst.xml initrd /boot/x86_64/loader/initrd boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "opensuse-leap-15.6.uefi" 9 | tags = "uefi;template" 10 | -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux810.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_oracle8_variables.yml", "-e", "@variables/oraclelinux8.yml","--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/OracleLinux-R8-U10-x86_64-dvd.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "oraclelinux8.10" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux810_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "oraclelinux8.10.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux88.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_oracle8_variables.yml", "-e", "@variables/oraclelinux8.yml","-e", "{\"install_updates\": false}", "--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/OracleLinux-R8-U8-x86_64-dvd.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "oraclelinux8.8" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux88_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "oraclelinux8.8.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux89.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_oracle8_variables.yml", "-e", "@variables/oraclelinux8.yml","-e", "{\"install_updates\": false}","--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/OracleLinux-R8-U9-x86_64-dvd.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "oraclelinux8.9" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux89_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/8/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "oraclelinux8.9.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux92.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_oracle9_variables.yml", "-e", "@variables/oraclelinux9.yml","-e", "{\"install_updates\": false}","--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/proxmox/ks.cfgesc" 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/OracleLinux-R9-U2-x86_64-dvd.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | qemu_agent = true 30 | scsi_controller = "virtio-scsi-single" 31 | sockets = "1" 32 | ssh_password = "password" 33 | ssh_username = "root" 34 | task_timeout = "20m" 35 | template = "oraclelinux9.2" 36 | unmount_iso = true 37 | -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux92_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "oraclelinux9.2.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux93.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_oracle9_variables.yml", "-e", "@variables/oraclelinux9.yml","-e", "{\"install_updates\": false}","--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/proxmox/ks.cfgesc" 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/OracleLinux-R9-U3-x86_64-dvd.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | qemu_agent = true 30 | scsi_controller = "virtio-scsi-single" 31 | sockets = "1" 32 | ssh_password = "password" 33 | ssh_username = "root" 34 | task_timeout = "20m" 35 | template = "oraclelinux9.3" 36 | unmount_iso = true 37 | -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux93_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "oraclelinux9.3.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux94.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_oracle9_variables.yml", "-e", "@variables/oraclelinux9.yml","--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/proxmox/ks.cfgesc" 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/OracleLinux-R9-U4-x86_64-dvd.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | qemu_agent = true 30 | scsi_controller = "virtio-scsi-single" 31 | sockets = "1" 32 | ssh_password = "password" 33 | ssh_username = "root" 34 | task_timeout = "20m" 35 | template = "oraclelinux9.4" 36 | unmount_iso = true 37 | -------------------------------------------------------------------------------- /proxmox/variables_oraclelinux94_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oraclelinux/9/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "oraclelinux9.4.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_rockylinux810.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_rocky8_variables.yml", "-e", "@variables/rockylinux8.yml","--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/8/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/Rocky-8.10-x86_64-dvd1.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "rockylinux8.10" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_rockylinux810_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/8/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "rockylinux8.10.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_rockylinux88.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_rocky8_variables.yml", "-e", "@variables/rockylinux8.yml", "-e", "{\"install_updates\": false}", "--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/8/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/Rocky-8.8-x86_64-dvd1.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "rockylinux8.8" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_rockylinux88_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/8/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "rockylinux8.8.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_rockylinux89.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_rocky8_variables.yml", "-e", "@variables/rockylinux8.yml", "-e", "{\"install_updates\": false}", "--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/8/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/Rocky-8.9-x86_64-dvd1.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "rockylinux8.9" 37 | unmount_iso = true 38 | 39 | 40 | -------------------------------------------------------------------------------- /proxmox/variables_rockylinux89_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/8/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "rockylinux8.9.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_rockylinux92.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_rocky9_variables.yml", "-e", "@variables/rockylinux9.yml", "-e", "{\"install_updates\": false}", "--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/Rocky-9.2-x86_64-dvd.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "rockylinux9.2" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_rockylinux92_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "rockylinux9.2.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_rockylinux93.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_rocky9_variables.yml", "-e", "@variables/rockylinux9.yml", "-e", "{\"install_updates\": false}", "--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/Rocky-9.3-x86_64-dvd.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "rockylinux9.3" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_rockylinux93_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "rockylinux9.3.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_rockylinux94.pkvars.hcl: -------------------------------------------------------------------------------- 1 | 2 | ansible_extra_args = ["-e", "@extra/playbooks/provision_rocky9_variables.yml", "-e", "@variables/rockylinux9.yml","--scp-extra-args", "'-O'"] 3 | ansible_verbosity = ["-v"] 4 | ballooning_minimum = "0" 5 | boot_command = " text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/proxmox/ks.cfgesc" 6 | boot_wait = "15s" 7 | cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg" 8 | cores = "4" 9 | cpu_type = "host" 10 | disable_kvm = false 11 | disks = { 12 | cache_mode = "none" 13 | disk_size = "50G" 14 | format = "raw" 15 | type = "virtio" 16 | storage_pool = "zfs" 17 | io_thread = true 18 | discard = true 19 | } 20 | insecure_skip_tls_verify = true 21 | iso_file = "images:iso/Rocky-9.4-x86_64-dvd.iso" 22 | memory = "4096" 23 | network_adapters = { 24 | bridge = "vmbr0" 25 | model = "virtio" 26 | firewall = false 27 | mac_address = "" 28 | } 29 | proxmox_node = "proxmox6" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "root" 35 | task_timeout = "20m" 36 | template = "rockylinux9.4" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_rockylinux94_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = " c setparams 'kickstart' linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/proxmox/ks.cfg initrdefi /images/pxeboot/initrd.img boot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "rockylinux9.4.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_ubuntu2204.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma8_variables.yml", "-e", "@variables/almalinux8.yml","--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = "clinux /casper/vmlinuz quiet autoinstall net.ifnames=0 biosdevname=0 ip=dhcp ipv6.disable=1 ds='nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu/22.04/proxmox/' initrd /casper/initrdboot" 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/ubuntu/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/ubuntu-22.04.3-live-server-amd64.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | provision_script_options ="-z false -h false -p false" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "ubuntu" 35 | task_timeout = "20m" 36 | template = "ubuntu22.04" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_ubuntu2204_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = "clinux /casper/vmlinuz quiet autoinstall net.ifnames=0 biosdevname=0 ip=dhcp ipv6.disable=1 ds='nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu/22.04/proxmox/' initrd /casper/initrdboot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "ubuntu22.04.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_ubuntu2304.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma8_variables.yml", "-e", "@variables/almalinux8.yml","--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = "clinux /casper/vmlinuz quiet autoinstall net.ifnames=0 biosdevname=0 ip=dhcp ipv6.disable=1 ds='nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu/23.04/proxmox/' initrd /casper/initrdboot" 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/ubuntu/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/ubuntu-23.04-live-server-amd64.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | provision_script_options ="-z false -h false -p false" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "ubuntu" 35 | task_timeout = "20m" 36 | template = "ubuntu23.04" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_ubuntu2304_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = "clinux /casper/vmlinuz quiet autoinstall net.ifnames=0 biosdevname=0 ip=dhcp ipv6.disable=1 ds='nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu/24.04/proxmox/' initrd /casper/initrdboot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "ubuntu24.04.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_ubuntu2404.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ansible_extra_args = ["-e", "@extra/playbooks/provision_alma8_variables.yml", "-e", "@variables/almalinux8.yml","--scp-extra-args", "'-O'"] 2 | ansible_verbosity = ["-v"] 3 | ballooning_minimum = "0" 4 | boot_command = "clinux /casper/vmlinuz quiet autoinstall net.ifnames=0 biosdevname=0 ip=dhcp ipv6.disable=1 ds='nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu/24.04/proxmox/' initrd /casper/initrdboot" 5 | boot_wait = "15s" 6 | cloud-init_path = "extra/files/cloud-init/ubuntu/generic/cloud.cfg" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "none" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "virtio" 15 | storage_pool = "zfs" 16 | io_thread = true 17 | discard = true 18 | } 19 | insecure_skip_tls_verify = true 20 | iso_file = "images:iso/ubuntu-24.04-live-server-amd64.iso" 21 | memory = "4096" 22 | network_adapters = { 23 | bridge = "vmbr0" 24 | model = "virtio" 25 | firewall = false 26 | mac_address = "" 27 | } 28 | proxmox_node = "proxmox6" 29 | provision_script_options ="-z false -h false -p false" 30 | qemu_agent = true 31 | scsi_controller = "virtio-scsi-single" 32 | sockets = "1" 33 | ssh_password = "password" 34 | ssh_username = "ubuntu" 35 | task_timeout = "20m" 36 | template = "ubuntu24.04" 37 | unmount_iso = true 38 | -------------------------------------------------------------------------------- /proxmox/variables_ubuntu2404_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = "clinux /casper/vmlinuz quiet autoinstall net.ifnames=0 biosdevname=0 ip=dhcp ipv6.disable=1 ds='nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu/24.04/proxmox-uefi/' initrd /casper/initrdboot" 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "ubuntu24.04.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_windows2019-dc.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ballooning_minimum = "0" 2 | bios = "ovmf" 3 | boot_command = [""] 4 | boot_wait = "4s" 5 | cd_files = ["./extra/files/windows/2019/proxmox/dc/Autounattend.xml", "./extra/files/windows/2019/proxmox/bootstrap.ps1"] 6 | communicator = "winrm" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "writeback" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "sata" 15 | storage_pool = "zfs" 16 | } 17 | efi_config = { 18 | efi_storage_pool = "zfs" 19 | efi_type = "4m" 20 | pre_enrolled_keys = true 21 | } 22 | 23 | insecure_skip_tls_verify = true 24 | iso_file = "images:iso/17763.3650.221105-1748.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso" 25 | iso_storage_pool = "local" 26 | machine = "pc" 27 | memory = "4096" 28 | network_adapters = { 29 | bridge = "vmbr0" 30 | model = "virtio" 31 | firewall = false 32 | mac_address = "" 33 | } 34 | os = "win11" 35 | proxmox_node = "proxmox6" 36 | qemu_agent = true 37 | scsi_controller = "virtio-scsi-single" 38 | sockets = "1" 39 | sysprep_unattended = "./extra/files/windows/2019/proxmox/unattend.xml" 40 | task_timeout = "20m" 41 | template = "windows2019-dc" 42 | unmount_iso = true 43 | winrm_password = "password" 44 | winrm_username = "Administrator" 45 | vga = { 46 | memory = "32" 47 | type = "virtio" 48 | } 49 | virtio_iso_file = "images:iso/virtio-win.iso" 50 | -------------------------------------------------------------------------------- /proxmox/variables_windows2019-dc_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = [""] 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "windows2019-dc.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_windows2019-std.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ballooning_minimum = "0" 2 | bios = "ovmf" 3 | boot_command = [""] 4 | boot_wait = "4s" 5 | cd_files = ["./extra/files/windows/2019/proxmox/std/Autounattend.xml", "./extra/files/windows/2019/proxmox/bootstrap.ps1"] 6 | communicator = "winrm" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "writeback" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "sata" 15 | storage_pool = "zfs" 16 | 17 | } 18 | efi_config = { 19 | efi_storage_pool = "zfs" 20 | efi_type = "4m" 21 | pre_enrolled_keys = true 22 | } 23 | 24 | insecure_skip_tls_verify = true 25 | iso_file = "images:iso/17763.3650.221105-1748.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso" 26 | iso_storage_pool = "local" 27 | machine = "pc" 28 | memory = "4096" 29 | network_adapters = { 30 | bridge = "vmbr0" 31 | model = "virtio" 32 | firewall = false 33 | mac_address = "" 34 | } 35 | os = "win11" 36 | proxmox_node = "proxmox6" 37 | qemu_agent = true 38 | scsi_controller = "virtio-scsi-single" 39 | sockets = "1" 40 | sysprep_unattended = "./extra/files/windows/2019/proxmox/unattend.xml" 41 | task_timeout = "20m" 42 | template = "windows2019-std" 43 | unmount_iso = true 44 | winrm_password = "password" 45 | winrm_username = "Administrator" 46 | vga = { 47 | memory = "32" 48 | type = "virtio" 49 | } 50 | virtio_iso_file = "images:iso/virtio-win.iso" 51 | -------------------------------------------------------------------------------- /proxmox/variables_windows2019-std_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = [""] 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "windows2019-std.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_windows2022-dc.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ballooning_minimum = "0" 2 | bios = "ovmf" 3 | boot_command = [""] 4 | boot_wait = "5s" 5 | cd_files = ["./extra/files/windows/2022/proxmox/dc/Autounattend.xml", "./extra/files/windows/2022/proxmox/bootstrap.ps1"] 6 | communicator = "winrm" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "writeback" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "sata" 15 | storage_pool = "zfs" 16 | } 17 | efi_config = { 18 | efi_storage_pool = "zfs" 19 | efi_type = "4m" 20 | pre_enrolled_keys = true 21 | } 22 | 23 | insecure_skip_tls_verify = true 24 | iso_file = "images:iso/20348.169.210806-2348.fe_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso" 25 | iso_storage_pool = "local" 26 | machine = "pc" 27 | memory = "4096" 28 | network_adapters = { 29 | bridge = "vmbr0" 30 | model = "virtio" 31 | firewall = false 32 | mac_address = "" 33 | } 34 | os = "win11" 35 | proxmox_node = "proxmox6" 36 | qemu_agent = true 37 | scsi_controller = "virtio-scsi-single" 38 | sockets = "1" 39 | sysprep_unattended = "./extra/files/windows/2022/proxmox/unattend.xml" 40 | task_timeout = "20m" 41 | template = "windows2022-dc" 42 | unmount_iso = true 43 | winrm_password = "password" 44 | winrm_username = "Administrator" 45 | vga = { 46 | memory = "32" 47 | type = "virtio" 48 | } 49 | virtio_iso_file = "images:iso/virtio-win.iso" 50 | -------------------------------------------------------------------------------- /proxmox/variables_windows2022-dc_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = [""] 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "windows2022-dc.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /proxmox/variables_windows2022-std.pkvars.hcl: -------------------------------------------------------------------------------- 1 | ballooning_minimum = "0" 2 | bios = "ovmf" 3 | boot_command = [""] 4 | boot_wait = "5s" 5 | cd_files = ["./extra/files/windows/2022/proxmox/std/Autounattend.xml", "./extra/files/windows/2022/proxmox/bootstrap.ps1"] 6 | communicator = "winrm" 7 | cores = "4" 8 | cpu_type = "host" 9 | disable_kvm = false 10 | disks = { 11 | cache_mode = "writeback" 12 | disk_size = "50G" 13 | format = "raw" 14 | type = "sata" 15 | storage_pool = "zfs" 16 | 17 | } 18 | efi_config = { 19 | efi_storage_pool = "zfs" 20 | efi_type = "4m" 21 | pre_enrolled_keys = true 22 | } 23 | 24 | insecure_skip_tls_verify = true 25 | iso_file = "images:iso/20348.169.210806-2348.fe_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso" 26 | iso_storage_pool = "local" 27 | machine = "pc" 28 | memory = "4096" 29 | network_adapters = { 30 | bridge = "vmbr0" 31 | model = "virtio" 32 | firewall = false 33 | mac_address = "" 34 | } 35 | os = "win11" 36 | proxmox_node = "proxmox6" 37 | qemu_agent = true 38 | scsi_controller = "virtio-scsi-single" 39 | sockets = "1" 40 | sysprep_unattended = "./extra/files/windows/2022/proxmox/unattend.xml" 41 | task_timeout = "20m" 42 | template = "windows2022-std.microsoft.com" 43 | unmount_iso = true 44 | winrm_password = "password" 45 | winrm_username = "Administrator" 46 | vga = { 47 | memory = "32" 48 | type = "virtio" 49 | } 50 | virtio_iso_file = "images:iso/virtio-win.iso" 51 | -------------------------------------------------------------------------------- /proxmox/variables_windows2022-std_uefi.pkvars.hcl: -------------------------------------------------------------------------------- 1 | boot_command = [""] 2 | efi_storage_pool = "zfs" 3 | efi_type = "4m" 4 | pre_enrolled_keys = "true" 5 | bios = "ovmf" 6 | machine = "q35" 7 | use_efi = "true" 8 | template = "windows2022-std.uefi" 9 | tags = "uefi;template" -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:recommended" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /secrets/proxmox-example.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export PROXMOX_URL="https://someproxmoxserver:8006/api2/json" 4 | export PROXMOX_USERNAME="someuser@pam!tokenname" 5 | export PROXMOX_TOKEN="sometoken" -------------------------------------------------------------------------------- /variables/almalinux8.yml: -------------------------------------------------------------------------------- 1 | install_epel: true 2 | install_webmin: false 3 | install_hyperv: false 4 | install_cockpit: true 5 | install_neofetch: true 6 | install_updates: true 7 | install_extra_groups: true 8 | docker_prepare: false 9 | extra_device: "" 10 | install_motd: true 11 | -------------------------------------------------------------------------------- /variables/almalinux9-arm64.yml: -------------------------------------------------------------------------------- 1 | install_epel: true 2 | install_webmin: false 3 | install_hyperv: false 4 | install_cockpit: true 5 | install_neofetch: true 6 | install_updates: true 7 | install_extra_groups: true 8 | docker_prepare: false 9 | extra_device: "" 10 | install_motd: true 11 | 12 | -------------------------------------------------------------------------------- /variables/almalinux9.yml: -------------------------------------------------------------------------------- 1 | install_epel: true 2 | install_webmin: false 3 | install_hyperv: false 4 | install_cockpit: true 5 | install_neofetch: true 6 | install_updates: true 7 | install_extra_groups: true 8 | docker_prepare: false 9 | extra_device: "" 10 | install_motd: true 11 | 12 | -------------------------------------------------------------------------------- /variables/centos7.yml: -------------------------------------------------------------------------------- 1 | install_epel: true 2 | install_webmin: true 3 | install_hyperv: false 4 | install_cockpit: true 5 | install_neofetch: true 6 | install_updates: true 7 | install_extra_groups: true 8 | docker_prepare: false 9 | extra_device: "" 10 | install_motd: true 11 | 12 | -------------------------------------------------------------------------------- /variables/oraclelinux8.yml: -------------------------------------------------------------------------------- 1 | install_epel: true 2 | install_webmin: false 3 | install_hyperv: false 4 | install_cockpit: true 5 | install_neofetch: true 6 | install_updates: true 7 | install_extra_groups: true 8 | docker_prepare: false 9 | extra_device: "" 10 | install_motd: true 11 | 12 | 13 | -------------------------------------------------------------------------------- /variables/oraclelinux9-arm64.yml: -------------------------------------------------------------------------------- 1 | install_epel: true 2 | install_webmin: false 3 | install_hyperv: false 4 | install_cockpit: true 5 | install_neofetch: true 6 | install_updates: true 7 | install_extra_groups: true 8 | docker_prepare: false 9 | extra_device: "" 10 | install_motd: true 11 | 12 | -------------------------------------------------------------------------------- /variables/oraclelinux9.yml: -------------------------------------------------------------------------------- 1 | install_epel: true 2 | install_webmin: false 3 | install_hyperv: false 4 | install_cockpit: true 5 | install_neofetch: true 6 | install_updates: true 7 | install_extra_groups: true 8 | docker_prepare: false 9 | extra_device: "" 10 | install_motd: true 11 | 12 | 13 | -------------------------------------------------------------------------------- /variables/rockylinux8.yml: -------------------------------------------------------------------------------- 1 | install_epel: true 2 | install_webmin: false 3 | install_hyperv: false 4 | install_cockpit: true 5 | install_neofetch: true 6 | install_updates: true 7 | install_extra_groups: true 8 | docker_prepare: false 9 | extra_device: "" 10 | install_motd: true 11 | -------------------------------------------------------------------------------- /variables/rockylinux9-arm64.yml: -------------------------------------------------------------------------------- 1 | install_epel: true 2 | install_webmin: false 3 | install_hyperv: false 4 | install_cockpit: true 5 | install_neofetch: true 6 | install_updates: true 7 | install_extra_groups: true 8 | docker_prepare: false 9 | extra_device: "" 10 | install_motd: true 11 | 12 | -------------------------------------------------------------------------------- /variables/rockylinux9.yml: -------------------------------------------------------------------------------- 1 | install_epel: true 2 | install_webmin: false 3 | install_hyperv: false 4 | install_cockpit: true 5 | install_neofetch: true 6 | install_updates: true 7 | install_extra_groups: true 8 | docker_prepare: false 9 | extra_device: "" 10 | install_motd: true 11 | --------------------------------------------------------------------------------