How to use this box with Vagrant:

Vagrant.configure("2") do |config|
  config.vm.box = "victorbrca/TrueNAS-13.0-U5.3"
  config.vm.box_version = "0.1.0"
end
vagrant init victorbrca/TrueNAS-13.0-U5.3 \
  --box-version 0.1.0
vagrant up

This version was created 8 months ago.

Default credentials

  • Admin interface: root / vagrant
  • Shell: root / vagrant
  • Shell: vagrant / vagrant

Sudo access

Vagrant needs to have passwordless sudo. This is done via a 'init' script from the UI:

echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /usr/local/etc/sudoers

IP

You can change the IP via the Vagrantfile:

truenas.vm.provision :shell, :run => 'always', :inline => "ifconfig em1 inet [private_ip] netmask 255.255.255.0"

Storage

vagrant@truenas:~ $ zpool status
  pool: boot-pool
 state: ONLINE
config:

        NAME        STATE     READ WRITE CKSUM
        boot-pool   ONLINE       0     0     0
          ada0p2    ONLINE       0     0     0

errors: No known data errors

  pool: data
 state: ONLINE
config:

        NAME                                          STATE     READ WRITE CKSUM
        data                                          ONLINE       0     0     0
          gptid/48061457-88a9-11ee-99a1-08002767d85d  ONLINE       0     0     0

errors: No known data errors

Example Vagrantfile

VAGRANTFILE_API_VERSION = "2"

# Changes the default IP from 192.168.56.15
private_ip = "192.168.55.10"

##-- Global config -------------------------------------------------------------
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  # Disable the synced folder (no Guest Additions on image)
  config.vm.synced_folder '.', '/vagrant', disabled: true


  ##-- Machine -----------------------------------------------------------------
  config.vm.define "truenas" do |truenas|

    truenas.vm.box = "victorbrca/TrueNAS-13.0-U5.3"
    truenas.vm.network "private_network", ip: private_ip
    truenas.vm.provision :shell, :run => 'always', :inline => "ifconfig em1 inet #{private_ip} netmask 255.255.255.0"


    ##-- Provider --------------------------------------------------------------
    truenas.vm.provider "virtualbox" do |vb|

      # Use internal DNS from host
      vb.customize [ "modifyvm", :id, "--natdnshostresolver1", "on" ]
      vb.name = "TrueNAS13"
      vb.memory = "2048"

    end
  end
end
1 provider for this version.
  • virtualbox
    unknown Hosted by Vagrant Cloud (2.45 GB)