I have a Mac Mini on OS X Lion, acting as a server in which an Ubuntu virtual machine is working using VBoxHeadless. The virtual machine has network connected using NAT to the host, and there are two port forwards: 22 on guest gets to 2022 on host (SSH), and 443 on guest goes to 2443 on host (HTTPS).
On the host (mac mini), I propagated these services to the Bonjour service, so that my Time Capsule would wake my mac mini up when I access port 2022 or 2443. There is a problem though: when my mac mini wakes up, VirtualBox has put the guest to pause, but I attempt a connection to the guest, the host wakes up well but VirtualBox doesn't 'unpause' the guest.
So, after I put the host to sleep:
- If I SSH into my host (port 22), it wakes up beautifully and I get an instant connection.
- If I SSH into my guest (using port 2022 to host), host wakes up, but the guest remains paused, and I can't connect.
NOTE: This issue really only occurs when using VBoxHeadless, when I'm using the GUI app, it wakes up fine. The problem is the guest is a server that I want to boot up with the host, and I really don't want the UI with it.