Skip to content

Latest commit

 

History

History
59 lines (52 loc) · 2.28 KB

README.md

File metadata and controls

59 lines (52 loc) · 2.28 KB

packer

This repo contains my tests on setting up various images using packer.

I utilized the following URLs as a basis for my tests:

To setup versioning on a packer image, perform the following. Follow this link for the reference.

$ certutil -hashfile windows2016min-virtualbox.box MD5
MD5 hash of windows2016min-virtualbox.box:
1774ea183f97654afb31d04527b24782
CertUtil: -hashfile command completed successfully.
$ vi metadata.json
// metadata.json file used with the vagrant box add
{
  "name": "my/win2016",
  "description": "Windows 2016 Evaluation",
  "versions": [
    {
      "version": "0.1.0",
      "providers": [
        {
          "name": "virtualbox",
          "url": "file:///d:/.vagrant.d/windows2016min-virtualbox.box",
          "checksum_type": "md5",
          "checksum": "1774ea183f97654afb31d04527b24782"
        }
      ]
    }
  ]
}
$ vagrant box add metadata.json --provider virtualbox
==> box: Loading metadata for box 'metadata.json'
    box: URL: file://d:/.vagrant.d/metadata.json
==> box: Adding box 'my/win2016' (v0.1.0) for provider: virtualbox
    box: Unpacking necessary files from: file:///d:/.vagrant.d/windows2016min-virtualbox.box
    box: Progress: 100% (Rate: 117M/s, Estimated time remaining: --:--:--)
    box: Calculating and comparing box checksum...
==> box: Successfully added box 'my/win2016' (v0.1.0) for 'virtualbox'!
$

After upgrading to vagrant 2.2.16, I am seeing this error for my personal win2016 vagrant box.

Processing D:\VMs\vagrant.d\boxes\my-VAGRANTSLASH-win2016
==> default: Checking for updates to 'my/win2016'
    default: Latest installed version: 0.2.0
    default: Version constraints:
    default: Provider: virtualbox
There was an error while downloading the metadata for this box.
The error message is shown below:

URL using bad/illegal format or missing URL

Apparently this is a known issue as per "URL using bad/illegal format or missing URL" with Vagrant 2.2.15. I will need to update my Vagrant file to include a .vm.box_url entry.