Get a Quote     (408) 943-4100               TrueNAS Discord      VendOp_Icon_15x15px   Commercial Support Toggle between Light and Dark mode

Virtualization Screens

  19 minute read.

Last Modified 2022-10-11 12:06 -0400

The Virtualization option displays the Virtual Machines screen that displays the list of VMs configured on the TrueNAS SCALE system.

VirtualMachinesScreenwithVM

If there are no VMs configured on the system, the No Virtual Machines screen displays. This also displays if you delete all VMs on the system.

VirtualMachinesNoVM

Add Virtual Machines and the Add button in the top right of the screen opens the Create Virtual Machine wizard configuration screens.

After adding virtual machines (VMs) to the system the screen displays a list of the VMs.

Click on the VM name or the expand down arrow to the right of a VM to open the details screen for that VM.

The State toggle displays and changes the state of the VM. The Autostart checkbox, when selected, automatically starts the VM if the system reboots. When cleared you must manually start the VM.

Create Virtual Machine Wizard Screens

The Create Virtual Machine configuration wizard displays all settings to set up a new virtual machine.

Use Next and Back to advance to the next or return to the previous screen to change a setting. Use Save to close the wizard screens and add the new VM to the Virtual Machines screen.

Operating System Screen

The Operating System configuration screen settings specify the VM operating system type, the time it uses, its boot method, and its display type.

CreateVirtualMachineOperatingSystem1

Field Description
Guest Operating System Required. Select the VM operating system type from the dropdown list. Select from Windows, Linux or FreeBSD.
Name Required. Enter an alphanumeric name for the virtual machine.
Description Enter a description (optional).
System Clock Select the VM system time from the dropdown list. Options are Local or UTC. Default is Local.

CreateVirtualMachineOperatingSystem2

Field Description
Boot Method Select the boot method option from the dropdown list. Select UEFI for newer operating systems or Legacy BIOS for older operating systems that only support BIOS booting.
Shutdown Timeout Enter the time in seconds the system waits for the VM to cleanly shut down. During system shutdown, the system initiates power-off for the VM after the shutdown timeout entered expires.
Start on Boot Select to start this VM when the system boots.
Enable Display Enable a Display (Virtual Network Computing) remote connection. Requires UEFI booting.
Display Type Select either VNC or SPICE from the dropdown list.
Bind Select the IP address option from the dropdown list. The primary interface IP address is the default. A different interface IP address can be chosen.

CPU and Memory Screen

The CPU and Memory configuration wizard screen settings specify the number of virtual CPUs to allocate to the virtual machine, cores per virtual CPU socket, and threads per core. Also to specify the CPU mode and model, and the memory size.

CreateVirtualMachineCPUAndMemory

Field Description
Virtual CPUs Required. Enter the number of virtual CPUs to allocate to the virtual machine. The maximum is 16, or fewer if the host CPU limits the maximum. The VM operating system might impose operational or licensing restrictions on the number of CPUs.
Cores Required. Enter the number of cores per virtual CPU socket. The product of vCPUs, cores, and threads must not exceed 16.
Threads Required. Enter the number of threads per core. A single CPU core can have up to two threads per core. A dual core could have up to four threads. The product of vCPUs, cores, and threads must not exceed 16.
CPU Mode Select the CPU mode attribute from the dropdown list to allow your guest VM CPU to be as close to the host CPU as possible. Select Custom to make it so a persistent guest virtual machine sees the same hardware no matter what physical physical machine the guest VM boots on. It is the default if the CPU mode attribute is not specified. This mode describes the CPU presented to the guest. Select Host Model to use this shortcut to copying the physical host machine CPU definition from the capabilities XML into the domain XML. As the CPU definition copies just before starting a domain, a different physical host machine can use the same XML while still providing the best guest VM CPU each physical host machine supports. Select Host Passthrough when the CPU visible to the guest VM is exactly the same as the physical host machine CPU, including elements that cause errors within libvirt. The downside of this is you cannot reproduce the guest VM environment on different hardware.
CPU Model Select a CPU model to emulate.
Memory Size Allocate RAM for the VM. Minimum value is 256 MiB. This field accepts human-readable input (Ex. 50 GiB, 500M, 2 TB). If units are not specified, the value defaults to bytes.

Disks Screen

The Disks configuration wizard screen settings specify whether to create a new zvol on an existing dataset for a disk image or use an existing zvol or file for the VM. You also specify the disk type, zvol location and size.

CreateVirtualMachineDisks

