Skip to content

Commit

Permalink
fix ubuntu boot command for cloud-init
Browse files Browse the repository at this point in the history
  • Loading branch information
goffinet committed Oct 19, 2024
1 parent 61b796d commit c55f7bc
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion almalinux9.pkr.hcl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion centos9.pkr.hcl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion fedora40.pkr.hcl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion http/almalinux9-kickstart.cfg
Original file line number Diff line number Diff line change
@@ -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/"
Expand Down
2 changes: 1 addition & 1 deletion http/centos9-kickstart.cfg
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion http/fedora40-kickstart.cfg
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions http/ubuntu2004/user-data
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#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:
version: 1
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:
Expand Down
4 changes: 2 additions & 2 deletions http/ubuntu2204/user-data
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#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:
version: 1
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:
Expand Down
4 changes: 2 additions & 2 deletions http/ubuntu2404/user-data
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#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:
version: 1
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:
Expand Down
2 changes: 1 addition & 1 deletion ubuntu2004.pkr.hcl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions ubuntu2204.pkr.hcl
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -62,7 +62,7 @@ variable "version" {

source "qemu" "ubuntu2204" {
accelerator = "kvm"
boot_command = ["<esc><esc><esc><esc>e<wait>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "linux /casper/vmlinuz --- autoinstall ds=\"nocloud-net;seedfrom=http://{{ .HTTPIP }}:{{ .HTTPPort }}/http/${var.config_file}/\"<enter><wait>", "initrd /casper/initrd<enter><wait>", "boot<enter>", "<enter><f10><wait>"]
boot_command = ["<esc><esc><esc><esc>e<wait>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "<del><del><del><del><del><del><del><del>", "linux /casper/vmlinuz --- autoinstall ds=\"nocloud-net;seedfrom=http://{{ .HTTPIP }}:{{ .HTTPPort }}/http/${var.name}${var.version}/${var.config_file}/\"<enter><wait>", "initrd /casper/initrd<enter><wait>", "boot<enter>", "<enter><f10><wait>"]
disk_cache = "none"
disk_compression = true
disk_discard = "unmap"
Expand Down
2 changes: 1 addition & 1 deletion ubuntu2404.pkr.hcl
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c55f7bc

Please sign in to comment.