Vagrant-up not working getting an error using arrikto/minikf - vagrant

trying to download minikubeflow but I just keep getting this issue were it hangs it and eventually i get an error after about an hour.I installed virtual box like the instructions say to but it still can not be found. Any insight on what the reason may be for this issue?
$ vagrant init arrikto/minikf
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.
jared#DESKTOP-JQH7K9J MINGW64 ~/Documents/minikf
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
**==> default: Box 'arrikto/minikf' could not be found. Attempting to find and install...**
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'arrikto/minikf'
default: URL: https://vagrantcloud.com/arrikto/minikf
==> default: Adding box 'arrikto/minikf' (v20200305.1.0) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/arrikto/boxes/minikf/versions/20200305.1.0/providers/virtualbox.box
==> default: Box download is resuming from prior download progress
Download redirected to host: storage.googleapis.com
Progress: 4% (Rate: 6723k/s, Estimated time remaining: 0:44:32)

Check your internet connection and make sure you have a lot of free space. I faced the same issue but it works fine if there is good amount of free space and faster internet connection.

Related

Having a hard time to understand what Vagrant wants or how it works (Vagrant on Windows, provider vmware_esxi)

I am trying to follow the directions on this page https://github.com/josenk/vagrant-vmware-esxi and I am using Vagrant on a windows machine (win 10) and I want to be able to deploy VMs on a standalone ESXI6.5 Server (free edition-demo license expired) . No VCenter here.
I am using this command line
vagrant up --provider=vmware_esxi
root#110.10.10.10 password:
Bringing machine 'default' up with 'vmware_esxi' provider...
==> default: Box 'cdua/ubuntu16' could not be found. Attempting to find and install...
default: Box Provider: vmware_esxi, vmware, vmware_desktop, vmware_fusion, vmware_workstation
default: Box Version: 16.04
==> default: Loading metadata for box 'cdua/ubuntu16'
default: URL: https://vagrantcloud.com/cdua/ubuntu16
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.
If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is
released.
Name: cdua/ubuntu16
Address: https://vagrantcloud.com/cdua/ubuntu16
Requested provider: ["vmware_esxi", "vmware", "vmware_desktop", "vmware_fusion", "vmware_workstation"]
and here is my Vagrantfile
#
# Fully documented Vagrantfile available
# in the wiki: https://github.com/josenk/vagrant-vmware-esxi/wiki
Vagrant.configure('2') do |config|
config.vm.box = "cdua/ubuntu16"
config.vm.box_version = "16.04"
config.vm.synced_folder('.', '/vagrant', type: 'nfs', disabled: true)
config.vm.network 'private_network', type: "dhcp"
config.vm.network "public_network", auto_config: false
config.vm.provider :vmware_esxi do |esxi|
esxi.esxi_hostname = '10.10.10.10'
esxi.esxi_username = 'root'
esxi.esxi_password = 'prompt:'
esxi.esxi_virtual_network = ['Production','VM Network']
esxi.guest_name = 'VagrantTestVM'
end
end
I can't understand what vagrant wants from me.
As far as I could google/read I can see that the provider is the plugin used to upload the VM. When it comes to VMWare there are a couple of types of provider and on the hashicorp site none is listed as vmware_esxi. The closest one functionally speaking should be the vmware_ovf which the image cdua/ubuntu16 supports.
Yet vagrant fails but it tells me that the box provider is vmware_esxi
Update:
Before posting here I tried the below, as you can see error again
vagrant up --provider=vmware_esxi
root#10.10.10.10 password:
Bringing machine 'default' up with 'vmware_esxi' provider...
==> default: Box 'generic/ubuntu1710' could not be found. Attempting to find and install...
default: Box Provider: vmware_esxi, vmware, vmware_desktop, vmware_fusion, vmware_workstation
default: Box Version: >= 0
==> default: Loading metadata for box 'generic/ubuntu1710'
default: URL: https://vagrantcloud.com/generic/ubuntu1710
==> default: Adding box 'generic/ubuntu1710' (v1.8.50) for provider: vmware
default: Downloading: https://vagrantcloud.com/generic/boxes/ubuntu1710/versions/1.8.50/providers/vmware.box
default: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
default: Progress: 100% (Rate: 3286k/s, Estimated time remaining: --:--:--)
The box you attempted to add doesn't match the provider you specified.
Provider expected: vmware
Provider of box: vmware_desktop
It looks like the provider you linked supports every vmware box format except vmware_ovf, which is the only format provided for the cuda/ubuntu16 box. You probably need too change config.vm.box to a different box that supports one of the other formats.
You might check Hashicorp's box index for "vmware" format Ubuntu boxes. (I've had good luck in the past with bento/ubuntu-16.04 and it claims a vmware_desktop build.)

vagrant centos7.2 Vagrantfile

