virtualbox 安装时Kernel driver not installed (rc=-1908) 错误的解决方法参照文章



1. Change to root User

su -
## OR ##
sudo -i

2. Install Fedora or RHEL Repo Files

cd /etc/yum.repos.d/
 
## Fedora 18/17/16/15/14/13/12 users
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
 
## CentOS 6.3/6.2/6.1/6/5.9 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.9 users
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

3. Update latest packages and check your kernel version

Update packages

yum update

Check that that you are running latest installed kernel version
Output of following commands version numbers should match:

rpm -qa kernel |sort |tail -n 1
 
uname -r

Note: If you got kernel update or run older kernel than newest installed then reboot:

reboot

4. Install following dependency packages

CentOS 6/5 and Red Hat (RHEL) 6/5 needs EPEL repository, install it with following command:

## CentOS 6 and RHEL 6 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
 
## CentOS 5 and RHEL 5 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
 
## PAE kernel users install ##
yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-PAE-devel dkms

5. Install VirtualBox Latest Version 4.2 (currently 4.2.6)

yum install VirtualBox-4.2

Note:
This command create automatically vboxusers group and VirtualBox user must be member of that group.
This command also build needed kernel modules.

Rebuild kernel modules with following command:

/etc/init.d/vboxdrv setup
## OR ##
service vboxdrv setup

6. Add VirtualBox User(s) to vboxusers Group

Replace user_name with your own user name or some another real user name.

usermod -a -G vboxusers user_name

7. Start VirtualBox

Use launcher from menu or simply run:

VirtualBox

Troubleshooting

If you have problems with KERN_DIR parameter or your kernel directory is not automatically detected then set KERN_DIR environment variable manually, using following method:

## Current running kernel on Fedora ##
KERN_DIR=/usr/src/kernels/`uname -r`
 
## Current running kernel on CentOS and Red Hat (RHEL) ##
KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m`
 
## Fedora example ##
KERN_DIR=/usr/src/kernels/2.6.33.5-124.fc13.i686
 
## CentOS and Red Hat (RHEL) example ##
KERN_DIR=/usr/src/kernels/2.6.18-194.11.1.el5-x86_64
 
## Export KERN_DIR ##
export KERN_DIR

Check also:

Install VirtualBox Guest Additions on Fedora, CentOS, Red Hat (RHEL)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 虚拟机软件VirtualBox报错rc=-104通常是由于虚拟机的配置文件损坏或丢失所致。解决方法是删除虚拟机的配置文件,然后重新创建虚拟机。具体操作步骤如下: 1. 关闭VirtualBox软件。 2. 找到虚拟机的配置文件,一般在用户目录下的VirtualBox文件夹中,例如C:\Users\用户名\VirtualBox。 3. 找到对应虚拟机的文件夹,文件夹名字为虚拟机的名称。 4. 删除该文件夹中的所有文件,包括.vbox、.vbox-prev、.vdi等。 5. 重新打开VirtualBox软件,创建一个新的虚拟机,按照向导进行配置即可。 如果以上方法无法解决问题,可以尝试卸载并重新安装VirtualBox软件。 ### 回答2: VirtualBox是一款非常流行的虚拟化软件,它可以在不同的操作系统中运行虚拟机。但是,在使用VirtualBox的过程中,有候会遇到各种各样的错误。其中,在启动虚拟机,可能出现rc=-104错误的情况,这是因为VirtualBox没有正确访问硬件设备。 rc=-104错误可能有多种原因,下面是一些可能的解决方法: 1. 检查虚拟机设置。要检查VirtualBox的虚拟机设置,确保所有的配置都是正确的。首先,检查是否正确设置了虚拟机的网络和存储控制器等。然后,确保CPU和内存等设置都是正确的。 2. 禁用Hyper-V。如果在Windows 10中运行VirtualBox遇到rc=-104错误,则需要禁用Hyper-V。在Windows中,可以通过控制面板 > 程序和功能 > 启用或关闭Windows功能来禁用Hyper-V。 3. 更新VirtualBox版本。如果您的VirtualBox版本过低,则可能会导致rc=-104错误。如果是这种情况,请尝试更新VirtualBox的最新版本,并重新启动虚拟机。 4. 重新安装VirtualBox。如果以上方法均无效,可以尝试重新安装VirtualBox。卸载现有版本,并安装最新版本。 总之,rc=-104错误可能源于多种原因。通过检查虚拟机设置、禁用Hyper-V、更新VirtualBox版本或重新安装VirtualBox,您可能可以解决这个问题。如果您的问题无法解决,请考虑寻求有关VirtualBox技术支持的帮助。 ### 回答3: VirtualBox错误rc=-104是指该虚拟机的硬盘空间不足,我们可以通过清理磁盘空间、移除不需要的应用或文件等方式来解决该问题。 下面是具体的解决步骤: 1. 确认硬盘空间:打开VirtualBox,找到该虚拟机的设置选项,点击“存储”,查看该虚拟机的硬盘空间占用情况。 2. 清理虚拟机垃圾:在虚拟机内部,可以采用清理系统自带的磁盘清理工具,如Windows系统的磁盘清理工具,来清理无用的文件和数据,从而腾出更多的硬盘空间。 3. 移除不必要的虚拟机:如果有其他不需要的虚拟机,可以将其移除或者导出至外部硬盘进行备份,从而释放虚拟机的硬盘空间。 4. 虚拟机硬盘扩容:如果以上方法无法解决问题,可以考虑对虚拟机的硬盘进行扩容。具体方法可以查阅VirtualBox的官方文档,或通过搜索引擎查询相关的操作方法。 5. 检查主机硬盘空间:如果以上方法也不能解决问题,需要检查主机硬盘空间是否足够,并将其进行清理。如果主机硬盘空间也不足,需要考虑更换硬盘或者添加外部硬盘。 综上所述,rc=-104的问题主要是由于虚拟机硬盘空间不足所引起的。我们可以通过清理磁盘空间、移除不需要的应用或文件等方式来解决该问题,或者对虚拟机硬盘进行扩容,以确保更多的硬盘空间可用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值