The machine installed with VirtualBox is known as the host. In this example, the host is a MS Windows 7 computer with virtual machine guest OS being Centos Linux 6. SSH client such as Putty is run on the host computer and will attempt to connect to the virtual machine. This will also allow multiple guest OS to SSH between one another.
Step 1: Configure VirtualBox networkingShutdown all guest virtual machines. Open VirtualBox Manager, click on the virtual machine to be configured and choose Settings ->Network. There should already be an existing network for access to the Internet. Nothing needs to be changed if you can already access the Internet from the guest OS.
|Guest virtual machine default networking with access to Internet|
Choose one of the unused Adapter (example Adapter 2) and configure the settings:
Step 2: Configure a static IP on guest OS.
Step 3: Restart the guest virtual machine.
|Guest VM network for Internet and SSH|
|Guest virtual machine network routing|