我正在尝试使用vagrant openstack provider在Bluemix上自动执行我的VM设置。我的Vagrantfile看起来像这样:
require 'vagrant-openstack-provider'
Vagrant.configure('2') do |config|
config.vm.box = 'openstack'
config.ssh.username = 'ibmcloud'
config.vm.provider :openstack do |os|
os.openstack_auth_url = 'https://keystone2.open.ibmcloud.com/v2.0/tokens'
os.username = '*****'
os.password = '*****'
os.tenant_name = '*****'
os.flavor = '4x8x100'
os.image = 'Ubuntu 14.04'
os.floating_ip_pool = 'Public-Network'
end
end
实例已启动,但我无法进入它。我的配置文件中是否有任何可疑内容?
...
==> default: Waiting for SSH to become available...
ssh: connect to host ************* port 22: Connection refused
ssh: connect to host ************* port 22: Connection refused
ssh: connect to host ************* port 22: Connection refused
ssh: connect to host ************* port 22: Connection refused
ssh: connect to host ************* port 22: Connection refused
ssh: connect to host ************* port 22: Connection refused
==> default: Waiting for SSH to become available...
ssh: connect to host ************* port 22: Connection refused
ssh: connect to host ************* port 22: Connection refused
==> default: Timeout!
答案 0 :(得分:0)
超时是因为服务器花了很长时间 来初始化。大约10分钟后再次尝试,我能够进入服务器。
答案 1 :(得分:0)
我认为所花费的时间主要取决于流浪者的建筑活动。 此外,您必须考虑通常,Bluemix上的VM在启动完成后需要30秒以上才能用于传入连接