Skip to content
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
@iAnomaly

Description

@iAnomaly

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!

Activity

yeroc

yeroc commented on Mar 9, 2018

@yeroc

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

paleozogt commented on Aug 24, 2018

@paleozogt

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

added a commit that references this issue on Sep 28, 2019
35abb25
linked a pull request that will close this issue on Sep 28, 2019
dragon788

dragon788 commented on Sep 29, 2019

@dragon788

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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @yeroc@paleozogt@dragon788@iAnomaly

      Issue actions

        Vagrant Box Format Invalid · Issue #15 · MicrosoftEdge/dev.microsoftedge.com-vms