TrueNAS Core

Note

TrueNAS Core runs on FreeBSD which is different from TrueNAS Scale which runs on Linux.

VM Hardware Settings

N/A


Install Guest-Agent

Download the kernel.txz file from http://ftp-archive.freebsd.org/ and extract to /boot/modules/.

Load the VirtIO console driver.

kldload /boot/modules/virtio_console.ko

Download the QEMU guest agent package from https://pkg.freebsd.org.

Install download qemu-guest-agent using pkg add.

Backup installed /usr/local/etc/rc.d/qemu-guest-agent to /root/qga_backup/ so that a copy is re-added to the rc.d directory each time TrueNAS boots.

In the TrueNAS UI, navigate to System > Tunables to configure the tuneables below.

a. Variable: `qemu_guest_agent_enable`, Value: `YES`, Type: `RC`, Enabled: `yes`

b. Variable: `qemu_guest_agent_flags`, Value: `-d -v -l /var/log/qemu-ga.log`, Type: `RC`, Enabled: `yes`

c. Variable: `virtio_console_load`, Value: `YES`, Type: `LOADER`, Enabled: `yes`

Navigate to Tasks > Init/Shutdown Script to configure the scripts below.

a. Type: `Command`, Command: `service qemu-guest-agent start`, When: `POSTINIT`, Enabled: `yes`, Timeout: `10`

b. Type: `Command`, Command: `cp /root/qga_backup/qemu-guest-agent /usr/local/etc/rc.d`, When: `PREINIT`, Enabled: `yes`, Timeout: `10`

Reboot to apply changes.


Configure Network Interfaces

Optimizing Disks

Additional Notes