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

时间:2016-10-18 14:45:59

标签: ubuntu vagrant virtual-machine virtualbox

我已经在我的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

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

1 个答案:

答案 0 :(得分:1)

你得到的错误是当加载或加载错误的模块时,例如(/ 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

相关的问题