TrueNAS 12 - vale switch instead of bridge for bhyve VM-s

klatoszy

Dabbler
Joined
Feb 13, 2020
Messages
13
In TrueNAS 12 it is possible to load netmap module and create vale switches.

However I'm not able to use them as parent interface for network adapters for VM-s created in GUI.
Is there some command line interface to create/modify VM? Or maybe next relase of TN could add such feature?

Thank you.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Is there some command line interface to create/modify VM?
There's the API

your.truenas.ip.address/api/docs/

Look for the VM and VM.Device section on the left.

As a tip, you can use the midclt (middleware Client) to call those APIs, so as an example command that I found quickly (for shares rather than VMs):
midclt call sharing.nfs.create '{"comment": "user nfs export", "security": ["KRB5", "KRB5I", "KRB5P"], "enabled": true, "paths": ["/mnt/path/to/user/homedir"], "networks": ["IP1/24", "IP2/24"]}'

Also:
In TrueNAS 12 it is possible to load netmap module and create vale switches.
I don't think so. Or at least not while remaining supported and surviving updates and reboots.
 
Last edited:
Top