A common problem for dual-boot Mac lab administrators is ensuring that all dual boot Macs are booted into Windows during a scheduled maintenance window. Dual-boot Macs may be booted into OS X and never receive the updates required to keep the Windows operating systems secure and in compliance with mandated security policies. Boot Runner helps solve this problem by ensuring that Boot Camp Windows systems are ready during scheduled maintenance windows.
This support document will cover:
- Scheduling the auto-select volume feature in Boot Runner
- Configuring idle time and boot behavior in OS X and Windows
- Remote commands for immediate restart into Boot Camp
- Mac OS X running Boot Camp or a virtual machine Windows host
- Boot Runner 2
- (optional) Apple Remote Desktop or other Mac enterprise management software
Automatically Select Volume
The Boot Runner Configuration app is located in the Utilities folder. Please see the Boot Runner 2 Admin Guide for an overview of Boot Runner features and settings.
Specify the volume name or identifier in the Automatically Select Volume field. Examples will illustrate the most common configuration, scheduling start up of an alternate boot volume.
1. System Preference -> Startup Disk must be set to the OS X volume where Boot Runner is installed.
2. System Preferences-> Users & Groups-> Login Options must have auto-login DISABLED
A standard Boot Camp is usually installed on the fourth partition and named "BOOTCAMP", but check each of your systems to ensure a correct volume name. Boot Runner accepts volume or BSD names, so "disk0s4" (for example) may also be used in the Automatically Select Volume field.
Below Automatically Select Volume is a checkbox to specify the time period when the Mac boots into the specified volume. If this box is left unchecked, the Mac will always boot into the specified volume after each restart, which may not be what you want. The selection range for this setting is one hour up to 23 hours.
Boot Runner is active when OS X is in a logged out state. If a user is logged in to OS X or booted into Windows, Boot Runner is not active. For time-based actions like the auto-select scheduler to work, it is recommended to implement a log out policy. This can be done manually in System Preferences-> Security & Privacy-> General-> Advanced -> "Log out after x minutes of activity" or by using configuration profiles to do the same. On the Windows side use Group Policy or set manually by creating a log out on idle time task, shut down and reboot back to the Boot Runner screen.
"Log out when idle" scripts should be tested and fine tuned to ensure that unresponsive applications can be terminated gracefully and do not hang up the log out action.
The ideal result is that regardless of state left by the last user, the Mac always returns at the Boot Runner selection screen, waiting on login, automation or remote management.
Changes made to Boot Runner preferences take effect immediately, which is useful tool for remotely starting up Boot Camp outside of scheduled maintenance windows.
Send a Terminal command to select Boot Camp (disk0s4) to be selected automatically at startup:
sudo defaults write /Library/Preferences/com.twocanoes.bootrunner.plist AutomaticallySelectVolume disk0s4
Disable scheduling so the change will take effect immediately:
sudo defaults write /Library/Preferences/com.twocanoes.bootrunner.plist LimitTimes No
It's also a good practice to set the restart countdown at several minutes (shown in seconds) to provide enough time after maintenance is complete to disable automatic restart into Boot Camp. Setting a delay of 300 seconds provides a five minute time window after restart in which to send a command to disable automatic volume selection:
sudo defaults write /Library/Preferences/com.twocanoes.bootrunner.plist AutoSelectTimeout 300
Boot Runner will restart into Boot Camp and Windows is ready to receive software updates. Once completed, send Windows the command to restart (shutdown.exe -r) and the Macs will once again start up in OS X. Boot Runner will start the countdown to reboot again into Boot Camp. Before that countdown completes, remove the AutomaticallySelectVolume setting so the Macs will remain at the Boot Runner Selection screen:
sudo defaults delete /Library/Preferences/com.twocanoes.bootrunner.plist AutomaticallySelectVolume
Please see the Boot Runner 2 Admin Guide for a complete list of all available Boot Runner settings that can be managed with Configuration Profiles, Managed Preferences and "sudo defaults" commands.