dev.microsoftedge.com-vms icon indicating copy to clipboard operation
dev.microsoftedge.com-vms copied to clipboard

Vagrant Box Format Invalid

Open iAnomaly opened this issue 7 years ago • 3 comments

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!

iAnomaly avatar Feb 13 '18 21:02 iAnomaly

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}

yeroc avatar Mar 09 '18 18:03 yeroc

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

paleozogt avatar Aug 24 '18 15:08 paleozogt

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

dragon788 avatar Sep 29 '19 00:09 dragon788