如何解决VirtualBox中CentOS 7虚拟机无法安装Guest Additions的问题

缺少编译工具和内核header是出现问题的原因。解决方法如下:

# 1. update kernel
yum update kernel -y

# 2. Install the kernel-headers, kernel-devel and other required packages
yum install kernel-headers kernel-devel gcc make -y

# 3. Reboot the server to make sure it load to the new kernel
init 6
Leave a Reply

发表评论