bosh-lite vagrant up失败,没有错误

时间:2014-12-26 01:47:24

标签: vagrant

我正在尝试使用我的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

1 个答案:

答案 0 :(得分:2)

请阅读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
相关问题