Running a Ubuntu Server VM in Virtualbox
#UbuntuServer #Linux #Virtualbox
Full steps can be found at https://i12bretro.github.io/tutorials/0422.html
01. Download Ubuntu Server https://ubuntu.com/download
02. Launch Virtualbox
03. Create a New VM by selecting Machine ≫ New
Name: Ubuntu Server
Machine Folder: C:\VMs
Type: Linux
Version: Ubuntu (64-bit)
Memory Size: 2048MB
Hard disk: Create a virtual hard disk now
04. Click Create
05. On the Create Virtual Hard Disk dialog
Name the virtual disk image Ubuntu Server.vdi
File size: 30 GB
Hard disk file type: VDI
Storage on physical hard disk: Dynamically Allocated
06. Click Create
07. Select the VM and Click Settings
08. Select System ≫ Processor
09. Give the VM at least 2 processors
10. Select Network
11. Set the attached to dropdown to Bridged Adapter
12. Select Storage
13. Click on the CD-ROM drive
14. Select the disc dropdown to the right ≫ Choose a virtual optical disc file...
15. Browse to and select the downloaded Ubuntu Server .iso file
16. Click OK
17. Make sure the Ubuntu Server VM is selected and click Start ≫ Normal
18. Select a language ≫ Press Enter
19. Select a keyboard layout ≫ Arrow down to select Done ≫ Press Enter
20. Press Enter to accept the network configuration
21. Leave the proxy address empty ≫ Press Enter
22. Leave the mirror address the default value ≫ Press Enter
23. Leave the storage configuration default ≫ Arrow down to select Done ≫ Press Enter
24. Press Enter to accept the storage configuration
25. Arrow down to select Continue ≫ Press Enter
26. Complete the profile form ≫ Arrow down to select Done ≫ Press Enter
27. Press spacebar to select installing the SSH server ≫ Arrow down to select Done ≫ Press Enter
28. Use spacebar to select any additional software installations ≫ Arrow down to select Done ≫ Press Enter
29. Wait while Ubuntu copies files and installs
30. Once the installation completes ≫ Arrow down to select Reboot Now ≫ Press Enter
31. If the reboot gets stuck, manually restart the VM by select Machine ≫ Reset
32. Welcome to Ubuntu Server
--------------------------------------------------------------------
Optional Steps
--------------------------------------------------------------------
01. Log in with the credentials setup during the installation
02. Run the following commands to install updates
sudo apt update
sudo apt upgrade -y
sudo apt clean
03. Select Devices ≫ Insert Guest Additions CD image...
04. Run the following commands to install VirtualBox Guest Additions
sudo mkdir /media/cdrom
sudo mount /dev/cdrom /media/cdrom
sudo apt dkms build-essential linux-headers-generic linux-headers-$(uname -r)
sudo /media/cdrom/VBoxLinuxAdditions.run
sudo reboot
05. The VM will reboot
06. Log back into Ubuntu Server
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro