Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 2.46 KB

SetupVirtualServer.md

File metadata and controls

60 lines (38 loc) · 2.46 KB

FreePDM Documentation

Setup VirtualBox

General

For setting up a Virtual Machine (VM) in VirtualBox there are multiple tutorials out in the wild. For example use the one from it's foss. This example is for Linux Mint specifically but the principles are the same for Debian, RedHat and other distros.

Network

Before you can have access to your VM/Server you have to setup your VM network. Below is a screenshot of the network preference page. You have to set it as a 'bridged adapter' and set its name to the network adapter that:

  1. your system is using
  2. a second adapter that also has network access.

vbnetworksettings

In this case the standard network adapter is used.

You can check with nmap if you can see that the VM has access to your network.
If you compare both IP addresses (one from nmap and one from setup static ip address) that both IP addresses are the same.
Now you can access your VM via ssh

zenmap

Setup static IP address

A static IP address is an address that doesn't change (as opposed to dynamic IP addresses). Setting up a static IP address is recommended, but not required. If preferred to leave the IP address as is, see below how to check your IP address. For changing an IP address to a static one, see for example this blog or here.

How to check your IP address:
The command ip -a | grep inet gives your current (local) IP address. getipaddress You can access this through your server via your terminal or via Putty.

ssh

ssh is a Secure Shell protocol. As long as you have installed it on both your server and on you system you should be able to remotely login.

Login works as follows:

ssh USERNAME@###.###.###.###

You should be prompted for you password. Type in your password.

ssh_login

Note: if this is the first time connecting via ssh you'll be prompted to confirm and accept ssh key 'handshake'. Please agree to this. On subsequent logins this will not be displayed.

Now you are ready to go.

<< Previous Chapter | Content Table | Next Chapter >>