

To do this, we want to be able to easily interface with the virtual machine over a local network. If you want shared folders, as I did, you should also install the VirtualBox guest additions after install (after inserting the guest aditions image into the virtual machine, you can run sudo mount /dev/cdrom /mnt and run the install script in /mnt as root to do so).Ī headless virtual machine is essentially one that you control entirely over SSH, much like a server you may be hosting on a site like DigitalOcean or Linode, instead of using the window provided by your virtualization software.

Then just install your system as normal within VirtualBox. Choose the right OS options and your desired amount of RAM and storage space (I opted for 1GB of RAM and 8GB of storage, but your needs may result in you needing more or less of either). To start, open VirtualBox and create a new virtual machine, as you would with any other. If you have all of that, and some time, then you’re ready to create your own headless Ubuntu virtual machine!

a Mac, preferrably running the latest macOS/OS X release (I’m using OS X 10.11 El Capitan).To solve this problem, I decided to run a headless Ubuntu Server 16.04 LTS virtual machine, one that isn’t confied to a virtual monitor that I can connect to over SSH, on top of macOS using VirtualBox. I really love my Mac, and I love macOS (though that new rename from OS X is a little odd), but sometimes, despite macOS being Certified UNIX, development is sometimes just easier with a Linux distribution than the BSD based Darwin kernel and macOS that sits above it.
