./VBoxLinuxAdditions.run
#提示:Kernel headers not found for target kernel. Please install them and execute
#yum install kernel-devel还是不行,
#原因是安装的kernel-devel版本和当前内核版本不一致
#rpm -qa | grep kernel-devel
#uname -r
yum install -y "kernel-devel-uname-r == $(uname -r)"
./VBoxLinuxAdditions.run
经过尝试,安装虚拟机时,CentOS7 1908版本下选择最小化安装,然后只勾选Development Tools,得到的虚拟机安装增强工具时,不会报错.
网友评论