Route Pimox template installer to serial console
Homelab Main / deploy (push) Has been cancelled
Details
Homelab Main / deploy (push) Has been cancelled
Details
This commit is contained in:
parent
b5a16b805f
commit
b35b052697
|
|
@ -124,7 +124,7 @@ resource "null_resource" "pimox_template_vm_create" {
|
||||||
pimox_user = var.pimox_user
|
pimox_user = var.pimox_user
|
||||||
ssh_key_path = var.pimox_ssh_key_path
|
ssh_key_path = var.pimox_ssh_key_path
|
||||||
qm_bin = var.pimox_qm_bin
|
qm_bin = var.pimox_qm_bin
|
||||||
builder_version = "10"
|
builder_version = "11"
|
||||||
vmid = tostring(var.pimox_template_vmid)
|
vmid = tostring(var.pimox_template_vmid)
|
||||||
name = var.pimox_template_name
|
name = var.pimox_template_name
|
||||||
cores = tostring(var.pimox_template_cores)
|
cores = tostring(var.pimox_template_cores)
|
||||||
|
|
@ -206,6 +206,7 @@ sudo "$qm_cmd" create "$vmid" \
|
||||||
--vga virtio
|
--vga virtio
|
||||||
|
|
||||||
sudo "$qm_cmd" set "$vmid" --serial0 socket
|
sudo "$qm_cmd" set "$vmid" --serial0 socket
|
||||||
|
sudo "$qm_cmd" set "$vmid" --vga serial0
|
||||||
sudo "$qm_cmd" set "$vmid" --efidisk0 "${self.triggers.efidisk0}"
|
sudo "$qm_cmd" set "$vmid" --efidisk0 "${self.triggers.efidisk0}"
|
||||||
sudo "$qm_cmd" set "$vmid" --scsi0 "${self.triggers.scsi0}"
|
sudo "$qm_cmd" set "$vmid" --scsi0 "${self.triggers.scsi0}"
|
||||||
sudo "$qm_cmd" set "$vmid" --boot "order=net0;scsi0"
|
sudo "$qm_cmd" set "$vmid" --boot "order=net0;scsi0"
|
||||||
|
|
@ -243,7 +244,7 @@ resource "null_resource" "pimox_template_vm_seal" {
|
||||||
guest_host = var.pimox_template_build_host
|
guest_host = var.pimox_template_build_host
|
||||||
guest_user = var.pimox_template_build_user
|
guest_user = var.pimox_template_build_user
|
||||||
guest_key_path = var.pimox_template_build_ssh_key_path
|
guest_key_path = var.pimox_template_build_ssh_key_path
|
||||||
seal_version = "8"
|
seal_version = "9"
|
||||||
timeout = var.pimox_template_build_timeout
|
timeout = var.pimox_template_build_timeout
|
||||||
timeout_seconds = tostring(var.pimox_template_build_timeout_seconds)
|
timeout_seconds = tostring(var.pimox_template_build_timeout_seconds)
|
||||||
guest_ip_prefix = var.pimox_template_guest_ip_prefix
|
guest_ip_prefix = var.pimox_template_guest_ip_prefix
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
set default=0
|
set default=0
|
||||||
set timeout=5
|
set timeout=5
|
||||||
|
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
|
||||||
|
terminal_input serial console
|
||||||
|
terminal_output serial console
|
||||||
|
|
||||||
menuentry 'Debian 13 arm64 homelab worker template' {
|
menuentry 'Debian 13 arm64 homelab worker template' {
|
||||||
linux /debian-installer/arm64/linux auto=true priority=critical url=${preseed_url} interface=auto hostname=${template_hostname} domain=${template_domain} console=tty0 console=ttyS0,115200n8 --- console=tty0 console=ttyS0,115200n8
|
linux /debian-installer/arm64/linux auto=true priority=critical url=${preseed_url} interface=auto hostname=${template_hostname} domain=${template_domain} DEBIAN_FRONTEND=text fb=false console=tty0 console=ttyS0,115200n8 --- console=tty0 console=ttyS0,115200n8
|
||||||
initrd /debian-installer/arm64/initrd.gz
|
initrd /debian-installer/arm64/initrd.gz
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue