当前位置: 首页 > 面试题库 >

在无所事事的情况下等待机器启动时超时

丌官晨
2023-03-14
问题内容

我有一个Ubuntu 13.10,并安装了Vagrant 1.5.4和VirtualBox 4.3.10r93012。我vagrant up第一次在虚拟机上正确编写脚本时编写命令时会出现我的问题。但是在完成vagrant haltvagrant up再次编写命令后,就会出现问题:

vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> 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: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (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
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

有什么解决办法吗?谢谢。


问题答案:

我使用会增加时间config.vm.boot_timeout。但是对我来说,这不是原因,尽管错误告诉您超时。

我使用vim打开了Vagrantfile,并添加了以下几行来打开VM的GUI。

config.vm.provider :virtualbox do |vb|
  vb.gui = true
end

重新运行后,vagrant up我在GUI中看到了真正的原因。有一个错误对话框,它一直在等待。这就是连接超时的原因。

为了解决这个问题,我必须在系统BIOS中进行一些配置。我必须打开英特尔VT-x设置。并且请同时检查AMD-V设置。这些设置有助于硬件虚拟化。



 类似资料:
  • 问题内容: 我正在运行以下MySQL语句: 我没有使用交易,所以为什么会出现此错误?我什至尝试重新启动MySQL服务器,但没有帮助。 该表有406,733行。 问题答案: 您正在使用交易;autocommit不会禁用事务,它只是使它们在语句末尾自动提交。 发生的事情是,某个其他线程在某个记录上保持记录锁定(您正在更新表中的每个记录!)的时间太长,导致您的线程超时。 您可以通过发出 事件发生后(在编

  • 问题内容: 我正在使用Ubuntu 16.04 问题答案: 我遇到了这个问题,终于找到了答案。我一直在使用Marionette驱动程序,该驱动程序不再适用于FF版本53和Selenium 3.5或更高版本。该GeckoDriver文档显示系统属性应该如何引用。 我从以下位置更改了代码: 至: 现在我的本地Firefox运行正常。 希望这对其他人有帮助。

  • 无法启动边缘驱动程序,我得到下面提到的错误和代码,我使用的是下面。请帮忙

  • 我已经尝试了Stackoverflow主题中告诉我的一切。我通过jenkins在远程从机上运行java selenium测试。荒谬的是,第一个测试总是运行,浏览器打开,所有其他测试都给我“等待驱动服务器启动超时”。 错误: 到目前为止我尝试过的所有解决方案: 更新Java1_8_271 更新硒4 更新ChromeDriver 87 用rawcap检查localhost流量 检查localhostd

  • 我正试图在设备上启动我的应用程序。它正在模拟器上成功发射。 null null 会不会是带有代码签名的东西? 目前我已将其设置为“不编码签名”

  • 问题内容: 从脚本中,我将这样的查询发送了数千次到本地数据库: 我忘了添加where部分,因此同一列为表中的所有行设置了相同的值,并且完成了数千次,并且对该列建立了索引,因此相应的索引可能更新了太多次。 我注意到出了点问题,因为花了太长时间,所以我杀死了脚本。从那以后,我什至重新启动了计算机,但表中有些东西卡住了,因为简单的查询需要很长时间才能运行,并且当我尝试删除相关索引时,它失败并显示以下消息