Solved vm-bhyve switch doesn't survive host reboot

I have been playing with vm-bhyve, based on https://klarasystems.com/articles/from-0-to-bhyve-on-freebsd-13-1/ .
It has been a nice experience for my use-case: toying with different linux desktops and doing things that require something else than FreeBSD. there is is just one thing I have a problem with: if I create a switch like in that article, or for that matter the vm-bhyve github example
vm switch create public
vm switch add public igb0

works just as I like it. But if I reboot my desktop, which acts as host, then the switch stops working.
>vm switch list
NAME TYPE IFACE ADDRESS PRIVATE MTU VLAN PORTS
public standard vm-public - no - - igb0

becomes
>vm switch list
NAME TYPE IFACE ADDRESS PRIVATE MTU VLAN PORTS
public standard - - no - - igb0

Have anyone had this problem and possibly solved it, or is it just me?
 
Found it: a clue was that a manual 'vm init' restored the switch.
Which should have been done by the vm rc script.
But when vm rc script runs (didn't notice this until now) it complains that it can't find the mount point.
Which makes sense, since i have the my vm stuff on a legacy mounted pool.
So the question now is: how do I make the vm rc script run after the late mounts of fstab?
 
After another minute of thinking, I realized that the legacy mount wasn't needed, so I could let zfs handle the mount point and now my problem is solved.
Edit: Oops! Marked this as solved but never pushed "Post reply" yesterday.
 
Back
Top