-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added new cloud-config for Ubuntu 24.04 Proxmox UEFI installation
Added cloud-config settings for network, packages, locale, timezone, SSH configuration, user data, storage configuration, and late commands to enhance the installation process. Updated Packer variables for EFI support in Proxmox Ubuntu and Windows configurations.
- Loading branch information
1 parent
f5f67da
commit 4a6e9d6
Showing
26 changed files
with
292 additions
and
411 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
#cloud-config | ||
|
||
autoinstall: | ||
version: 1 | ||
early-commands: | ||
- systemctl stop ssh # otherwise packer tries to connect and exceed max attempts | ||
network: | ||
network: | ||
version: 2 | ||
ethernets: | ||
eth0: | ||
dhcp4: yes | ||
dhcp-identifier: mac | ||
update: no | ||
apt: | ||
geoip: true | ||
preserve_sources_list: false | ||
primary: | ||
- arches: [amd64] | ||
uri: "http://archive.ubuntu.com/ubuntu/" | ||
packages: | ||
- mc | ||
- curl | ||
- wget | ||
- sudo | ||
- tar | ||
- bzip2 | ||
- build-essential | ||
- linux-image-virtual | ||
- linux-tools-virtual | ||
- net-tools | ||
- qemu-guest-agent | ||
locale: en_US.UTF-8 | ||
timezone: Europe/Copenhagen | ||
ssh: | ||
install-server: true | ||
allow-pw: true | ||
user-data: | ||
disable_root: false | ||
# lock-passwd: false | ||
ssh_pwauth: true | ||
hostname: ubuntu2404 | ||
# username: root | ||
chpasswd: | ||
expire: false | ||
users: | ||
- name: root | ||
password: password | ||
type: text | ||
- name: ubuntu | ||
password: password | ||
type: text | ||
late-commands: | ||
#- echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/ubuntu | ||
- sed -ie 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="net.ifnames=0 ipv6.disable=1 biosdevname=0"/' /target/etc/default/grub | ||
- sed -ie 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /target/etc/ssh/sshd_config | ||
- sed -ie 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /target/etc/ssh/sshd_config | ||
- sed -ie 's/#AllowAgentForwarding yes/AllowAgentForwarding yes/' /target/etc/ssh/sshd_config | ||
- curtin in-target -- update-grub2 | ||
# virtual package is required for some cloud images. Lack of it causes failure in communication. | ||
- curtin in-target -- apt-get -y install linux-cloud-tools-virtual||true | ||
- curtin in-target -- systemctl enable qemu-guest-agent | ||
storage: | ||
config: | ||
- type: disk | ||
id: disk0 | ||
ptable: gpt | ||
wipe: superblock | ||
grub_device: true | ||
match: | ||
size: largest | ||
- id: efi-partition | ||
type: partition | ||
device: disk0 | ||
size: 512MB | ||
flag: boot | ||
grub_device: true | ||
- id: boot-partition | ||
type: partition | ||
device: disk0 | ||
size: 2GB | ||
- id: root-partition | ||
type: partition | ||
device: disk0 | ||
size: -1 | ||
- id: efi-partition-fs | ||
type: format | ||
fstype: fat32 | ||
volume: efi-partition | ||
- id: boot-partition-fs | ||
type: format | ||
fstype: ext4 | ||
volume: boot-partition | ||
- id: root-partition-fs | ||
type: format | ||
fstype: ext4 | ||
volume: root-partition | ||
- id: efi-partition-fs-mount | ||
type: mount | ||
path: /boot/efi | ||
device: efi-partition-fs | ||
- id: boot-partition-fs-mount | ||
type: mount | ||
path: /boot | ||
device: boot-partition-fs | ||
- id: root-partition-fs-mount | ||
type: mount | ||
path: / | ||
device: root-partition-fs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
boot_command = "<wait3>c<wait3>linux /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/' <enter><wait5>initrd /casper/initrd<wait5><enter>boot<wait5s><enter>" | ||
efi_storage_pool = "zfs" | ||
efi_type = "4m" | ||
pre_enrolled_keys = "true" | ||
bios = "ovmf" | ||
machine = "q35" | ||
use_efi = "true" | ||
template = "ubuntu22.04.uefi" | ||
tags = "uefi;template" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
boot_command = "<wait3>c<wait3>linux /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/' <enter><wait5>initrd /casper/initrd<wait5><enter>boot<wait5s><enter>" | ||
efi_storage_pool = "zfs" | ||
efi_type = "4m" | ||
pre_enrolled_keys = "true" | ||
bios = "ovmf" | ||
machine = "q35" | ||
use_efi = "true" | ||
template = "ubuntu24.04.uefi" | ||
tags = "uefi;template" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
boot_command = "<wait3>c<wait3>linux /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/' <enter><wait5>initrd /casper/initrd<wait5><enter>boot<wait5s><enter>" | ||
efi_storage_pool = "zfs" | ||
efi_type = "4m" | ||
pre_enrolled_keys = "true" | ||
bios = "ovmf" | ||
machine = "q35" | ||
use_efi = "true" | ||
template = "ubuntu24.04.uefi" | ||
tags = "uefi;template" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
boot_command = ["<wait5s><space><wait3s><space><wait3s><space><wait3s><space><wait3s>"] | ||
efi_storage_pool = "zfs" | ||
efi_type = "4m" | ||
pre_enrolled_keys = "true" | ||
bios = "ovmf" | ||
machine = "q35" | ||
use_efi = "true" | ||
template = "windows2019-dc.uefi" | ||
tags = "uefi;template" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
boot_command = ["<wait5s><space><wait3s><space><wait3s><space><wait3s><space><wait3s>"] | ||
efi_storage_pool = "zfs" | ||
efi_type = "4m" | ||
pre_enrolled_keys = "true" | ||
bios = "ovmf" | ||
machine = "q35" | ||
use_efi = "true" | ||
template = "windows2019-std.uefi" | ||
tags = "uefi;template" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
boot_command = ["<wait5s><space><wait3s><space><wait3s><space><wait3s><space><wait3s>"] | ||
efi_storage_pool = "zfs" | ||
efi_type = "4m" | ||
pre_enrolled_keys = "true" | ||
bios = "ovmf" | ||
machine = "q35" | ||
use_efi = "true" | ||
template = "windows2022-dc.uefi" | ||
tags = "uefi;template" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
boot_command = ["<wait5s><space><wait3s><space><wait3s><space><wait3s><space><wait3s>"] | ||
efi_storage_pool = "zfs" | ||
efi_type = "4m" | ||
pre_enrolled_keys = "true" | ||
bios = "ovmf" | ||
machine = "q35" | ||
use_efi = "true" | ||
template = "windows2022-std.uefi" | ||
tags = "uefi;template" |
Oops, something went wrong.