Den onsdagen den 1:e oktober 2014 kl. 20:20:05 UTC+2 skrev Alan Worstell:
>
> I would like to be running a checksum on the .box file that is downloaded 
> when doing a vagrant up as specified at 
> https://docs.vagrantup.com/v2/vagrantfile/machine_settings.html 
> by using:
> config.vm.box_download_checksum
> config.vm.box_download_checksum_type
>
> config.vm.box_url
>
 

> However, when I specify an incorrect checksum, the .box is still 
> downloaded and imported. I have tested this on both Windows and OSX using 
> both Vagrant 1.6.3 and 1.6.5, using all three checksum types (md5, sha1, 
> sha256) 
>

I'm seeing the same problem with Vagrant 1.6.5, running under Ubuntu 14.10

Here is what I have in my Vagrantfile

  config.vm.box = "anlashok/wheezy64"
  config.vm.box_url = "https://example.net/vgrnt/anlashok_wheezy64.box";
  config.vm.box_download_checksum_type = "sha256"
  config.vm.box_download_checksum = 
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"

No matter that 
0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef is 
obviously a fake checksum Vagrant will gladly download the imagine and 
start a vm.

  andreas@corrino:~/workdir/anlatest$ vagrant up 
  Bringing machine 'default' up with 'virtualbox' provider...
  ==> default: Box 'anlashok/wheezy64' could not be found. Attempting to 
find and install...
      default: Box Provider: virtualbox
      default: Box Version: >= 0
  ==> default: Adding box 'anlashok/wheezy64' (v0) for provider: virtualbox
        default: Downloading: 
https://example.net/vgrnt/anlashok_wheezy64.box
  ==> default: Successfully added box 'anlashok/wheezy64' (v0) for 
'virtualbox'!
  ==> default: Importing base box 'anlashok/wheezy64'...
  ==> default: Matching MAC address for NAT networking...
  ==> default: Setting the name of the VM: 
anlatest_default_1413735208613_50166
  ==> default: Fixed port collision for 22 => 2222. Now on port 2200.
  ==> default: Clearing any previously set network interfaces...
  ==> default: Preparing network interfaces based on configuration...
      default: Adapter 1: nat
  ==> default: Forwarding ports...
      default: 22 => 2200 (adapter 1)
  ==> default: Booting VM...
  ==> default: Waiting for machine to boot. This may take a few minutes...
      default: SSH address: 127.0.0.1:2200
      default: SSH username: vagrant
      default: SSH auth method: private key
      default: Warning: Connection timeout. Retrying...
  ==> default: Machine booted and ready!
  ==> default: Checking for guest additions in VM...
  ==> default: Mounting shared folders...
      default: /vagrant => /home/andreas/workdir/anlatest
  andreas@corrino:~/workdir/anlatest$

Bug?

// Andreas

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to