No se puede "vagar" en Atlassian Box

No se puede "vagar" en Atlassian Box

Windows 8.1, últimas versiones de vagant y VirtualBox. Ejecutando comandos en git CLI en Windows.

Pude iniciar ubuntu/trusty64sin ningún problema y no tuve que iniciar sesión en atlas.hashicorp.com.

Pero cuando lo intenté ubuntu/xenial64me salió un error.

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

Además, Trusty 64 no generó ninguna advertencia sobre el inicio de sesión con vagrant login, pero como xenial 64 sí generó dicha advertencia, inmediatamente creé una cuenta en atlas.hashicorp.com.

Solía vagrant login​​iniciar sesión y recibía el mensaje "Ya has iniciado sesión".

Eliminé las cosas vagabundas de la carpeta y rehice los comandos inity up, pero nuevamente aparece el mismo error.

$ 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:

Pero la parte "Error:" está en blanco.

Encontré una sugerencia en otro lugar para agregar la URL del cuadro Vagrantfilecomo tal:

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

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

Probando esto ahora usando el enlace sugerido en los comentarios. Aquí está el completo Vagrantfileexcluyendo la mayoría de los comentarios:

# -*- 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

Pero incluso con la URL, aparece un error:

$ 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.

No se mostró ningún mensaje de error.

Respuesta1

Tuve el mismo problema con OSX y tuve que eliminar el curl incrustado:

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

Luego utilizará el curl predeterminado del sistema en lugar del con errores incorporado.

Respuesta2

Parece que encontré la respuesta.

Las últimas versiones de Vagrant (aparentemente 1.8+) tienen una versión curlincluida queno funciona en Windows 7, 8, 8.1 o 10¡como es!

Pero la solución es muy fácil. Simplemente instale esto, el paquete redistribuible de Microsoft Visual C++ 2010 SP1:

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

Esa página no incluye Windows 8.1 como sistema operativo compatible, pero funcionó para mí. No fue necesario reiniciar el sistema y mi máquina virtual ya está en funcionamiento.

Alternativamente, bajar a la versión 1.7.4 de Vagrant también parece resolver el problema: https://releases.hashicorp.com/vagrant/

Encontré ambas soluciones aquí: https://github.com/mitchellh/vagrant/issues/6852

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

información relacionada