Vagrant + Virtual Box 会话错误
Vagrant + Virtual Box Session error
我正在尝试使用 VirtualBox 通过 Vag运行t 启动虚拟机。
当我使用最新版本的 Virtual box 5.1.4 和 Vag运行t 1.7 执行命令 vag运行t up(见下文)时出现此错误.4,因此我将 Virtual box 降级到 5.0,将 Vag运行t 降级到 1.7.4,但没有帮助。
我已经安装了 vag运行t 插件 vag运行t-omnibus、vag运行t-cashier 和 vag运行t-berkshelf (version=4.1).
我的 OS 是 Mac OS X El Capitan 而我尝试 运行 的虚拟机是 centos 6.
命令 "vagrant up" 输出的最后一部分是:
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", "63825f6b-5189-4b66-bb7a-167c7f742c49", "--type", "headless"]
Stderr: VBoxManage: error: The VM session was aborted
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface Session
我用谷歌搜索了这个错误,许多线程建议我尝试重新启动 VirtualBox,但我没有成功..
下面我复制了虚拟机日志的最后几行:
00:00:00.085763 APIC: Activating Local APIC
00:00:00.085782 CPUM: SetGuestCpuIdFeature: Enabled APIC
00:00:00.086115 PIT: mode=3 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:00.089080 Shared Folders service loaded
00:00:00.094857 DrvBlock: Flushes will be ignored
00:00:00.094868 DrvBlock: Async flushes will be passed to the disk
00:00:00.094970 VD: VDInit finished
00:00:00.095086 AIOMgr: Endpoint for file '/Users/daniele/VirtualBox VMs/my-vm_default_1475241914862_51348/centos-6.7-x86_64-disk1.vmdk' (flags 000c0723) created successfully
00:00:00.098079 VD: Opening the disk took 3191386 ns
00:00:00.098106 AHCI: LUN#0: disk, PCHS=16383/16/63, total number of sectors 83886080
00:00:00.098115 AHCI: LUN#0: using async I/O
00:00:00.098190 AHCI#0: Reset the HBA
00:00:00.098353 PIIX3 ATA: LUN#0: no unit
00:00:00.098358 PIIX3 ATA: LUN#1: no unit
00:00:00.098376 PIIX3 ATA: LUN#2: no unit
00:00:00.098380 PIIX3 ATA: LUN#3: no unit
00:00:00.098398 PIIX3 ATA: Ctl#0: finished processing RESET
00:00:00.098411 PIIX3 ATA: Ctl#1: finished processing RESET
00:00:00.104664 NAT: Guest address guess set to 10.0.2.15 by initialization
我运行没主意
可能的解法一:
我正在解决同样的问题,但使用的是另一个 Linux 发行版。我找到了 Mint 18 的解决方法,它也可能对您有用。
当我进入 VirtualBox 并将麻烦的 VM 的设置 > 网络值设置为 'Bridged..' 或 'NAT network' 时,VM 就会启动。此外,我可以从那个 运行 虚拟机 browse/curl 上网。
The VirtualBox forums show that others are getting this error too.
可能的方案二:
在我的实验中,旧的 VirtualBox 版本没有这个网络问题。例如,版本 5.0.24 和 5.0.18 允许在无需手动干预的情况下创建 VM。
附加信息:
值得注意的是,如果您使用 Docker Toolbox,它会自动将 VirtualBox 升级到它想要的任何版本(例如 Docker Toolbox 1.12.2 强制 VirtualBox 升级到 5.1.6)。
起初我以为这个问题是由于 VirtualBox 默认使用 "NAT" 作为网络选择造成的。但这不是原因。 VirtualBox 5.0.24 和 5.018 都使用 "NAT" 并且它们工作正常。
这是 VirtualBox 中的一个错误,现在已在 5.1.8 中修复。
供参考:https://www.virtualbox.org/ticket/15687
我正在尝试使用 VirtualBox 通过 Vag运行t 启动虚拟机。
当我使用最新版本的 Virtual box 5.1.4 和 Vag运行t 1.7 执行命令 vag运行t up(见下文)时出现此错误.4,因此我将 Virtual box 降级到 5.0,将 Vag运行t 降级到 1.7.4,但没有帮助。
我已经安装了 vag运行t 插件 vag运行t-omnibus、vag运行t-cashier 和 vag运行t-berkshelf (version=4.1).
我的 OS 是 Mac OS X El Capitan 而我尝试 运行 的虚拟机是 centos 6.
命令 "vagrant up" 输出的最后一部分是:
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", "63825f6b-5189-4b66-bb7a-167c7f742c49", "--type", "headless"]
Stderr: VBoxManage: error: The VM session was aborted
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface Session
我用谷歌搜索了这个错误,许多线程建议我尝试重新启动 VirtualBox,但我没有成功..
下面我复制了虚拟机日志的最后几行:
00:00:00.085763 APIC: Activating Local APIC
00:00:00.085782 CPUM: SetGuestCpuIdFeature: Enabled APIC
00:00:00.086115 PIT: mode=3 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:00.089080 Shared Folders service loaded
00:00:00.094857 DrvBlock: Flushes will be ignored
00:00:00.094868 DrvBlock: Async flushes will be passed to the disk
00:00:00.094970 VD: VDInit finished
00:00:00.095086 AIOMgr: Endpoint for file '/Users/daniele/VirtualBox VMs/my-vm_default_1475241914862_51348/centos-6.7-x86_64-disk1.vmdk' (flags 000c0723) created successfully
00:00:00.098079 VD: Opening the disk took 3191386 ns
00:00:00.098106 AHCI: LUN#0: disk, PCHS=16383/16/63, total number of sectors 83886080
00:00:00.098115 AHCI: LUN#0: using async I/O
00:00:00.098190 AHCI#0: Reset the HBA
00:00:00.098353 PIIX3 ATA: LUN#0: no unit
00:00:00.098358 PIIX3 ATA: LUN#1: no unit
00:00:00.098376 PIIX3 ATA: LUN#2: no unit
00:00:00.098380 PIIX3 ATA: LUN#3: no unit
00:00:00.098398 PIIX3 ATA: Ctl#0: finished processing RESET
00:00:00.098411 PIIX3 ATA: Ctl#1: finished processing RESET
00:00:00.104664 NAT: Guest address guess set to 10.0.2.15 by initialization
我运行没主意
可能的解法一:
我正在解决同样的问题,但使用的是另一个 Linux 发行版。我找到了 Mint 18 的解决方法,它也可能对您有用。
当我进入 VirtualBox 并将麻烦的 VM 的设置 > 网络值设置为 'Bridged..' 或 'NAT network' 时,VM 就会启动。此外,我可以从那个 运行 虚拟机 browse/curl 上网。
The VirtualBox forums show that others are getting this error too.
可能的方案二:
在我的实验中,旧的 VirtualBox 版本没有这个网络问题。例如,版本 5.0.24 和 5.0.18 允许在无需手动干预的情况下创建 VM。
附加信息:
值得注意的是,如果您使用 Docker Toolbox,它会自动将 VirtualBox 升级到它想要的任何版本(例如 Docker Toolbox 1.12.2 强制 VirtualBox 升级到 5.1.6)。
起初我以为这个问题是由于 VirtualBox 默认使用 "NAT" 作为网络选择造成的。但这不是原因。 VirtualBox 5.0.24 和 5.018 都使用 "NAT" 并且它们工作正常。
这是 VirtualBox 中的一个错误,现在已在 5.1.8 中修复。 供参考:https://www.virtualbox.org/ticket/15687