CentOS 7 as vbox guest - jneubert/doc GitHub Wiki

Preparations in vbox

  • Use latest (currently 4.3.18) vbox software
  • Create virtual machine
  • Add network devices as required (to be recognized by Centos installer)

Install CentOS

  • Download Centos ISO and insert (Settings -> Storage)
  • On the "Installation summary" screen
  • let Software Selection at the default (Minimal Install)
  • add and prioritize national keyboard
  • activate network adapters
  • set hostname
  • set timezone and activate ntp (requires active network)
  • adapt Installation Destination as required (defaults work fine)
  • Begin installation
  • Set root password, add user
  • After first boot, login as root and update system
yum upgrade
reboot

VBox guest addtions

  • Install required software
yum install bzip2 kernel-devel gcc perl
  • Insert (Devices -> Insert Guest Additions CD image) and mount ISO, run install
mount /dev/cdrom /mnt
/mnt/VBoxLinuxAdditions.run
umount /mnt

Install additional software

basic

yum install wget git atop vim

additional yum repositories

yum install epel-release
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

web/db

yum install httpd httpd-devel php php-devel php-pgsql php-mbstring postgresql postgresql-devel

Weblinks

https://community.centminmod.com/threads/centos-7-0-install-on-virtualbox-guest-server.730/