title: Oracle Linux, prevent Network Adapter from sleep when running in VirtualBox on macOS
body: <p>I have installed Oracle Linux 7 with the current version of VirtualBox, running on mac OS Sierra with a macbook. It therefore has a battery but is plugged in at all times.</p>
  
  <p>For networking I use 2 adapters, one NAT for internet and one Host-Guest for ssh etc.</p>
  
  <p>For some time now I was always wondering why I would get a broken ssh pipe, trial and error showed me that the VM will go to sleep (black screen), which causes the network adapter to break, telling me the name of the adapter and simply <em>Reset adapter</em> as soon as I wake it up again by typing into the vm itself.</p>
  
  <p>I can then restart the network adapter via /etc/init.d/network restart and it will work again</p>
  
  <p>Any ideas how I can change that? My Linux skills are very limited and I am not even sure what Oracle Linux is based on, most tips I find online do not work, no GUI also makes it difficult to just hop into power settings or something similar</p>