Modern versions of the Mac OS X operating system support run in a virtualized environment using VirtualBox. Instructions to prepare the Mac OS X image for virtualization might differ vastly depending on the Mac OS X version and the host operating system. Exact instructions lie outside the scope of this book and can be found on the Internet.
Please note that running a guest Mac OS X on a non-Mac host operating system can violate your end user license agreement with Apple Inc., it's better to consult your lawyer about this.
Mac OS X has an OpenSSH client and server preinstalled.
For this recipe, we will require a ready-to-use Mac OS X image (for VirtualBox-VDI) Version 10.7 or later.