Skip to content

Instantly share code, notes, and snippets.

@gyfoster
Last active April 8, 2019 14:46
Show Gist options
  • Save gyfoster/5cd0330e8e34437bce960d25de5052e8 to your computer and use it in GitHub Desktop.
Save gyfoster/5cd0330e8e34437bce960d25de5052e8 to your computer and use it in GitHub Desktop.
Instructions for setting up a CentOS 7 VM in VirtualBox
CentOS 7 in VirtualBox Setup
VirtualBox VM settings:
1. General —> Advanced
1. Shared Clipboard: Bidirectional
2. Drag’n’Drop: Bidirectional
2. System —> Motherboard
1. Base Memory: max out green
2. Pointing Device: USB Tablet
3. System —> Processor —> Processor(s): max out green
4. Display —> Screen —> Video Memory: max out green
Installation Summary in VM:
- SYSTEM —> INSTALLATION DESTINATION: select disk
- SYSTEM —> NETWORK & HOST NAME: turn Ethernet on
CentOS 7 VM:
1. $ sudo su
2. # yum update -y && yum upgrade -y
3. # yum install -y epel-release
4. # yum groupinstall “Server with GUI” -y
5. # yum groupinstall -y “Xfce”
6. # systemctl set-default graphical.target
7. # reboot
8. On login, select “Xfce Session” from gear next to “Sign In”
9. VirtualBox toolbar —> Devices —> Insert Guest Additions CD Image
10. Right click on Guest Additions CD icon on Desktop —> mount
11. $ sudo su
12. # yum install make gcc kernel-headers kernel-devel perl dkms bzip2
13. # export KERN_DIR=/usr/src/kernels/$(uname -r)
14. # cd /run/media/$USER/VBox_GAs_6.0.4
15. # ./VBoxLinuxAdditions.run
16. # reboot
17. # eject /run/media/$USER/VBox_GAs_6.0.4
18. VirtualBox toolbar —> Devices —> Shared Folders —> Shared Folder Settings: fill in settings
19. $ sudo usermod -aG vboxsf $USER
20. Log out, log in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment