Не могу "vagrant up" atlassian box

Не могу "vagrant up" atlassian box

Windows 8.1, последние версии Vagrant и VirtualBox. Запуск команд в git CLI на Windows.

Мне удалось запустить его ubuntu/trusty64без каких-либо проблем, и мне не пришлось входить в систему atlas.hashicorp.com.

Но когда я попытался, ubuntu/xenial64возникла ошибка.

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

Кроме того, trusty 64 не вызывал никаких предупреждений о входе в систему с помощью vagrant login, но поскольку xenial 64 вызывал такое предупреждение, я немедленно создал учетную запись на atlas.hashicorp.com.

Раньше при входе в систему я vagrant loginполучал сообщение «Вы вошли в систему».

Я удалил содержимое папки Vagrant и переделал команды initи up, но снова получаю ту же ошибку.

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

Но часть «Ошибка:» пустая.

Я нашел предложение в другом месте добавить URL-адрес ящика следующим Vagrantfileобразом:

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

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

Тестирую сейчас, используя ссылку, предложенную в комментариях. Вот полный текст, Vagrantfileисключая большинство комментариев:

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

Но даже с URL-адресом я получаю ошибку:

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

Сообщение об ошибке не появилось.

решение1

У меня была та же проблема с OSX, и мне пришлось удалить встроенный curl:

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

Затем он будет использовать системный curl по умолчанию вместо встроенного, содержащего ошибки.

решение2

Кажется, я нашел ответ.

В последних версиях Vagrant (кажется, 1.8+) есть версия, curlкоторая включенане работает на Windows 7, 8, 8.1 или 10как есть!

Но исправить это очень просто. Просто установите это, Microsoft Visual C++ 2010 SP1 Redistributable Package:

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

На этой странице Windows 8.1 не указана как совместимая операционная система, но у меня она сработала. Перезагрузка системы не потребовалась, и моя виртуальная машина уже запущена и работает.

Альтернативный вариант — понижение версии Vagrant до 1.7.4 также, похоже, решает проблему: https://releases.hashicorp.com/vagrant/

Оба эти решения я нашел здесь: https://github.com/mitchellh/vagrant/issues/6852

Повторяющиеся вопросы: https://github.com/mitchellh/vagrant/issues/6754 https://github.com/mitchellh/vagrant/issues/6861

Связанный контент