vagrant up 报错,不得已来此请教。

2015-01-20 19:27:44 +08:00
 syqhcc
OverlordsMac:centos7 a$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos7'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: centos7_default_1413296838672_81673
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2200 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
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...

==============================================
此问题折腾一个下午,精疲力尽吐血三升。
一直启动不了,该怎么办?
8222 次点击
所在节点    Vagrant
8 条回复
CoX
2015-01-20 19:31:31 +08:00
用VBox直接启动一下看看是不是停在启动界面了
jiyee
2015-01-20 20:11:40 +08:00
==> default: Fixed port collision for 22 => 2222. Now on port 2200.

会不会因为这个,Vagrantfile指定一下试试
bengol
2015-01-20 21:17:53 +08:00
跟我一样。后来我把它们都删除了
phpcxy
2015-01-20 21:23:29 +08:00
GUI,看看有没有报具体错误信息
emric
2015-01-20 21:29:11 +08:00
先确定在 VirtualBox GUI 能不能开机.
如果出现错误, 将 VirtualBox 退回到 4.3.12 版本.
因为 4.3.13 及以上版本启用了硬件加速, 部分 Windows 机器并不兼容.
syqhcc
2015-01-20 21:55:39 +08:00
@emric Thx~。我看过一个帖子,说需要CPU虚拟化。硬件加速是指「CPU虚拟化」吗?
HowardMei
2015-01-21 00:34:53 +08:00
先试试:
config.vm.boot_timeout = 360
不行再加上:
INTNET_NAME = [*('A'..'Z')].sample(8).join
config.vm.provider "virtualbox" do |virt|
## Don't boot with headless mode so we can observe the start up process
virt.gui = true
## Give the virtual machine a name
#virt.name = config.vm.hostname
#virt.customize ["modifyvm", :id, "--name", config.vm.hostname]
## Use VBoxManage to customize the VM:
## Give the internal network/cluster its own namespace to avoid conflicts
virt.customize ["modifyvm", :id, "--nic2", "intnet", "--intnet2", "#{INTNET_NAME}"]
## Fix for slow external network connections
virt.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
virt.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
## Adjust total ram MB
virt.customize ["modifyvm", :id, "--memory", 1024]
## Adjust video ram MB
virt.customize ["modifyvm", :id, "--vram", 128]
## Adjust number of cpus cores
virt.customize ["modifyvm", :id, "--cpus", 2]
## Adjust CPU utilization cap (percentage)
virt.customize ["modifyvm", :id, "--cpuexecutioncap", 80]
end
elegzg
2015-02-20 01:34:29 +08:00
@bengol 那不是丢失虚拟机了么?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/163918

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX