gpt4 book ai didi

ubuntu - Virtualbox:从 ​​Vagrant Ubuntu 环境中检索数据

转载 作者:行者123 更新时间:2023-12-04 18:46:10 24 4
gpt4 key购买 nike

我已经在我的 Ubuntu 系统上配置了一个带有 Vagrant 的虚拟 Ubuntu droplet,用于开发目的。现在,我无法启动虚拟机,使用命令 vagrant up ,出现以下错误:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'hashicorp/precise64' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: bridged
==> default: Forwarding ports...
default: 8080 (guest) => 2200 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "9295efec-36d1-4aed-932d-ddd5785df28b", "--type", "headless"]

Stderr: VBoxManage: error: Failed to open/create the internal network 'HostInterfaceNetworking-eth0' (VERR_SUPDRV_COMPONENT_NOT_FOUND).
VBoxManage: error: Failed to attach the network LUN (VERR_SUPDRV_COMPONENT_NOT_FOUND).
VBoxManage: error: One of the kernel modules was not successfully loaded. Make sure that no kernel modules from an older version of VirtualBox exist. Then try to recompile and reload the kernel modules by executing '/sbin/vboxconfig' as root (VERR_SUPDRV_COMPONENT_NOT_FOUND)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

我不确定是什么导致了这个错误,因为我没有对配置进行任何更改。无论如何,现在我正在寻找存储在虚拟机中的数据,因为我拥有的备份数据没有完全更新。
任何建议都会很有帮助。提前致谢!

最佳答案

你得到的错误是当错误的模块被加载或加载时,例如(/sbin/vboxconfig),
使用 sudo 打开 shell,然后尝试以下操作

>sudo su - 
>/sbin/rcvboxdrv setup"

Unloading modules: vboxdrv
Loading modules: vboxnetadp vboxnetflt vboxpci vboxdrv

确保使用最新版本的 virtuabox 5.0.12 或更高版本。
Virtualbox.org 上与此 https://www.virtualbox.org/ticket/14723 相关的问题

关于ubuntu - Virtualbox:从 ​​Vagrant Ubuntu 环境中检索数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40111364/

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