gpt4 book ai didi

kernel - Vagrant up 和 VM 不工作 Fedora 22

转载 作者:行者123 更新时间:2023-12-04 05:47:55 34 4
gpt4 key购买 nike

我有一个问题,当我想使用 vagrant 时出现错误

The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:

VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.

写完后 VBoxManage --version我得到
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.2.3-200.fc22.x86_64) or it failed to
load. Please recompile the kernel module and install it by

sudo /etc/init.d/vboxdrv setup

You will not be able to start VMs until this problem is fixed.
4.2.32r101581

sudo /etc/init.d/vboxdrv setup
我收到错误
Stopping VirtualBox kernel modules                         [  OK  ]
Uninstalling old VirtualBox DKMS kernel modulesError! Could not locate dkms.conf file.
File: does not exist.
[ OK ]
Removing old VirtualBox netadp kernel module [ OK ]
Removing old VirtualBox netflt kernel module [ OK ]
Removing old VirtualBox kernel module [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 4.2.3-200.fc22.x86_64 (x86_64)
Consult /var/lib/dkms/vboxhost/4.2.32/build/make.log for more information.
[ERROR]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [ERROR]
(Look at /var/log/vbox-install.log to find out what went wrong)

我不知道问题出在哪里,我尝试更新 kernel-devel、kernel-headers、dkms 等。我将 VirtualBox 从 4.3.30 降级到 4.2.32,但没有任何效果,请帮我解决这个问题。当我有 4.3.30 版本的 VirtualBox sudo /etc/init.d/vboxdrv setup不起作用,我遇到了 vboxdrv 的问题- 命令不存在。昨天我正常工作,我关闭了机器和PC,今天我想使用 vagrant up我遇到了这个问题。

对不起我的英语,请帮我解决这个问题,谢谢你的每一个回答!

//编辑:

我添加

/var/lib/dkms/vboxhost/4.2.32/build/make.log /var/log/vbox-install.log

最佳答案

  • 请运行

    须藤百胜更新
  • 请确保 Vagrant 和 Virtualbox 是最新版本。
  • 如果您已经安装并更新了 kernel-devel,并且您收到了错误

  • vboxdrv - command does not exist



    请运行:
    sudo /usr/lib/virtualbox/vboxdrv.sh setup

    关于kernel - Vagrant up 和 VM 不工作 Fedora 22,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33200717/

    34 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com