Delaying or restarting samba_server to bind to VirtualBox host-only adapter

Status
Not open for further replies.

BrandonG777

Cadet
Joined
Oct 14, 2016
Messages
2
So I just moved my Ubuntu 16.04 LTS server to FreeNAS 9.10. Very happy with everything so far importing my existing ZFS pool was stupid simple but I'm having one little issue. Samba starts up and binds to adapters before VirtualBox starts the Host-Only adapter (which I bind to in over to share data to my VirtualBoxes without having to route the traffic through my real network). This forces me to restart samba, then restart my VirtualBox VMs that use the Host-Only network whenever I reboot the system. I've tried adding service vboxnet start to my pre-init and service samba_server restart to my post-init but neither seems to help. Seems like it would be an easy fix and I think I'm in the right place but I'm still very new to FreeBSD/FreeNAS.
 

BrandonG777

Cadet
Joined
Oct 14, 2016
Messages
2
nevermind, adding "service samba_server restart" to my post init seemed to do the trick.
 
Status
Not open for further replies.
Top