5. Configure the new Virtual Machine
Depending on how powerful your host machine is, you may exceed these recommended settings.
- Open VirtualBox. On Windows, you can find it in the Start Menu. On macOS, you can find it in the Applications folder.
- Click “New” to create a new Virtual Machine

- 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.

- 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.

- For “Hard disk” select “Create a virtual hard disk now” and click Create

- Select Hard disk file type. For the purposes of this system, select VDI (VirtualBox Disk Image).
- 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.
- 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 “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.
- You should see your virtual machine listed in the VirtualBox Manager. Select your virtual machine, and click Settings.

- 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.

- Under Network > Adapter 1
- Set attached to to “Bridged Adapter“
- Name should be the name of your ethernet connection. Typically, this says something like “Intel Ethernet Adapter”
- Expand Advanced and copy down the MAC Address
- Under Storage > Controller: IDE > Empty, click the small disk icon and select the Ubuntu Server ISO downloaded earlier.

- 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!