From 60809a894f442758ad72a65cf320fbb272aec605 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Tue, 15 Sep 2026 10:16:06 +0200 Subject: [PATCH] Boot TrueNAS from sata0, the disk it actually installs to The boot order named scsi0, which never exists: the system disk is sata0, and imported passthrough disks start at scsi1 because SCSI_NR is pre-incremented. So the order always fell through to ide2 and the installer came back up after every reboot. --- vm/truenas-vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/truenas-vm.sh b/vm/truenas-vm.sh index 1d0385fb8..aebe68207 100644 --- a/vm/truenas-vm.sh +++ b/vm/truenas-vm.sh @@ -162,7 +162,7 @@ qm create "$VMID"${MACHINE} -bios ovmf -agent enabled=1 -tablet 0 -localtime 1${ -cores "$CORE_COUNT" -memory "$RAM_SIZE" -balloon 0 -name "$HN" -tags community-script \ -net0 "virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU" -onboot 1 -ostype l26 \ -efidisk0 $STORAGE:1,efitype=4m,pre-enrolled-keys=0 -sata0 $STORAGE:$DISK_SIZE,ssd=1 \ - -scsihw virtio-scsi-single -cdrom local:iso/$ISO_NAME -boot order='scsi0;ide2' -vga virtio >/dev/null + -scsihw virtio-scsi-single -cdrom local:iso/$ISO_NAME -boot order='sata0;ide2' -vga virtio >/dev/null msg_ok "Created VM shell" if [ "$IMPORT_DISKS" == "yes" ]; then