Я использую Ubuntu 15.10 64bit на Core i3. Я установил Vagrant 1.8.1 и VirtualBox.Не удается запустить ubuntu/trusty32 в Vagrant
я сделал следующее:
$ vagrant box add ubuntu/trusty32
$ vagrant init ubuntu/trusty32
$ vagrant up
После этого vagrant up
, я получаю ниже показанную ошибку. Если я открою VirtualBox, я вижу, что система загрузилась и ждет имя пользователя и пароль.
Примечание: У меня нет проблем с получением hashicorp/precise32
, работающим в Vagrant. У меня проблемы только с ubuntu/trusty32
.
~/vagrant$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty32'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/trusty32' is up to date...
==> default: Setting the name of the VM: vagrant_default_1459678892518_13508
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.
If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.
If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.
If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.
Я снова дал $ vagrant up
и это то, что я получил
~/vagrant$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/trusty32' is up to date...
==> default: VirtualBox VM is already running.
Я также попытался $ vagrant ssh
и я получил следующее.
~/vagrant$ vagrant ssh
ssh_exchange_identification: read: Connection reset by peer
Это мой Vagrantfile
Может кто-нибудь, дайте мне знать, что это проблема?
Пожалуйста, разместите свой 'Vagrantfile' - вы изменили его после' $ vagrant init ubuntu/trusty32'? –
Нет. Я ничего в этом не менял. Vagrantfile был сгенерирован командой init. – robomon