As mentioned, we will need a Virtual Machine. We are going to use Oracle VM VirtualBox to host our VMs, which you can download at: https://www.virtualbox.org (I have downloaded the VirtualBox 5.1.12 platform package for Windows). Download the version that is applicable to you on the downloads page and install it on your computer. I've left all the defaults as they were, but you can change them as you see fit (at your own risk). If all goes well, you should soon see the Oracle VM VirtualBox Manager, as follows:
To create a new VM, click the New button. You then get to pick a name (I have called my VM CI server), a type (Linux), and a version (Ubuntu (64-bit), which is the default). The next window lets you specify the amount of memory. The default is 1 GB, but I recommend making that 4 GB (4096 MB), unless you are only going to run GitLab on it...