【发布时间】:2022-07-18 17:56:09
【问题描述】:
我在 Git Bash 上遇到 vagrant up 的问题。 我目前正在使用 Vagrant 2.2.19 和 VirtualBox 6.1 版本。 每当我将 vagrant 放在 Bash 上以便能够使用 vagrant ssh 在 Git bash 上打开 VirtualBox 服务器时,它都会显示以下错误。
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/bionic64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/bionic64' version '20200304.0.0' is up to date...
==> default: Setting the name of the VM: profiles-rest-api_default_1644116739589_78823
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 8000 (guest) => 8000 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'unknown' state. Please verify everything is configured
properly and try again.
If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.
The primary issue for this error is that the provider you're using
is not properly configured. This is very rarely a Vagrant issue.
- 到目前为止我做了什么
- 从 BIOS 启用可视化
- 安装 VirtualBox 扩展包
- 多次卸载并重新安装 VirtualBox 和 Vagrant
此外,当我在该错误之后放置 vagrant ssh 时,它什么也没显示,但 VirtualBox 正在作为这个图像运行。你们能帮我弄清楚如何在 Bash 上打开 VirtualBox 服务器吗?谢谢! enter image description here
【问题讨论】:
标签: bash server vagrant virtualbox