I try to setup a vagrant with a CentOS7.2.
I've found this on Atlas: https://atlas.hashicorp.com/brightcove/boxes/centos7.2
But when I set on my VagrantFile with
config.vm.box = "brightcove/centos7.2"
and
config.vm.box_url = "https://atlas.hashicorp.com/brightcove/boxes/centos7.2"
I get this error:
vagrant_centos$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'brightcove/centos7.2' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'https://atlas.hashicorp.com/brightcove/boxes/centos7.2'
default: URL: https://atlas.hashicorp.com/brightcove/boxes/centos7.2
==> default: Adding box 'brightcove/centos7.2' (v1.0.14) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/brightcove/boxes/centos7.2/versions/1.0.14/providers/virtualbox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't resolve host 'xivagrantbox.vidmark.local'
vagrant_centos$
It seems like the box is not correctly hosted anywhere. on the atlas page, there's a warning mentioning
Atlas failed to verify the existence of this external box. It may have
been moved and is no longer available.
and if you try to go to the download page, it tries to redirect you to the xivagrantbox.vidmark.local site which obviously does not exist
$ curl https://atlas.hashicorp.com/brightcove/boxes/centos7.2/versions/1.0.14/providers/virtualbox.box
<html><body>You are being redirected.</body></html>
how to move from there:
You might want to contact the provider of this box so he can fix the link
You can search for another box
You can build the box yourself using tool like packer, https://github.com/boxcutter/centos has template for centos7.2
I get it with vagrant init boxcutter/centos72-desktop
$ vagrant init boxcutter/centos72-desktop
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.
(lab)luis#spinoza:~/lab/sandbox/akd-iac/vagrant_cos$ vi Vagrantfile
And then:
$ vagrant up
...
$

Vagrant not working on Windows 7

I have installed Vagrant 1.8.1 on Windows 7. Following documentation, ran these commands:
vagrant init hashicorp/precise32
vagrant up
On vagrant init, Vagrantfile is being generated, but vagrant up is failing and I get following output:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'hashicorp/precise32' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'hashicorp/precise32' 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/hashicorp/precise32"]
Error:
Here is error from debug info:
URL: ["https://atlas.hashicorp.com/hashicorp/precise32"]
Error:
INFO interface: Machine: error-exit ["Vagrant::Errors::BoxAddShortNotFound", "The box 'hashicorp/precise32' could not be found or\ncould not be accessed in the remote catalog. If this is a private\nbox on HashiCorp's Atlas, please verify you're logged in via\nvagrant login. Also, please double-check the name. The expanded\nURL and error message are shown below:\n\nURL: [\"https://atlas.hashicorp.com/hashicorp/precise32\"]\nError: "]
I have also tried disabling antivirus, but no luck. Then I tried installation on different machine, on that machine also I am getting same error message.
it's answer to issue in vagrant repo helped for me https://github.com/mitchellh/vagrant/issues/6754
short: install http://www.microsoft.com/en-us/download/details.aspx?id=8328

Vagrant: Error: Could not resolve host: (nil); Host not found

I am getting "Could not resolve host" error while trying to create a vm using vagrant and VirtualBox. I followed the instruction from http://docs.vagrantup.com/v2/getting-started/
Executed the below 2 commands
vagrant init hashicorp/precise32
vagrant up
Below is the error message.
C:\Users\xyz123>vagrant up Bringing machine 'default' up with
'virtualbox' provider...
==> default: Box 'ubuntu/trusty32' could not be found. Attempting to find and in stall...
default: Box Provider: virtualbox
default: Box Version: >= 0 The box 'ubuntu/trusty32' 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/trusty32"] Error: Could not
resolve host: (nil); Host not found
All the help appreciated
Following commands fixed the problem for me with vagrant 1.7.2 on Mac
brew install curl
export DYLD_INSERT_LIBRARIES=
Uncomment below line in Vagrantfile..
config.vm.box_check_update = false
Source: https://github.com/mitchellh/vagrant/issues/3391
Setting up the proxy command worked for me
export https_proxy=http://username:password#proxy_ip:proxy_port
Then
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/trusty64'
default: URL: https://atlas.hashicorp.com/ubuntu/trusty64
==> default: Adding box 'ubuntu/trusty64' (v20170202.0.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20170202.0.0/providers/virtualbox.box
default: Progress: 8% (Rate: 302k/s, Estimated time remaining: 0:26:21)
You are calling a box inside a box you will you don't need to init again just vagrant up,you will need to start afresh

Vagrant not showing proper error message

After running below commands getting a failure without proper error message:
$ vagrant init hashicorp/precise32
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'hashicorp/precise32' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'hashicorp/precise32'
default: URL: https://atlas.hashicorp.com/hashicorp/precise32
==> default: Adding box 'hashicorp/precise32' (v1.0.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box
==> default: Box download is resuming from prior download progress
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Failed writing body (1576 != 7240)
By default vagrant downloads boxes(images) in home directory (~/.vagrant.d). If home has no enough space to store downloaded content you get this error.
To fix: setup default home to a different file system which has enough space
export VAGRANT_HOME=/data/vagrant/

Resources