为 http 共享框执行 Vargrant Up 时出现 500 错误

500 error while doing Vargrant Up for http shared box

我正在创建一个 windows server 2012 的 vagrant base box,我想在内部共享它,我正在使用下面的命令使用 Vagrant http share

无业分享 --http 80

    C:\Isentia\Vagrant>vagrant share --http 80
==> dev: Detecting network information for machine...
    dev: Local machine address: 169.254.202.14
    dev: Local HTTP port: 80
    dev: Local HTTPS port: disabled
==> dev: Checking authentication and authorization...
==> dev: Creating Vagrant Share session...
    dev: Share will be at: caring-dragon-2751
==> dev: Your Vagrant Share is running! Name: caring-dragon-2751
==> dev: URL: http://caring-dragon-2751.vagrantshare.com

并在另一台机器上使用 vagrant up 访问盒子

    C:\Isentia\DevVM>vagrant init http://caring-dragon-2751.vagrantshare.com:80
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

C:\Isentia\DevVM>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'http://caring-dragon-2751.vagrantshare.com:80' could not be fo
und. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'http://caring-dragon-2751.vagrantshare.com:80' (v0) for
 provider: virtualbox
    default: Downloading: http://caring-dragon-2751.vagrantshare.com:80
    default: Progress: 0% (Rate: 0curl:/s, Estimated time remaining: --:--:--)
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

The requested URL returned error: 500 Internal Server Error

下面是vagrant文​​件内容

Vagrant.configure(2) do |config| 
  config.vm.box = "BuzzNumberDevBox"
  config.vm.guest = :windows
  config.vm.communicator = "winrm"
  config.vm.boot_timeout = 600
  config.vm.graceful_halt_timeout = 600
  # Admin user name and password
  config.winrm.username = "vagrant"
  config.winrm.password = "vagrant"  
  config.vm.define "dev" do |dev|
    dev.vm.network "private_network", ip: "192.168.100.10"
    dev.vm.host_name = "vagranttests.dev"
    dev.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true
  end
  config.vm.provider :virtualbox do |vb|
      # Customize the name of VM in VirtualBox manager UI:
      vb.name = "BuzzNumber-Dev-VM-Web"
  end
end

我不明白是什么阻止了它从任何机器上访问。文档要求直接使用link。

Vagrant 共享旨在共享对 VM 上托管的应用程序的访问,而不是共享实际的 VM。如果你想共享 VM 本身,你需要 运行 vagrant package 来打包它,然后将它放在一个带有 metadata.json 或者 URL 的网络服务器上,其他用户可以直接添加。你能澄清一下你是想把这个盒子复制到另一台机器上,还是只是在初始的 vagrant 盒子上访问服务 运行ning 吗?