Running a CentOS 8 VM in Virtualbox 🌱

  1. Download CentOS 8 Download
  2. Launch Virtualbox
  3. Create a New VM by selecting Machine > New

    Name: CentOS 8
    Machine Folder: C:\VMs
    Type: Linux
    Version: Red Hat (64-bit)
    Memory Size: 4096 MB
    Hard disk: Create a virtual hard disk now

  4. Click Create
  5. On the Create Virtual Hard Disk dialog

    Name the virtual disk image CentOS 8.vdi
    File size: 30 GB
    Hard disk file type: VDI
    Storage on physical hard disk: Dynamically Allocated

  6. Click Create
  7. Select the VM and Click Settings
  8. Select System > Processor
  9. Give the VM at least 2 processors
  10. Select Display
  11. Slide the Video Memory to 128 MB
  12. Select Network
  13. Set the attached to dropdown to Bridged Adapter
  14. Select Storage
  15. Click on the CD-ROM drive
  16. Select the disc dropdown to the right > Choose a virtual optical disc file...
  17. Browse to and select the downloaded CentOS 8 .iso file
  18. Click OK
  19. Make sure the CentOS 8 VM is selected and click Start > Normal
  20. Press Ctrl+C to cancel the disk check
  21. When the install dialog displays click Install CentOS Linux
  22. Select a keyboard layout > Click Continue
  23. Click the Installation Destination button
  24. Click the ATA VBOX HARDDISK to select it
  25. Set the Storage Configuration to automatic
  26. Click Done in the top left of the dialog
  27. Click the Network and Hostname option
  28. Set the VM hostname
  29. Click Done in the top left of the dialog
  30. Click Begin Installation
  31. Under User Settings, select Root Password
  32. Set a root password and click the Done button
  33. Again under User Settings, select User Creation
  34. Set a username and password and click the Done button
  35. Wait for the installation to complete copying files
  36. Once complete, Click Devices > Optical Drives > Remove disk from virtual drive
  37. Select Force unmount
  38. Click the Reboot button, the VM will reboot
  39. Welcome to CentOS 8

Optional Steps

  1. Click the Applications button > Search "terminal" > Click Terminal
  2. Run the following commands to install updates
    sudo yum update
  3. Select Devices > Insert Guest Additions CD image...
  4. If the installation autoruns, select Run
  5. Open the Files application > Select the Guest Additions Disc > Right click in the white space > Open terminal here
  6. In the Terminal window run the following commands
    sudo yum install dkms elfutils-libelf-devel
    sudo yum groupinstall "Development Tools"
    sudo ./
    sudo reboot
  7. The VM will reboot
  8. Upon rebooting, you can now full screen the VM and the internal resolution will automatically change to match the window size
  9. Log back into CentOS