MicrosoftEdge / dev.microsoftedge.com-vms

Scripts used to generate the free VMs available at https://dev.microsoftedge.com
MIT License
81 stars 22 forks source link

Vagrant Box Format Invalid #15

Open iAnomaly opened 6 years ago

iAnomaly commented 6 years ago

Problem

For VMs provided at https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ on the Vagrant "platform", the provided ZIP file does not meet the Vagrant box file format specification detailed here: https://www.vagrantup.com/docs/boxes/format.html

Specifically, when using an archive (tar, tar.gz, zip, etc.) a metadata.json file must be included and:

metadata.json must contain at least the "provider" key with the provider the box is for. { "provider": "virtualbox" }

Solution

  1. Include the aforementioned metadata.json file or
  2. Provide the Vagrant "platform" option as the raw .box file and NOT as an archive (also worth mentioning the current ZIP is adding nothing in terms of compression and instead adds 195 bytes)

Thanks!

yeroc commented 6 years ago

Just ran into this myself. It would be awesome if this could be fixed as it would improve the developer experience to the point where we could do:

vagrant box add {url}

as opposed to:

curl {url} unzip {file} vagrant box add {file}

paleozogt commented 6 years ago

Being able to download the .box directly in the Vagrantfile would be a fine workaround for #22.

dragon788 commented 4 years ago

With the above PR and some minor tweaks to this Vagrantfile, life could be awesome again. https://gist.github.com/jeebak/d13cbbb35a199ed4818a