I am running a FreeBSD systems for testing in VirtualBox. This is fully setup with a desktop environment. When I only want to work with the system on the command line, I usually start VirtualBox as --type=headless, and of course in this mode, X.org and the desktop environment would not be needed. So, I am looking for a quick check on whether VirtualBox got a head or not, for in case it is 'headless', not to start the desktop environment. Can this be done somehow?