Field Description
Create new disk image Select this radio button to create a new zvol on an existing dataset to use as a virtual hard drive for the VM.
Use existing disk image Select this radio button to use an existing zvol or file for the VM. Displays the Select Existing Zvol dropdown list field.
Select Disk Type Select desired disk type as either AHCI or VirtIO from the dropdown list. SelectAHCI for Windows VMs. VirtIO requires a guest OS that supports VirtIO paravirtualized network drivers.
Zvol Location Select a dataset for the new zvol from the dropdown list of datasets on the system.
Size Required. Allocate space for the new zvol. (Examples: 500 KiB, 500M, 2 TB). Units smaller than MiB are not allowed.
Select Existing Zvol Displays after selecting the Use existing disk image radio button. Select an existing zvol from the dropdown list of zvols on the system.

Network Interface Screen

The Network Interface screen settings specify the network adaptor type, mac address and the physical network interface card associated with the VM.

CreateVirtualMachineNetworkInterface

Field Description
Adapter Type Select the adaptor type from the dropdown list. Intel e82545 (e1000) emulates the same Intel Ethernet card and provides compatibility with most operating systems. VirtIO provides better performance when the operating system installed in the VM supports VirtIO para-virtualized network drivers.
Mac Address Enter the desired address into the field to override the randomized MAC address.
Attach NIC Select the physical interface to associate with the VM from the dropdown list.

Installation Media Screen

The Installation Media screen settings specify the operation system installation media image on a dataset or upload one from the local machine.

CreateVirtualMachineInstallationMedia

Field Description
Choose Installation Media Image Ether the path or browse to the operating system installer image file. To collapse the browse tree click on the to the left of /mnt.
Upload an Installer Image File Select to display image upload the ISO save location and browse /mnt options that populate the field with the mount path, and the Choose File button.
Choose File Click to save the path populated in the ISO save location field.
Upload Click to upload the file selected in the ISO save location field.

GPU Screen

The GPU screen settings specify graphic processing unit (GPU) for the VM. It also provides the option to hide the VM from the Microsoft Reserved Partition (MSR) on Windows systems.

CreateVirtualMachineGPU

Field Description
Hide from MSR Select to enable the VM to hide the GPU from the Microsoft Reserved Partition (MSR).
Ensure Display Device Select to ensure that the guest always has access to a video device. Required for headless installations like ubuntu server for the guest to operate properly. Leave checkbox clear for cases where want to use a graphic processing unit (GPU) passthrough and do not want a display device added.
GPU’s Select a physical GPU on your system from the dropdown list to use for the VM.

Confirm Options Screen

The Confirm Options screen displays the settings selected using the Create Virtual Machine wizard screens. It displays the number CPUs, cores, threads, the memory, name of the VM and the disk size.

Click Save to add the VM to the Virtual Machines screen. Click Back to return to the previous screens to make changes.

Virtual Machine Detail Screen

The details view of any VM displays the basic information on the number of virtual CPUS, cores, and threads, the amount of memory, boot load and system clock types, the display port number and the shutdown timout in seconds.

VirtualMachineDetailsScreen

The buttons below the details show the actions options for each VM.

Operation Icon Description
START Starts a VM. The toggle turns blue when the VM switches to running. Toggles to Stop. After clicking Start the Restart,Power Off, Display and Serial Shell option buttons display.
RESTART replay Retarts the VM.
POWER OFF power_settings_new Powers off and halts the VM, similar to turning off a computer power switch.
STOP Stops a running VM. Because a virtual machine does not always respond well to STOP or the command might time-out if the VM does not have an OS. Use Power Off instead.
EDIT mode_edit Opens the Edit Virtual Machine that displays editable VM settings. You cannot edit a VM while it is running. You must first stop the VM and then you can edit the properties and settings.
DELETE Deletes a VM. Opens a delete dialog that allows you to remove the VM from your system. You cannot delete a virtual machine that is running. You must first stop the VM and then you can delete it.
DEVICES opens the Virtual Machine Devices screen with a list of virtual machine devices configured on the system.
CLONE Makes an exact copy or clone of the VM that you can select and edit. Opens the Clone dialog that allows you to clone the selected VM. Enter a name for the cloned VM. Naming the clone VM is optional. The cloned VM displays on the Virtual Machines list with the extension _clone0. If you clone the same VM again the extension for the second clone is clone1.
Display Opens a noVCN window that allows you to connect to a
SERIAL Opens the TrueNAS VM Serial Shell screen.
Download Logs content_paste Downloads a .log file to the system.

Delete Virtual Machine Dialog

Delete removes the VM configuration from your system.

DeleteVirtualMachine

Field Description
Delete Virtual Machine Data Select to remove the data associated with this virtual machine. This results in data loss if the data is not backed up. Leave unselected to keep the VM data intact.
Force Delete Select to ignore the virtual machine status during the delete operation. Leave unselected to prevent deleting the VM when it is still active or has an undefined state.
Enter vmname below to confirm Enter the name of the VM to confirm you want to delete the selected VM.

