This repository was archived by the owner on Jun 17, 2024. It is now read-only.
This repository was archived by the owner on Jun 17, 2024. It is now read-only.
Vagrant Box Format Invalid #15
Open
Description
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
- Include the aforementioned metadata.json file
or - 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!
Metadata
Metadata
Assignees
Labels
No labels
Activity
yeroc commentedon 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 commentedon Aug 24, 2018
Being able to download the
.box
directly in theVagrantfile
would be a fine workaround for #22.Fix Vagrant boxes so they are DIRECTLY usable
dragon788 commentedon Sep 29, 2019
With the above PR and some minor tweaks to this Vagrantfile, life could be awesome again. https://gist.github.com/jeebak/d13cbbb35a199ed4818a