Bosh-Lite Vagrant Up 失败,没有错误



我正在尝试在我的Mac osx笔记本电脑V 10.9.4上使用bosh-lite设置本地云铸造实例。

sh-3.2# vagrant -v
Vagrant 1.7.1
sh-3.2# 

我解压缩了 bosh-lite-master 的内容 运行以下命令

见下文

sh-3.2#vagrant up --provider=virtualbox

我收到的错误消息

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'cloudfoundry/bosh-lite' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: 2776
The box 'cloudfoundry/bosh-lite' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:
URL: ["https://atlas.hashicorp.com/cloudfoundry/bosh-lite"]
Error: 
sh-3.2#

错误部分是空的,我完全不知道,因为这是我第一次与流浪汉合作

流浪者文件的内容

Vagrant.configure('2') do |config|
  config.vm.box = 'cloudfoundry/bosh-lite'
  config.vm.box_version = '2776'
  config.vm.provider :virtualbox do |v, override|
    # To use a different IP address for the bosh-lite director, uncomment this line:
    # override.vm.network :private_network, ip: '192.168.59.4', id: :local
  end
  [:vmware_fusion, :vmware_desktop, :vmware_workstation].each do |provider|
    config.vm.provider provider do |v, override|
      # To use a different IP address for the bosh-lite director, uncomment this line:
      # override.vm.network :private_network, ip: '192.168.54.4', id: :local
      override.vm.box_version = '388'
    end
  end
  config.vm.provider :aws do |v, override|
    # To turn off public IP echoing, uncomment this line:
    # override.vm.provision :shell, id: "public_ip", run: "always", inline: "/bin/true"
    # To turn off CF port forwarding, uncomment this line:
    # override.vm.provision :shell, id: "port_forwarding", run: "always", inline: "/bin/true"
  end
end

请阅读 https://github.com/mitchellh/vagrant/issues/3589

从/opt/vagrant/

embedded/gems/gems/vagrant-1.7.1/lib/vagrant/util/subprocess.rb 注释掉这个块,让它像一个魅力一样工作

if @command[0].downcase.include?(installer_dir)
@logger.info("Command in the installer. Specifying DYLD_LIBRARY_PATH...")
process.environment["DYLD_LIBRARY_PATH"] =
"#{installer_dir}/lib:#{ENV["DYLD_LIBRARY_PATH"]}"
@logger.info("process.environment")
@logger.info(process.environment["DYLD_LIBRARY_PATH"])
@logger.info("end process.environment")
else
@logger.debug("Command not in installer, not touching env vars.")
end

最新更新