首页 > 解决方案 > vagrant 的更改需要删除 VirtualBox 中的已保存状态

问题描述

Vagrant 2.2.2在 MacBook Pro 上运行VirtualBox,版本为 6.0.4 r128413。大约 2 个月前,Mac 更新级联需要更新这些。

当我输入vagrant status时,它显示“已保存”。如果我运行vagrant up以下结果:

My-MBP:vbox4 oliverwilliams$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Resuming suspended VM...
==> 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", "894fe7ac-8c87-4c18-8afa-4b24b6268f19", "--type", "headless"]

    Stderr: VBoxManage: error: Failed to load unit 'lsilogicscsi' (VERR_SSM_LOADED_TOO_LITTLE)
    VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

我可以“放弃已保存的状态”,然后这样做vagrant up,它可以工作,但这很痛苦。我打开了 VirtualBox UI,转到机器 > 设置,然后在存储下(在我放弃保存状态之后但不是之前),我看到 Controller:SCSI - 没有选项可以更改为 SATA:AHCI,因为这篇文章表明:https://www .virtualbox.org/ticket/18263

我该如何解决这个问题,以便可以存储保存的状态而不必丢弃它?

标签: vagrantvirtual-machinevirtualbox

解决方案


推荐阅读