CentOS 8 安装 VirtualBox 增强功能
环境介绍
- Machine: NUC8i5BEK
- OS: macOS Catalina 10.15.6
- VirtualBox: 6.1.12 r139181 (Qt5.6.3)
- CentOS: 8.2.2004-x86_64
安装步骤
为虚拟机实例分配光驱
虚拟机菜单栏 -> 设备 -> 分配光驱 -> VBoxGuestAdditions.iso,如 CD-ROM 被占用请强制释放。
挂载 CD-ROM
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
安装依赖
dnf group install -y "Development Tools"
dnf install -y elfutils-libelf-devel
运行安装文件
cd /mnt/cdrom
sh VBoxLinuxAdditions.run
故障排查
未能加载虚拟光盘
点击虚拟机菜单栏 -> 设备 -> 安装增强功能,弹出"未能加载虚拟光盘 /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso 到虚拟电脑 CentOS."的提示,这个可以忽略,我们将通过命令行的方式安装。
运行安装文件报错
- "This system is currently not set up to build kernel modules. Please install the gcc make perl packages from your distribution. ": 这是在提示我们安装 gcc、make 和 perl,可以通过安装开发工具集合"Development Tools"来解决。
- "VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong modprobe vboxguest failed": 这里没有直接给出错误原因,而是让我们去看日志。执行
less /var/log/vboxadd-setup.log查看日志,显示"Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel",这是在提示我们需要安装 libelf-dev, libelf-devel, elfutils-libelf-devel 三者之一,经测试,默认源中只有 elfutils-libelf-devel,安装它即可。
命令见 "安装步骤 -> 安装依赖"。
CentOS 8 安装 VirtualBox 增强功能的更多相关文章
- Debian虚拟机安装VirtualBox增强功能
作者:荒原之梦 原文链接:http://zhaokaifeng.com/?p=573 本文中使用的Debian是安装在VirtualBox中的虚拟机,具体参数如下: Debian版本:Linux de ...
- Ubuntu 12.10 安装VirtualBox增强功能
原文链接:http://fengbaoxp.iteye.com/blog/1871825 Ubuntu 12.10 Desktop 首先,通过VirtualBox菜单(设备->安 ...
- CentOS 6.3 中安装VirtualBOX增强工具失败:Building the main Guest Additions module[FAILED]
在VirtualBox里安装CentOS系统,会遇到“增强工具”无法正常安装,主要的原因是出在Kernel 库找不到. 错误提示如下: 通过查看日志文件: cat /var/log/vboxadd- ...
- 宿主系统为Ubuntu 14,CentOS 6.5 安装VirtualBox增强工具失败:Building the OpenGL support module[FAILED]
安装先前的笔记:CentOS 6.3 中安装VirtualBOX增强工具失败:Building the main Guest Additions module[FAILED],执行了以下命令 #安装 ...
- 虚拟机安装VBoxAdditions增强功能
在VirtualBox上安装好CentOS后,需将VBoxAdditions增强功能安装上,该功能有如下作用: (1)实现客户机和主机间的鼠标平滑移动 (2)与主机实现文件共享 (3)安装虚拟显卡驱动 ...
- Centos7.5 安装VirtualBox增强工具
一.安装 1.自带tools: 选择VirtualBox工具栏 => 设备 => 安装增强功能 2.挂载光驱 3.进入光驱目录,执行(一定要用root权限执行) ①安装gcc yum i ...
- CentOS x64安装Virtualbox
今天在CentOS 6.5 x64系统上装了个Virtualbox,这里记录下整个安装过程. 1.去官网下载Virtualbox及其扩展包,同时还要下载dkms,具体如下: Virtualbox:ht ...
- centos安装VirtualBox增强包VBoxGuestAdditions
1.如果你的CentOS 版本早于 6,那么需要在 /etc/grub.conf 中添加一行 divider=10,以将这个参数传递给核心,以减少 idle CPU load. 2.#yum up ...
- CentOS安装VirtualBox增强工具
安装过程中出现错误: Bulding the VirtualBox Guest Additions Kernel modules failedYour system does not seem to ...
随机推荐
- A review of learning in biologically plausible spiking neural networks
郑重声明:原文参见标题,如有侵权,请联系作者,将会撤销发布! Contents: ABSTRACT 1. Introduction 2. Biological background 2.1. Spik ...
- Python语言中的关键字(自己做的读书笔记)
电脑配置:联想笔记本电脑 windows8系统 Python版本:2.7.8 本文章撰写时间:2015.1.1 作者:陈东陈 阅读说明: 1.本文都是先解释,后放图片: 2.文中斜体部分要么为需要输入 ...
- ent orm笔记2---schema使用(上)
在上一篇关于快速使用ent orm的笔记中,我们再最开始使用entc init User 创建schema,在ent orm 中的schema 其实就是数据库模型,在schema中我们可以通过Fiel ...
- Java面试题(Spring Boot/Spring Cloud篇)
Spring Boot/Spring Cloud 104.什么是 spring boot? SpringBoot是一个框架,一种全新的编程规范,他的产生简化了框架的使用,所谓简化是指简化了Spring ...
- Qt QDialog添加最大化和最小化按钮
Qt QDialog添加最大化和最小化按钮(转载) QDialog窗体右上角默认是没有最小化和最大化按钮的. 1.效果 2.上代码 1 // 设置窗体最大化和最小化 2 Qt::WindowFlags ...
- python 四位玫瑰数 + 100以内素数求和
四位玫瑰数 描述 ...
- 【原】“Error getting 'android:label' attribute”
项目上线过程中遇到“Error getting 'android:label' attribute: attribute is not a string value”这个错误. 备忘下:是因为有act ...
- 常用mac命令
~/.bash_profile 可以添加常用的一些命令别名alias unity="open -n /Applications/Unity/Unity.app"
- tokitsukaze and RPG(暴力优化)
链接:https://ac.nowcoder.com/acm/contest/308/B 来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言5242 ...
- cdispaly的Grid布局与Flex布局
cdispaly的Grid布局与Flex布局 Gird 布局与 Flex 布局有一定的相似性,都是对容器的内部项目进行划分. Flex 布局是轴线布局,只能指定项目针对轴线的位置,可以看作成一维布局 ...