I am running VirtualBox on OS X Lion Server. Runs really great with CentOS in it as a test server.
OS X Server runs, even if there are no users logged in. But VirtualBox is quitting if I log out, of if the machine goes to sleep. How can I let VirtualBox / CentOS run even if I log out/the system goes to sleep?
Run VirtualBox when machine account is logged off
-
rpmurray
- Volunteer
- Posts: 918
- Joined: 3. Mar 2009, 00:29
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 7, Mac OS X (various flavors)
- Location: Between Heaven and Hell
Re: Run VirtualBox when machine account is logged off
You could try enabling Fast User Switching in your account. Then instead of actually logging out you could choose the Login Window from the user account menu bar item, which would switch you to the Login Window and require you to log back in. Or if all you want to do is require a password to log back in from sleep you could enable the "require password" setting in the Security system preference (General tab)
You'd probably need to set the Energy Saver setting to only allow the display to sleep; if you have it set to "put the hard disk(s) to sleep when possible" or sleep the CPU (computer sleep) then VirtualBox will not be running while the computer sleeps.
You'd probably need to set the Energy Saver setting to only allow the display to sleep; if you have it set to "put the hard disk(s) to sleep when possible" or sleep the CPU (computer sleep) then VirtualBox will not be running while the computer sleeps.
-
ericovk
- Posts: 8
- Joined: 4. Apr 2012, 11:53
- Primary OS: Mac OS X other
- VBox Version: OSE Debian
- Guest OSses: CentOS 6.8 and 7.0
Re: Run VirtualBox when machine account is logged off
Thanks! Works like a charm.
But there is one more thing. If I don't log out with Fast user switching and OSX is logging off automatically (by sleep or screensaver lock), the VirtualBox shows a prompt for each virtual machine with the option to Save machine state / Send shutdown signal / Power off machine. If VirtualBox does that, SSH connection is lost and machines lock.
It's not the worst thing in the world. But it would be really nice to solve
But there is one more thing. If I don't log out with Fast user switching and OSX is logging off automatically (by sleep or screensaver lock), the VirtualBox shows a prompt for each virtual machine with the option to Save machine state / Send shutdown signal / Power off machine. If VirtualBox does that, SSH connection is lost and machines lock.
It's not the worst thing in the world. But it would be really nice to solve
-
ChipMcK
- Volunteer
- Posts: 1095
- Joined: 20. May 2009, 02:17
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, OSX
- Location: U S of A
Re: Run VirtualBox when machine account is logged off
Why not tell OS X to automatically not do that??ericovk wrote:If I don't log out with Fast user switching and OSX is logging off automatically (by sleep or screensaver lock)