在运行vagrant up时出现错误:无法写入内存。

5

当我尝试执行“vagrant up”命令时,出现以下错误:

---------------------------
VBoxHeadless.exe - Application Error
---------------------------
The instruction at 0x00007FFDEFEACD38 referenced memory at 0x0000000000003CB0. The memory could not be read.


Click on OK to terminate the program
---------------------------
OK   
---------------------------

这是控制台输出日志:

vagrant up
Bringing machine 'absolute-mysql' up with 'virtualbox' provider...
Bringing machine 'absolute' up with 'virtualbox' provider...
==> absolute-mysql: Checking if box 'ubuntu/trusty64' is up to date...
==> absolute-mysql: A newer version of the box 'ubuntu/trusty64' is available! You currently
==> absolute-mysql: have version '20171019.0.0'. The latest is version '20171205.0.1'. Run
==> absolute-mysql: `vagrant box update` to update.
==> absolute-mysql: Clearing any previously set forwarded ports...
==> absolute-mysql: Clearing any previously set network interfaces...
==> absolute-mysql: Preparing network interfaces based on configuration...
    absolute-mysql: Adapter 1: nat
    absolute-mysql: Adapter 2: hostonly
==> absolute-mysql: Forwarding ports...
    absolute-mysql: 3306 (guest) => 3306 (host) (adapter 1)
    absolute-mysql: 22 (guest) => 8022 (host) (adapter 1)
    absolute-mysql: 22 (guest) => 2222 (host) (adapter 1)
==> absolute-mysql: Running 'pre-boot' VM customizations...
==> absolute-mysql: 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", "de3601aa-69df-49cb-abdf-698a1bbb91c7", "--type", "headless"]

Stderr: VBoxManage.exe: error: The VM session was aborted
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component SessionMachine, interface ISession

请告诉我是否需要提供更多信息。我在Windows 10上运行64位版本的Vagrant和VirtualBox。


这只发生在 absolute-mysql 盒子上还是所有你尝试运行的盒子上?另外请粘贴你的 Vagrantfile。试试以管理员权限运行 cmd.exe,然后运行 vagrant up - DevDio
我尝试以管理员身份运行,但没有任何变化。我还尝试创建了一个测试vagrant box,每次执行“vagrant up”命令时都会遇到蓝屏。我的绝对框的vagrantfile可以在这里查看:https://pastebin.com/raw/AWr2bV9D。谢谢 - Ledda
看起来这个盒子可能只是损坏了或者与你的硬件不兼容。 - Jehy
你尝试过升级VirtualBox吗?或者卸载并重新安装?另外,你的BIOS设置启用了虚拟化吗? - Phil
1个回答

2

我遇到了同样的问题,希望很快会有一个修复bug的版本。

与此同时,我设法通过在VirtualBox IDE存储设置页面中附加.iso镜像来启动安装过程,而不是使用“挂载”对话框来避免错误。

在VirtualBox UI中打开您的VM设置,进入"存储"选项卡,点击IDE控制器列表中的"空"条目,并选择屏幕右侧的磁盘图标。最后,选择“选择虚拟光盘文件”,并选择您想要使用的.iso镜像文件。然后启动VM,它应该可以正常启动。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接