Setup CentOS VM’s
- Install VirtualBox (a.k.a. VB) and the extension pack
- Download the ISO from HTTP://centos.org/download
- Set up a new VM with centos default settings
- Use hostname: rhhost1
- Tip: Ensure virtual support is enabled in BIOS/UEFI/hostOS
- Tip: enter centos as hostname so that VB pre-populates all RedHat settings for you, then change the hostname to whatever you want
- Tip: Ensure you set the HDD size to at least 10 GB for CentOS 8.4
- After the VM is set up, update settings as follow
- In System > Motherboard, change Memory to 2 GB
- In System > Processor, increase processor count where possible for better performance
- In Acceleration > Paravirtualization Interface, use one of the following: Default, Legacy, Hyper-V, KVM
- Tip: You may choose Default or Legacy to make it work, then change to other options later
- In Display > Screen, increase Video Memory (to 128 MB), change Graphics Controller to VBoxSVGA for better performance if Linux host is used, and check Enable 3D Acceleration
- Start the VM usingthe downloaded CentOS iso, complete the install with settings below
- For software package, choose Server with GUI
- Set up additional admin users
- Set up persistent network connection
- In the top right menu, click Wired Off then Wired Settings, turn on Wired, click on the gear icon, check Connect Automatically
- Set up VBoxGuestAdditions for better graphics, network, and mouse integration
- Open a terminal
- sudo yum update -y
- sudo reboot
- Tip: skipping this task may cause subsequent tasks to fail
- sudo yum group install -y “Development tools”
- sudo yum install -y kernel-devel
- Close the terminal
- Under Device menu of the VM, choose Insert Guest Additions CD image… and Run
- Open a terminal
- Set up network
- Turn off the VM
- In Network > Adapter 1 of the VM configuration, change Attached to to Bridged Adapter and choose the name for the host adapter
- Do the same for Adapter 2
- Set up additional drives for RAID
- In Storage, right click Controller SATA then click Hard Disk
- Create four new disks with default settings, but choose 1 GB for size
- Ensure the new disks have similiar names but with #1-4 at the end
- Attach all four disks in sequence
- Clone CentOS VM
- While the VM is off, right-click the VM and click clone
- Use hostname rhhost2
- Choose Generate new MAC addresses for all network adapters
- Choose Keep Disk Names
- Choose Linked clone
- Confirm VM’s are working
- Boot up the VM’s and confirm network connectivity
- You may turn off the VM’s, and in System > Acceleration, change Paravirtualization Interface to Hyper-V or KVM for better performance as needed
- Boot up the VM’s again and confirm
- Update hostname(s) as needed
- Open a terminal
- sudo hostnamectl set-hostname rhhost1.localnet.com
- Create snapshots
- Ctrl-T to initiate, enter a name (e.g. Base install), and create the snapshot
- To restore to the snapshot, click the red X on top right to close the window, choose Power Off, and check Restore to the snapshot on boot
Setup Ubuntu VM
Perform all steps for CentOS with exceptions below
- Already completed with CentOS and no need to repeat
- Download the 64-bit Ubuntu desktop iso
- Install using hostname ubhost1 and change HDD size to at least 15 GB for Ubuntu 20.04
- No change for this step
- Start the VM using the downloaded Ubuntu iso
- Network connection should already be persistent
- No terminal command should be required, just choose Insert Guest Additions CD image… and Run
- No need to set up network
- No need to setup additional drives
- No need to clone
- No change for this step
- No change for this step