Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Vagrant Box Format Invalid #15

Open
iAnomaly opened this issue Feb 13, 2018 · 3 comments · May be fixed by #27
Open

Vagrant Box Format Invalid #15

iAnomaly opened this issue Feb 13, 2018 · 3 comments · May be fixed by #27

Comments

@iAnomaly
Copy link

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
Copy link

yeroc commented Mar 9, 2018

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
Copy link

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

dragon788 added a commit to dragon788/dev.microsoftedge.com-vms that referenced this issue Sep 28, 2019
Fixes MicrosoftEdge#15 and should make developers 100x more likely to actually use it
@dragon788 dragon788 linked a pull request Sep 28, 2019 that will close this issue
@dragon788
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants