在VirtualBox里安装CentOS系统,会遇到增强工具无法正常安装,[Building the main Guest Additions module]主要的原因是出在Kernal 库找不到。
安装 gcc g++ 编译器,安装内核Kernal库
- yum install gcc-g++
- yum install kernel
重启,再安装.还不行. 继续执行
- yum install kernel-devel
还不行
- yum update kernel
===================== vi /etc/sysconfig/network
===================================== 如果是centos7没这问题. 虚拟机装了之后,第一次启动 Initial setup of CentOS Linux 7 (core)
- [x] Creat user 2) [!] License information (no user will be created) (license not accepted) Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]: 解决方法: 输入“1”,按Enter键 输入“2”,按Enter键 输入“q",按Enter键 输入“yes”,按Enter键