Clone Virtual Machine Window

The Clone option opens a Name dialog where you can enter an optional name for a clone or exact duplicate of the selected VM.

VM Serial Shell Screen

Serial Shell opens the VM Serial Shell window where you can enter commands for the selected virtual machine.

VMSerialShellScreen

Click Virtual Machines in the header to return to the Virtual Machine screen.

Edit Virtual Machine Screen

The Virtual Machine > Edit screens settings are a subset of those found on the Create Virtual Machine settings.

Edit General Settings

The Edit screen General Settings specify the basic settings for the VM. Unlike the Create Virtual Machine wizard, you cannot change the Enable or Start on Boot status or change the display type or bind address for a saved VM.

CVirtualMachinesEditGeneralSettings

Field Description
Guest Operating System Required. Select the VM operating system type from the dropdown list. Select from Windows, Linux or FreeBSD.
Name Required. Enter an alphanumeric name for the virtual machine.
Description Enter a description (optional).
System Clock Select the VM system time from the dropdown list. Options are Local or UTC. Default is Local.
Boot Method Select the boot method option from the dropdown list. Select UEFI for newer operating systems or Legacy BIOS for older operating systems that only support BIOS booting.
Shutdown Timeout Enter the time in seconds the system waits for the VM to cleanly shut down. During system shutdown, the system initiates power-off for the VM after the shutdown timeout entered expires.
Start on Boot Select to start this VM when the system boots.

Edit CPU and Memory Settings

The Edit screen CPU and Memory settings are the same as those in the Create Virtual Machine wizard screen.

CVirtualMachinesEditCPUMemorySettings

Field Description
Virtual CPUs Required. Enter the number of virtual CPUs to allocate to the virtual machine. The maximum is 16, or fewer if the host CPU limits the maximum. The VM operating system might impose operational or licensing restrictions on the number of CPUs.
Cores Required. Enter the number of cores per virtual CPU socket. The product of vCPUs, cores, and threads must not exceed 16.
Threads Required. Enter the number of threads per core. A single CPU core can have up to two threads per core. A dual core could have up to four threads. The product of vCPUs, cores, and threads must not exceed 16.
CPU Mode Select the CPU mode attribute from the dropdown list to allow your guest VM CPU to be as close to the host CPU as possible. Select Custom to make it so a persistent guest virtual machine sees the same hardware no matter what physical physical machine the guest VM boots on. It is the default if the CPU mode attribute is not specified. This mode describes the CPU presented to the guest. Select Host Model to use this shortcut to copying the physical host machine CPU definition from the capabilities XML into the domain XML. As the CPU definition copies just before starting a domain, a different physical host machine can use the same XML while still providing the best guest VM CPU each physical host machine supports. Select Host Passthrough when the CPU visible to the guest VM is exactly the same as the physical host machine CPU, including elements that cause errors within libvirt. The downside of this is you cannot reproduce the guest VM environment on different hardware.
CPU Model Select a CPU model to emulate.
Memory Size Allocate RAM for the VM. Minimum value is 256 MiB. This field accepts human-readable input (Ex. 50 GiB, 500M, 2 TB). If units are not specified, the value defaults to bytes.

Edit GPU Settings

The Edit screen GPU settings are the same as those in the Create Virtual Machine wizard screens.

VirtualMachinesEditGPUSettings

Field Description
Hide from MSR Select to enable the VM to hide the GPU from the Microsoft Reserved Partition (MSR).
Ensure Display Device Select to ensure that the guest always has access to a video device. Required for headless installations like ubuntu server for the guest to operate properly. Leave checkbox clear for cases where want to use a graphic processing unit (GPU) passthrough and do not want a display device added.
GPU’s Select a physical GPU on your system from the dropdown list to use for the VM.

Devices Screens

The Virtual Machines > Devices screen displays a list of VM devices configured on your system.

CreateVirtualMachineGPU change image

Add opens the Virtual Machine > Devices > Add configuration screen. Settings change based on the various device types.

Device Actions

The content_paste displays a list of options for each device listed on the Devices screen.

Edit type Device

Edit opens the Edit type Device screen where type is the device type selected. Settings displayed vary based on the type of device set when at device creation, and are the same as those displayed on the Add Device screen except for the Device Type field that only displays on the Add Device screens.

Delete Device

Delete opens a dialog where you click Delete Device to confirm you want to delete the device.

Change Device Order

Change Device Order opens a dialog for the selected device. Enter the number that represents the order the VM looks to the device during boot-up. The lower the number places the device earlier in the boot process. Enter the number and click Save.

Details

Details displays an information dialog for the selected device that lists the port, type, bind IP and other details about the device. Click Close to close the dialog.

Devices Add Screens

