how to solve if centos 7.2 has no internet connection after installation in virtualbox:
NAT – adapter in virtual box is set
sudo nano /etc/sysconfig/network-scripts/ifcfg-enp0s3
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
IPV4_FAILURE_FATAL=no
IPV6_INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s3
UUID=UUID HERE (sorry I cannot copy from my guest host yet, no Guest Additions and it was too long)
DEVICE=enp0s3
# change this line from no to yes!!
ONBOOT=yes
you can also try to type in terminal but things should work without disabling the firewall:
systemctl disable firewalld
systemctl status firewalld
::::: guest additions install ::::::
terminal:
su -
yum update kernel*
yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
then reboot and mount the guest additions CD – and autorun it. after that reboot
(see: http://www.itzgeek.com/featured/install-virtualbox-guest-additions-on-fedora-15-centosrhel-66-25-7.html#axzz3Ft7j95lI )
shared folders: in virtualbox-einstellungen den ordner hinzufügen und auto-mount anhaken (zb virtualbox-share), virtualbox starten. es sollte nun der ordner virtualbox-share am desktop liegen. bei doppelklick kommt die fehlermeldung:
keine ausreichenden benutzerrechte für diesen ordner.
checke im terminal als root die benutzerrechte für /media/sf_virtualbox-share
cd /media/sf_virtualbox-share
ls -l
wenn der standard user nicht als inhaber des ordners angeführt ist:
usermod -aG vboxsf <youruser>
chown username filename
im anschluss logout + login. sollte gehen.