Notes to Self

Alex Sokolsky's Notes on Computers and Programming

TrueNAS in a VM on ProxMox

Create a VM

CPU: 2 cores, kvm64, flags=+pdpe1gb;+aes
Bios: Default
Display: SPICE
Machine: q35
HD: SCSI: VirtIO, 32GB, IO thread
DVD: truenas
Network: bridge

Note VM id: 101.


  1. Ideally you would pass through the entire host bus adapter.

  2. If you do not have a host bus adapter and want to just pass SATA drives, do passthrough disk.

The rest of the doc deals with the second approach.

Identify Disks

root@flattop:~# ls -la /dev/disk/by-id
total 0
drwxr-xr-x 2 root root 460 Oct 14 14:25 .
drwxr-xr-x 6 root root 120 Oct 14 14:25 ..
lrwxrwxrwx 1 root root   9 Oct 14 14:25 ata-KINGSTON_SV300S37A120G_50026B773A0059B3 -> ../../sda
lrwxrwxrwx 1 root root   9 Oct 14 14:25 ata-MKNSSDSR120GB_MB2002101005FEB0D -> ../../sdb

Add Disks to VM

# qm set 101 -scsi2 /dev/disk/by-id/ata-KINGSTON_SV300S37A120G_50026B773A0059B3
# qm set 101 -scsi3 /dev/disk/by-id/ata-MKNSSDSR120GB_MB2002101005FEB0D

Ensure the passthrough device has a proper serial number. Edit /etc/pve/nodes/flattop/qemu-server/101.conf to add device serial numbers.

scsi2: /dev/disk/by-id/ata-KINGSTON_SV300S37A120G_50026B773A0059B3,size=117220824K,serial=50026B773A0059B3
scsi3: /dev/disk/by-id/ata-MKNSSDSR120GB_MB2002101005FEB0D,size=117220824K,serial=MB2002101005FEB0D

Install TrueNAS

As usual.

Install qemu-guest-agent

This worked! The latest versions of TrueNAS Scale do have it bundled.

Continue with TrueNAS Customization.