Refactor VM hardware settings and update disk type to SCSI for better compatibility with Proxmox VE 7.4+
This commit is contained in:
parent
c063b79e1b
commit
775215f230
1 changed files with 12 additions and 9 deletions
21
debian/13-trixie-luks/debian-trixie.pkr.hcl
vendored
21
debian/13-trixie-luks/debian-trixie.pkr.hcl
vendored
|
|
@ -25,17 +25,20 @@ source "proxmox-iso" "debian-13-trixie-luks" {
|
||||||
qemu_agent = true
|
qemu_agent = true
|
||||||
|
|
||||||
# VM Hardware Settings
|
# VM Hardware Settings
|
||||||
machine = "q35"
|
machine = "q35"
|
||||||
cpu_type = "${var.template_cpu_type}"
|
cpu_type = "${var.template_cpu_type}"
|
||||||
cores = 2
|
cores = 2
|
||||||
memory = 2048
|
memory = 2048
|
||||||
bios = "ovmf"
|
ballooning_minimum = 2048
|
||||||
scsi_controller = "virtio-scsi-pci"
|
bios = "ovmf"
|
||||||
|
scsi_controller = "virtio-scsi-single"
|
||||||
disks {
|
disks {
|
||||||
disk_size = "30G"
|
disk_size = "30G"
|
||||||
format = "qcow2"
|
format = "qcow2"
|
||||||
storage_pool = "${var.disk_storage_pool}"
|
storage_pool = "${var.disk_storage_pool}"
|
||||||
type = "virtio"
|
type = "scsi" # VirtIO-SCSI better maintained as virtio-blk has been deprecated in Proxmox VE 7.4+ and may cause issues with newer Linux kernels
|
||||||
|
io_thread = true
|
||||||
|
ssd = true
|
||||||
}
|
}
|
||||||
|
|
||||||
efi_config {
|
efi_config {
|
||||||
|
|
@ -63,7 +66,7 @@ source "proxmox-iso" "debian-13-trixie-luks" {
|
||||||
model = "virtio"
|
model = "virtio"
|
||||||
mac_address = "${var.mac_address}"
|
mac_address = "${var.mac_address}"
|
||||||
bridge = "${var.network_bridge}"
|
bridge = "${var.network_bridge}"
|
||||||
firewall = "false"
|
firewall = "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
# VM Cloud-Init Settings
|
# VM Cloud-Init Settings
|
||||||
|
|
@ -72,7 +75,7 @@ source "proxmox-iso" "debian-13-trixie-luks" {
|
||||||
cloud_init_disk_type = "scsi"
|
cloud_init_disk_type = "scsi"
|
||||||
|
|
||||||
# PACKER Boot Commands
|
# PACKER Boot Commands
|
||||||
boot = "order=virtio0;scsi0"
|
boot = "order=scsi0;scsi1"
|
||||||
boot_wait = "10s"
|
boot_wait = "10s"
|
||||||
communicator = "ssh"
|
communicator = "ssh"
|
||||||
boot_command = [
|
boot_command = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue