OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: eneerge on November 01, 2018, 07:14:37 pm

Title: Resuming OPNSense VM from Sleep Breaks Networking
Post by: eneerge on November 01, 2018, 07:14:37 pm
I run OPNSense inside of a virtual machine and use it as my primary gateway on the host.  If the host goes to sleep, once it wakes up, OPNSense no longer routes packets until either "The virtual machine is put to sleep on the host and then resumed" or "The virtual machine is fully rebooted".  It's worth noting that you can still access the web interface just fine, but network functionality does not work.  I usually put the VM back to sleep and then resume.  However, sometimes this does not work and I have to do a full reboot by logging into the web interface and initiating a power->restart.

Attempting to make this relate to other users, consider the following scenario:
1) Power is lost
2) UPS system puts the server to sleep when battery gets low
3) Power returns and server is restored, however, networking does not function because it is restoring from sleep state and you will need to manually initiate a reboot/sleep-resume

I've tested both Virtualbox and Hyper-V and they both seem to have the same issue - at least with my setup.  Happy to provide any additional info requested.

Thanks.