https://tecadmin.net/install-oracle-virtualbox-on-centos-redhat-and-fedora/
when install the dependency, we also need to install the following
sudo yum install kernel-devel kernel-devel-2.6.32-754.el6.x86_64
- virutalbox install the centos netowrk config
Without a GUI
If you're attempting to do this on a headless server you can edit the following files and reboot to get your eth0 networking device to come up enabled and acquire an IP address from a DHCP server. Change these 2 options in the file, /etc/sysconfig/network-scripts/ifcfg-eth0:
ONBOOT="yes"
NM_CONTROLLED="no"