Automator application and shell script that launches VirtualBox with sudo privilages on macOS
Save the 'LaunchVM.command' to the root of your user folder (i.e. ~/LaunchVM.command). Then run 'VirtualBox Sudo.app'. The app file can be placed anywhere. A terminal window will appear. Enter your password and VirtualBox will be launched with sudo privilages.