Add on the Devices screen opens the Add Device configuration screen. Settings change base on the selection in Device Type.

Select CD-ROM to configure a new CD-ROM location and the boot order for that device.

Select NIC to configure a new network adapter and the boot order for that device.

Select Disk to configure a new disk location, drive type and sector size, and the boot order for that device.

Select Raw File to configure a new file location and file size, the disk sector and mode, and the boot order for that device.

Select PCI Passthru Device to select a PCI Passthru device from the dropdown list and the boot order for that device.

Select Display to configure a new display device and the boot order for that device.

Add Device Type CD-ROM

Select CD-ROM in the Add device screen Device Type to configure the device setings and boot order.

VirtualMachinesDevicesAddCDROMType

Field Description
Type Select the device type from the dropdown list. CD-ROM is the default setting.
CD-ROM Path Use the to the left of /mnt to browse to the location of the CD-ROM file on the system.
Device Order Enter the number (such as 1003) that represents where in the boot order this device should be. The higher the number the later in the boot-up process the device falls. If you want the CD-ROM to be the first device checked assign it a lower number.

Add Device Type NIC

Select NIC in the Add device screen Device Type to configure network interface card settings and boot order.

CreateVirtualMachineGPU

Field Description
Type Select the device type from the dropdown list.
Adapter Type Required. Select the emulator type from the dropdown list. Emulating an Intel e82545 (e1000) Ethernet card provides compatibility with most operating systems. Change to VirtIO to provide better performance on systems with VirtIO paravirtualized network driver support.
MAC Address Displays the default auto-generated random MAC address the VM receives. Enter a custom address to override the default.
NIC to attach Select a physical interface from the dropdown list to assoicate with the VM.
Device Order Enter the number (such as 1003) that represents where in the boot order this device should be. The higher the number the later in the boot-up process the device falls. If you want the CD-ROM to be the first device checked assign it a lower number.
Generate MAC Address Click to add a new randomized address in MAC Address.

Add Device Type Disk

Select Disk in the Add device screen Device Type to configure a new disk location, drive type and disk sector size and boot order.

CreateVirtualMachineGPU

Field Description
Type Select the device type from the dropdown list.
Zvol Select the zvol path from the dropdown list.
Mode Select the drive type from the dropdown list. Options are AHCI or VirtIO.
Disk sector size Select the disk sector size from the dropdown list or leave set as Default. Options are Default, 512 or 4096.
Device Order Enter the number (such as 1003) that represents where in the boot order this device should be. The higher the number the later in the boot-up process the device falls. If you want the CD-ROM to be the first device checked assign it a lower number.

Add Device Type Raw File

Select Raw File in the Add device screen Device Type to configure the location and size of the file, disk sector size and type, and boot order.

CreateVirtualMachineGPU

Field Description
Type Select the device type from the dropdown list.
Raw File Enter or use the to the left of /mnt to browse to the location of the file on the system.
Disk sector size Select the disk sector size from the dropdown list or leave set as Default. Options are Default, 512 or 4096.
Mode Select the drive type from the dropdown list. Options are AHCI or VirtIO.
Device Order Enter the number (such as 1003) that represents where in the boot order this device should be. The higher the number the later in the boot-up process the device falls. If you want the CD-ROM to be the first device checked assign it a lower number.
Raw filesize Enter the size of the file in GiB.

Add Device Type PCI Passthru Device

Select PCI Passthru Device in the Add device screen Device Type to configure the PCI passthru device and boot order.

CreateVirtualMachineGPU

Field Description
Type Select the device type from the dropdown list.
PCI Passthru Device Enter or select the device from the dropdown list of options. Enter as (bus#/slot#/fcn#).
Device Order Enter the number (such as 1003) that represents where in the boot order this device should be. The higher the number the later in the boot-up process the device falls. If you want the CD-ROM to be the first device checked assign it a lower number.

Add Device Type Display

Select NIC in the Add device screen Device Type to configure a new display device and boot order.

CreateVirtualMachineGPU

Field Description
Type Select the device type from the dropdown list. Display is the default setting.
Port Enter the port number. You can assign 0, leave empty for TrueNAS to assign a port when the VM is started, or set to a fixed preferred port number.
Resolution Select a screen resolution to use for VNC sessions.
Bind Select an IP address to use for VNC sessions or use the default 0.0.0.0.
Password Enter a VNC password of no more than eight characters in length to automatically pass to the VNC session.
Display Type Select the display type from the dropdown list. Options are VNC or SPICE.
Web Interface Select to enable connecting to the VNC web interface.
Device Order Enter the number (such as 1003) that represents where in the boot order this device should be. The higher the number the later in the boot-up process the device falls. If you want the CD-ROM to be the first device checked assign it a lower number.

Related Content

Related GPU Articles