Resources
VirtualBox (https://www.virtualbox.org/wiki/Downloads) or you can also use VMWare Player or VMWare Workstation or Fusion if you have one of those.
Download the latest LTS Ubuntu Server (20.04): https://releases.ubuntu.com/20.04.1/ubuntu-20.04.1-live-server-amd64.iso
Instructions
Option 1: VMware Player
- Download the Ubuntu Server ISO (listed at top of this page).
- Select Create a new virtual machine
- Select Use ISO image and browse and select the .iso you downloaded. Press ‘Next’.
- Enter your name, username, and password. Select ‘Next’.
- Choose a location to save your VM files. Select ‘Next’.
- Leave storage size at least 20GB. Choose option to store as single file. Select ‘Next’.
- Choose ‘Customize Hardware’.
-
- Select ‘Memory’ and set to 2048mb (2GB).
- Select ‘Network Adapter’ and select radial ‘Bridged’.
- Select ‘Close’.
- Select ‘Finish’.
You can now skip to the Ubuntu Installation section.
Option 2: VirtualBox
- Install VirtualBox and Download the Ubuntu Server ISO.
- In VirtualBox, select Machine > New from the top menu to build a new Virtual Machine:
- On the next screen, designate either 1024mb or 2048mb of RAM for the server. (Preferably 2GB but if your computer has low RAM, use 1GB)
- On the next screen, select to ‘Create a virtual hard disk now’ and then ‘Virtualbox Disk Image’
- On the next screen, select ‘Dynamically allocated’
- On the next screen, set the disk size to 15GB. You can set more if you would like, but it is very lean.
- We have the container for our virtual machine made. Now we need to put the installation media into our VM so we can boot from it and install.
- In the VirtualBox Manager window, select your newly created VM and select the Settings button (or you can right click it and select Settings)
- In the resulting screen, select the Storage tab on the left.
- Select the optical drive under Controller: IDE
- In the Attributes section, click the CD image next to the drop down menu, and use the option to Choose a file to browse to the downloaded Ubuntu Server ISO file.
- Check the box for ‘Live CD/DVD’
- The result should look like the following:
- We also want to set up the Virtual Machine’s network so we can see it from our host computer. While still in the Settings window:
- Select the Network tab on the left.
- On the Adapter 1 tab, change the ‘Attached to: ‘ from NAT to Bridged Adapter
- Select the OK button to save our changes.
Installing Ubuntu Server
- In the VM Manager window, select the Server VM we created, and select Start.
- Install Ubuntu Server using the installation guide *Note that the terminal is text-only input. You cannot use a mouse and will use the arrow keys to navigate. Press enter to select. *
- Select your language
- Select ‘Update to the new installer’
- Select your keyboard configuration
- On the Network Connections page, select Done to accept defaults
- On the Configure Proxy page, select Done to skip
- On the Configure Ubuntu Archive Mirror page, select Done to accept defaults
- On the Guided Storage Configuration page, ensure Use an entire disk is select, then arrow down and select Done
- On the Storage Configuration, select Done to confirm and then select Continue to confirm again.
- On the Profile setup screen, enter your information and select Done:
- On the SSH Setup page, check the box for Install OpenSSH server and select Done.
- On the Featured Server Snaps, select Done to skip.
- At this point, the operating system will install and update. Wait until it finishes and the option will say ‘Reboot’.
- After selecting ‘Reboot’, it will begin to reboot but will show ‘Please remove the installation medium’.
- In the VirtualBox Manager window (the one that lists all your virtual machines) Right click the VM and select Close > Power off. Confirm to Power off.
- Select the Settings button.
- Select Storage in the left panel.
- Under the Controller: IDE select the ubuntu-18.04 cd.
- Select the cd image next to the drop down menu and select ‘Remove disk…’
- Select OK
- Start the Virtual Machine again.
- It will do some initial setup, press the return key once it pauses to access the login prompt
- Enter your username
- Enter your password * Note it will not show any indication of typing for security purposes. Type the password and hit enter. *
- Once your logged in, you should see a screen like the following:
- It will do some initial setup, press the return key once it pauses to access the login prompt
Congratulations! You have a Ubuntu Server virtual machine running!