Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Vagrant Boxes #11

Closed
mhewedy opened this issue Aug 19, 2020 · 1 comment
Closed

Support Vagrant Boxes #11

mhewedy opened this issue Aug 19, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mhewedy
Copy link
Owner

mhewedy commented Aug 19, 2020

Final:
vermin create vagrant/hashicorp/bionic64:1.0.282

Steps:

  1. request and parse response of https://app.vagrantup.com/USER/boxes/BOX to get the box download URL ✔️
  2. download the image ✔️
  3. gunzip the image (in case it is gzipped) tar xzf <donwloaded_file> ✔️
  4. TAR the ovf and vmdk files into ova archive in case the previous step done, otherwise skip (tar the ovf and the vmdk into ova) ✔️
  5. copy vagrant insecure private key into .vermin/ and use it with vagrant boxes (modify install script to copy vagrant key to vermin installation) ✔️
  6. change code to change username/private key of vermin/vagrant according to the origin of the VM image. ✔️

Sample Response for step 1:

{
  "description": "A standard Ubuntu 18.04 LTS 64-bit box",
  "short_description": "A standard Ubuntu 18.04 LTS 64-bit box",
  "name": "hashicorp/bionic64",
  "versions": [
    {
      "version": "1.0.282",
      "status": "active",
      "description_html": null,
      "description_markdown": null,
      "providers": [
        {
          "name": "virtualbox",
          "url": "https://vagrantcloud.com/hashicorp/boxes/bionic64/versions/1.0.282/providers/virtualbox.box",
          "checksum": null,
          "checksum_type": null
        },
        {
          "name": "vmware_desktop",
          "url": "https://vagrantcloud.com/hashicorp/boxes/bionic64/versions/1.0.282/providers/vmware_desktop.box",
          "checksum": null,
          "checksum_type": null
        },
        {
          "name": "hyperv",
          "url": "https://vagrantcloud.com/hashicorp/boxes/bionic64/versions/1.0.282/providers/hyperv.box",
          "checksum": null,
          "checksum_type": null
        }
      ]
    }
  ]
}
@mhewedy
Copy link
Owner Author

mhewedy commented Aug 20, 2020

Known issues:

@mhewedy mhewedy added the enhancement New feature or request label Aug 20, 2020
mhewedy added a commit that referenced this issue Aug 21, 2020
mhewedy added a commit that referenced this issue Aug 21, 2020
mhewedy added a commit that referenced this issue Aug 21, 2020
mhewedy added a commit that referenced this issue Aug 21, 2020
@mhewedy mhewedy closed this as completed Aug 21, 2020
@mhewedy mhewedy unpinned this issue Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant