Skip to content

Instantly share code, notes, and snippets.

@ChrisTollefson
Last active March 8, 2020 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisTollefson/effcd8ab3f960c5f56e92ac44652ae8f to your computer and use it in GitHub Desktop.
Save ChrisTollefson/effcd8ab3f960c5f56e92ac44652ae8f to your computer and use it in GitHub Desktop.
CentOS Linux in VirtualBox

CentOS Linux in VirtualBox

VirtualBox VM settings

General

  • Basic
    • Name: CentOS Linux 8.1.1911 (x86_64)
    • Type: Linux
    • Version: Red Hat (64-bit)

System

  • Motherboard
    • Base Memory: 4096 MB
    • Boot Order:
      • Hard Disk
      • Optical
      • Network
      • Floppy
  • Processor
    • Processor(s): 2

Display

  • Screen
    • Video Memory: 128 MB

Storage

  • Storage Devices
    • Controller: IDE
      • CentOS-8.1.1911-x86_64-dvd1.iso
    • Controller: SATA
      • disk0.vdi: 32.00 GB VDI (VirtualBox Disk Image), Dynamically allocated

CentOS installation settings

Installation Summary screen

  • Software Selection
    • Base Environment: Server with GUI
    • Additional software for Selected Environment:
      • Guest Agents
  • Network & Hostname
    • Ethernet: ON
  • Installation Destination
    • Leave the default hard drive selected — just click Done at the top.
  • Begin Installation

During installation

  • Root Password
  • User Creation
    • Make this user administrator

CentOS system settings

After installation is complete:

  • Indicator menu (top right corner) ▼ Settings (🛠)
    • Power
      • Blank screen: Never
    • Devices ▶ Displays
      • Resolution: 1280 × 960 (4:3)

CentOS updates

  • Activities (top left corner) ▶ Software
    • Updates tab ▶ Download
      • This may take awhile.
      • Reboot when prompted.

VirtualBox Guest Additions

Install prerequisites

  • Activities (top left corner) ▶ Terminal
    • Install kernel headers:
      • sudo yum install kernel-devel
    • Install development tools (GNU Compiler Collection, Make, and Perl):
      • sudo yum install gcc make perl
    • Install ELF development libraries and headers:
      • sudo yum install elfutils-libelf-devel.x86_64

Install VirtualBox Guest Additions

  • Activities (top left corner) ▶ Files
    • Eject CentOS-8-1-1911-x86_64-dvd
  • Release the mouse from the VM by pressing VirtualBox's configured "host key".
    • Windows: Right Ctrl by default.
    • macOS: Left Command (⌘) by default.
  • VirtualBox VM ▶ Devices menu ▶ Insert Guest Additions CD image...
    • In the VM, it should prompt to run it; do so.
    • This may take awhile.
    • Eventually, it should complete without any warnings or error messages.
      • Press Return to close this window...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment