Vagrant not loading the right VM

167 views
Skip to first unread message

pascal

unread,
Jun 8, 2015, 5:16:48 AM6/8/15
to vagra...@googlegroups.com
Hello,

I have started an apache spark mooc @ edx.org that requires us to download a VM named sparkmooc/base (hosted @ hashicorp.com)

I am on windows7 x64 with Virtualbox 4.3.28 and  Vagrant 1.7.2 (all latest versions)

The problem is that vagrant allways
installs a precise32 box and no thet required sparkmooc/base one (downloads files.vagrantup.com/precise32.box instead of https://atlas.hashicorp.com/sparkmooc/base ).

Note that this is happening only on one of my PCs (installs OK on other machines with the same config)

Here is the vagrant file we have to install the VM


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

ipythonPort
= 8001     # Ipython port to forward (also set in IPython notebook config)

Vagrant.configure(2) do |config|
  config
.ssh.insert_key = true
  config
.vm.define "sparkvm" do |master|
    master
.vm.box = "sparkmooc/base"  
    master
.vm.box_download_insecure = true
    master
.vm.boot_timeout = 900
    master
.vm.network :forwarded_port, host: ipythonPort, guest: ipythonPort, auto_correct: true   # IPython port (set in notebook config)
    master
.vm.network :forwarded_port, host: 4040, guest: 4040, auto_correct: true                 # Spark UI (Driver)
    master
.vm.hostname = "sparkvm"
    master
.vm.usable_port_range = 4040..4090

    master
.vm.provider :virtualbox do |v|
      v
.name = master.vm.hostname.to_s
   
end
 
end
end


Here is the vagrant log while loading & installing the VM:



To fix the issue I had to add master.vm.box_url = "https://atlas.hashicorp.com/sparkmooc/base" to the vagrantfile file.

Any hint ?

Thanks.

Alvaro Miranda Aguilera

unread,
Jun 8, 2015, 5:35:45 AM6/8/15
to vagra...@googlegroups.com

On Mon, Jun 8, 2015 at 9:16 PM, pascal <pascal....@gmail.com> wrote:
sparkmooc/base"

Hello,

i did a run, and runs fine:

==> default: Loading metadata for box 'sparkmooc/base'

    default: URL: https://atlas.hashicorp.com/sparkmooc/base

==> default: Adding box 'sparkmooc/base' (v0.0.7.1) for provider: virtualbox

    default: Downloading: https://atlas.hashicorp.com/sparkmooc/boxes/base/versions/0.0.7.1/providers/virtualbox.box


On the box with the problem, do 


vagrant box list

vagrant box remove sparkmooc/base


Maybe is something there that is causing the trouble


Can you share the output of vagrant box list


?


Thanks


pascal

unread,
Jun 8, 2015, 1:30:05 PM6/8/15
to vagra...@googlegroups.com
Hi Alvaro,

vagrant box list result:
sparkmooc/base (virtualbox, 0.0.7.1)

As stated before the box is correctly installed only if I define the master.vm.box_url parameter in the vagrantfile file (and this happens with any VM I am trying to install on this specific computer) - If master.vm.box_url is not set, vagrant will always install the precise32.box.

weird isn't it ?

Alvaro Miranda Aguilera

unread,
Jun 8, 2015, 6:16:18 PM6/8/15
to vagra...@googlegroups.com
Hello,

vagrant version should help

since vagrant 1.5 vagrant understand user/box and goes to vagrant cloud

as there is only 1 machine with the issue I would suggest to reinstall.
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Alfredo Nava

unread,
Jan 26, 2016, 12:57:35 PM1/26/16
to Vagrant
I am also trying to set this up but on my Ubuntu 14.04 desktop, and am getting same issue. However mine just pauses while setting up SSH, and never completes.

Alvaro Miranda Aguilera

unread,
Jan 27, 2016, 2:57:41 AM1/27/16
to vagra...@googlegroups.com
Hello Alfredo.

Can you share something? Vagrantfile and logs should be ideal to start.

Try to add

config.ssh.insert_key = false

and do vagrant destroy and then vagarant up

for some reason, some boxes fail after changing the ssh key

thanks
This email has been sent from a virus-free computer protected by Avast.
www.avast.com

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
Message has been deleted

Alfredo Nava

unread,
Jan 27, 2016, 3:21:25 PM1/27/16
to Vagrant
Hey so I was able to fix it by enabling the virtualization features of my processor through my BIOS. It was pretty weird since I didn't think those options had anything to do with ssh.
Reply all
Reply to author
Forward
0 new messages