Não é possível "vagar" a caixa Atlassian

Não é possível "vagar" a caixa Atlassian

Windows 8.1, versões mais recentes do Vagrant e VirtualBox. Executando comandos no git CLI no Windows.

Consegui iniciar ubuntu/trusty64sem nenhum problema e não precisei fazer login em atlas.hashicorp.com.

Mas quando tentei, ubuntu/xenial64recebi um erro.

vagrant init ubuntu/xenial64; vagrant up --provider virtualbox

Além disso, o trusty 64 não causou nenhum aviso sobre o login com vagrant login, mas como o xenial 64 causou tal aviso, criei imediatamente uma conta em atlas.hashicorp.com.

Eu costumava vagrant loginfazer login e recebia a mensagem "Agora você está logado".

Excluí o material vagrant da pasta e refiz os comandos inite up, mas novamente recebo o mesmo erro.

$ vagrant init ubuntu/xenial64; vagrant up --provider virtualbox
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.
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/xenial64' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'ubuntu/xenial64' 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/ubuntu/xenial64"]
Error:

Mas a parte "Erro:" está em branco.

Encontrei uma sugestão em outro lugar para adicionar o URL da caixa Vagrantfilecomo tal:

config.vm.box_url = "http://example.com/some_box_url.box"

https://stackoverflow.com/a/31538713/631764

Testando isso agora usando o link sugerido nos comentários. Aqui está a íntegra, Vagrantfileexcluindo a maioria dos comentários:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  # The most common configuration options are documented and commented below.
  # For a complete reference, please see the online documentation at
  # https://docs.vagrantup.com.

  # Every Vagrant development environment requires a box. You can search for
  # boxes at https://atlas.hashicorp.com/search.
  config.vm.box = "ubuntu/xenial64"
  config.vm.box_url = "https://atlas.hashicorp.com/ubuntu/boxes/xenial64/versions/20160610.0.0/providers/virtualbox.box"


  # VirtualBox:
  #
  config.vm.provider "virtualbox" do |vb|
    # Display the VirtualBox GUI when booting the machine
    vb.gui = true

    # Customize the amount of memory on the VM:
  #   vb.memory = "1024"
  end

end

Mas mesmo com o URL, recebo um erro:

$ vagrant up --provider virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/xenial64' could not be found. 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 'ubuntu/xenial64' (v0) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/xenial64/versions/20160610.0.0/providers/virtualbox.box
    default:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Nenhuma mensagem de erro foi exibida.

Responder1

Eu tive o mesmo problema com o OSX e tive que excluir o curl incorporado:

sudo rm /opt/vagrant/embedded/bin/curl

Em seguida, ele usará o curl padrão do sistema em vez do com erros incorporado.

Responder2

Encontrei a resposta, ao que parece.

As versões mais recentes do Vagrant (aparentemente 1.8+) têm uma versão curlincluída quenão funciona no Windows 7, 8, 8.1 ou 10como é!

Mas a correção é muito fácil. Basta instalar este pacote redistribuível do Microsoft Visual C++ 2010 SP1:

https://www.microsoft.com/en-us/download/details.aspx?id=8328

Essa página não lista o Windows 8.1 como sistema operacional compatível, mas funcionou para mim. Nenhuma reinicialização do sistema foi necessária e minha máquina virtual já está instalada e funcionando.

Alternativamente, fazer o downgrade para a versão 1.7.4 do Vagrant também parece resolver o problema: https://releases.hashicorp.com/vagrant/

Encontrei ambas as soluções aqui: https://github.com/mitchellh/vagrant/issues/6852

Problemas duplicados: https://github.com/mitchellh/vagrant/issues/6754 https://github.com/mitchellh/vagrant/issues/6861

informação relacionada