misc

Graphical workstation kvm lab

First install ubuntu deskop with zfs-on-root* (Optional)

Install Packages and setup shell

Setup grub

Enable SATA Controller to be passed through to TrueNAS VM

This requires a discrete Sata controller, and a seperate drive/controller for the host. The board being used in this example has a sata controller and a seperate nvme drive. The ubuntu host is installed on the nvme drive, on which the default libvirt pool will also be used to store the image for the TrueNAS VM’s boot drive.

Reboot System and verify changes

Configure the system to never poweroff or autosuspend

If you are running your host headless you can access the graphical environment using reminna over xrdp if you install xrd and disabled wayland

Create a bridge for VM Networking

If you want to have VMs on the regular LAN and want to allow Host/VM communication you will need to create a bridge interface for your VMs. One of the simplets way to do this is using by using cockpit

Create a virtual network with the bridge

The instructions below are to replace the default virtual network with a bridged network. If you wish to create a seperate bridged network and leave the default network as is skip steps 3-4 below, and use another name for the network in place of default.

  1. create an xml file

      nano bridged-network.xml
    
  2. Paste in the following:

    ```xml

default
3. #### Stop the default network
  ```bash
  virsh net-destroy default
  1. Undefine the default network

      virsh net-undefine default
    
  2. Re-define the network

      sudo virsh net-define bridged-network.xml
    
  3. Start the network

      sudo virsh net-start default
    
  4. set the network to autostart

      sudo virsh net-autostart default
    

    NOTE:

    This can also be done in virt manager gui by going to Edit>Preferences and ticking “Enable XML Editing”.

xml-editing net-xml

Deploy TrueNAS-SCALE VM

**due to the horrendous state of networking in scale, these changes must be done over direct console via spice or vnc and all network connectivity (to truenas scale) will be lost until reboot!* https://ixsystems.atlassian.net/browse/NAS-118915