From c55f7bca350f4270292b470dff5fdd5b086f611e Mon Sep 17 00:00:00 2001 From: goffinet Date: Sat, 19 Oct 2024 15:03:54 +0200 Subject: [PATCH] fix ubuntu boot command for cloud-init --- almalinux9.pkr.hcl | 2 +- centos9.pkr.hcl | 2 +- fedora40.pkr.hcl | 2 +- http/almalinux9-kickstart.cfg | 2 +- http/centos9-kickstart.cfg | 2 +- http/fedora40-kickstart.cfg | 2 +- http/ubuntu2004/user-data | 4 ++-- http/ubuntu2204/user-data | 4 ++-- http/ubuntu2404/user-data | 4 ++-- ubuntu2004.pkr.hcl | 2 +- ubuntu2204.pkr.hcl | 4 ++-- ubuntu2404.pkr.hcl | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/almalinux9.pkr.hcl b/almalinux9.pkr.hcl index 85db049..1130bee 100644 --- a/almalinux9.pkr.hcl +++ b/almalinux9.pkr.hcl @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z variable "config_file" { type = string diff --git a/centos9.pkr.hcl b/centos9.pkr.hcl index 71d5590..d5bf200 100644 --- a/centos9.pkr.hcl +++ b/centos9.pkr.hcl @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z variable "config_file" { type = string diff --git a/fedora40.pkr.hcl b/fedora40.pkr.hcl index b115899..1e43dde 100644 --- a/fedora40.pkr.hcl +++ b/fedora40.pkr.hcl @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z variable "config_file" { type = string diff --git a/http/almalinux9-kickstart.cfg b/http/almalinux9-kickstart.cfg index 6e1aace..e90f949 100644 --- a/http/almalinux9-kickstart.cfg +++ b/http/almalinux9-kickstart.cfg @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z #auth --enableshadow --passalgo=sha512 url --url="https://repo.almalinux.org/almalinux/9.4/BaseOS/x86_64/kickstart/" diff --git a/http/centos9-kickstart.cfg b/http/centos9-kickstart.cfg index 76122e7..e004eda 100644 --- a/http/centos9-kickstart.cfg +++ b/http/centos9-kickstart.cfg @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z #auth --enableshadow --passalgo=sha512 url --url="https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os" diff --git a/http/fedora40-kickstart.cfg b/http/fedora40-kickstart.cfg index ff388c1..fbe0a2a 100644 --- a/http/fedora40-kickstart.cfg +++ b/http/fedora40-kickstart.cfg @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z #auth --enableshadow --passalgo=sha512 url --url="https://fedora.cu.be/linux/releases/40/Server/x86_64/os" diff --git a/http/ubuntu2004/user-data b/http/ubuntu2004/user-data index 431d1e4..1f53a7c 100644 --- a/http/ubuntu2004/user-data +++ b/http/ubuntu2004/user-data @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z #cloud-config autoinstall: @@ -6,7 +6,7 @@ autoinstall: identity: hostname: ubuntu2004 username: ubuntu - password: $6$rounds=4096$BTR60vaNLfCme5g/$nx73yR63V.s4E62NJB9wIrTzgDEmZcJdH.KwAtqZeZi4nstVhYneQHQuA6IWQUjgx6PsyYW4MJXtkmgdSiV1H1 + password: $6$rounds=4096$fXZNyxxur.moFzNM$Lxrs5nTOvmVc3rdMlVCc7UwFvXKH/axfmMXVL53Q7n15J.RFxZqwY.Byi9whqxYvA1gA5whJHlLCLaYeclMcs1 user-data: disable_root: false keyboard: diff --git a/http/ubuntu2204/user-data b/http/ubuntu2204/user-data index 640e793..551ab3e 100644 --- a/http/ubuntu2204/user-data +++ b/http/ubuntu2204/user-data @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z #cloud-config autoinstall: @@ -6,7 +6,7 @@ autoinstall: identity: hostname: ubuntu2204 username: ubuntu - password: $6$rounds=4096$AztPD5OZUbqj54wo$waOKwT7FVf3XE2xDjHl.eXWn7uX0.xVQZDazh3hgRKaQ8nYce8DROWEWAvcUSjg1RszCC40aGQcD4zh6GoJGn0 + password: $6$rounds=4096$xSaSUFFDC4AUrZt2$VrRHN.q1pdVCakg2dxhWHbpsxN6GaFfcd0WY5ymEq1hHlRC9.j6AFvkLG5egMF6I0GLxftAp84t5ZAmwVhtt3/ user-data: disable_root: false keyboard: diff --git a/http/ubuntu2404/user-data b/http/ubuntu2404/user-data index b861ebc..6be571a 100644 --- a/http/ubuntu2404/user-data +++ b/http/ubuntu2404/user-data @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z #cloud-config autoinstall: @@ -6,7 +6,7 @@ autoinstall: identity: hostname: ubuntu2404 username: ubuntu - password: $6$rounds=4096$3o8W0kEf/ilIxyxm$DHJgeSwei.ZfSFXaI2OjJlAiQwi7tvfh8ezqps4z9RHAN.6g4Uux7.8JiZ8N4syTzIcm7.XJy/pLu6EVyGO66. + password: $6$rounds=4096$ztMEM0seIvEPsbsV$Pt21aKH/KMo3b3igb0JBw/Bg3HkZCA/L7hwkq4zWtB4ssmdeYRG2FQpq.yW0JILC9DKTtjGY5G6Ih92x9t.Po. user-data: disable_root: false keyboard: diff --git a/ubuntu2004.pkr.hcl b/ubuntu2004.pkr.hcl index 4ca16fa..31b3eea 100644 --- a/ubuntu2004.pkr.hcl +++ b/ubuntu2004.pkr.hcl @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z variable "config_file" { type = string diff --git a/ubuntu2204.pkr.hcl b/ubuntu2204.pkr.hcl index 0788f7e..e4211ae 100644 --- a/ubuntu2204.pkr.hcl +++ b/ubuntu2204.pkr.hcl @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z variable "config_file" { type = string @@ -62,7 +62,7 @@ variable "version" { source "qemu" "ubuntu2204" { accelerator = "kvm" - boot_command = ["e", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "linux /casper/vmlinuz --- autoinstall ds=\"nocloud-net;seedfrom=http://{{ .HTTPIP }}:{{ .HTTPPort }}/http/${var.config_file}/\"", "initrd /casper/initrd", "boot", ""] + boot_command = ["e", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "linux /casper/vmlinuz --- autoinstall ds=\"nocloud-net;seedfrom=http://{{ .HTTPIP }}:{{ .HTTPPort }}/http/${var.name}${var.version}/${var.config_file}/\"", "initrd /casper/initrd", "boot", ""] disk_cache = "none" disk_compression = true disk_discard = "unmap" diff --git a/ubuntu2404.pkr.hcl b/ubuntu2404.pkr.hcl index 6a9d9b7..137f56e 100644 --- a/ubuntu2404.pkr.hcl +++ b/ubuntu2404.pkr.hcl @@ -1,4 +1,4 @@ -#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T12:54:03Z +#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-19T13:03:36Z variable "config_file" { type = string