5. Configure the new Virtual Machine

Depending on how powerful your host machine is, you may exceed these recommended settings.

  1. Open VirtualBox.  On Windows, you can find it in the Start Menu. On macOS, you can find it in the Applications folder.
  2. Click “New” to create a new Virtual Machine
Click New to create a new Virtual Machine
  1. Fill out the “Name and operating system” details. For name, type “Ubuntu VPN Server” and VirtualBox will automatically set the Type and Version for you. The Machine folder location can be left at its default value.
Set name to “Ubuntu VPN Server” and VirtualBox will set Type and Version automatically.
  1. Select “Memory size.” VirtualBox will show you the available amount of memory on your host system, and green/orange/red beneath the slider. Aim for 4096 MB, but if this is into the orange/red warning areas, you can make it a little less.
Set the memory size to 4096 MB if possible. The edge of the green bar is the maximum you should set this value.
  1. For “Hard disk” select “Create a virtual hard disk now” and click Create
Select “Create a virtual hard disk now” and click create.
  1. Select Hard disk file type. For the purposes of this system, select VDI (VirtualBox Disk Image).
  2. Set “Storage on physical disk” to “Dynamically Allocated“. This will take up the smallest possible amount of space on your host hard disk, while still reporting a 16 GB disk to the virtual machine.
  3. Set File location and size. The location of the virtual hard disk is acceptable at its default location.  Set the size of the virtual disk to 16.00 GB (typing directly into the field is usually easier than the slider)
Set the File location and size. Set the size to 16.00 GB, and leave the location at its default value.
  1. Set “Storage on physical disk” to “Dynamically Allocated“. This will take up the smallest possible amount of space on your host hard disk, while still reporting a 16 GB disk to the virtual machine.
  2. You should see your virtual machine listed in the VirtualBox Manager. Select your virtual machine, and click Settings.
Select your VPN server on the left and click Settings to continue configuration
  1. Under System > Processor: increase processors to the maximum allowed in the green area. For newer host machines, you will likely have many processor cores available.  If you intend to have many simultaneous users, more processors will give your users a better experience.
Set the processors to the maximum number allowed under the green shaded indicator.
  1. Under Network > Adapter 1
    1. Set attached to to “Bridged Adapter
    2. Name should be the name of your ethernet connection.  Typically, this says something like “Intel Ethernet Adapter”
    3. Expand Advanced and copy down the MAC Address
  2. Under Storage > Controller: IDE > Empty, click the small disk icon and select the Ubuntu Server ISO downloaded earlier.
Click the small blue disc to attach the Ubuntu Server ISO downloaded earlier.
  1. Click OK to save these settings.

Your VM is configured! Before booting, you must make configuration changes to your network so that your Virtual Machine is connected to the network properly.

Now is a very good time to take a break!


NEXT: Configuring Network Settings