Closed ThomasPatzig closed 1 year ago
have also opened here: https://github.com/chef/bento/issues/1509
this is a +1 from me
Hi there folks, I can see how this is a bit of surprise. Apologies if this change was not called out enough in the release email and CHANGELOG.
Starting with Packer 1.9.0 the community maintained components, such as hyperv-iso, were removed from the Packer binary. These external plugin components are released independently of Packer core and can be installed directly by the user. This is the recommended approach from this point forward, and is part of the Packer Plugin split work started in v1.7.0.
To Install the latest available Hyper V plugin you can use the following command before running a Packer build.
packer plugins install github.com/hashicorp/hyperv
Since this appears to be related to the chef/bento project I recommend asking the maintainers to add a required plugins block to their HCL2 configuration files. Pinging @Stromweld for visibility.
This way the correct plugins version can be automatically installed by running
packer init
packer {
required_plugins {
hyperv = {
version = ">= 1.1.0"
source = "github.com/hashicorp/hyperv"
}
}
}
Please refer to the CHANGELOG for the full list of community-maintained plugins that are no longer bundled with Packer.
This is not a bug but I am keeping it open for folks to refer to and to allow the chef/bento team time to chime in.
I took a look at the chef/bento repo and it appears that the project is already using the rquired_plugins block for pinning plugin versions. Please run packer init
before trying to run packer build -force -on-error=ask PackerTemplate.pkr.hcl
to install all the necessary plugins used within within the project templates.
I'm going to close this issue as there is nothing to be done on the chef/bento side.
plugin install can fail because of proxy
packer plugins install github.com/hashicorp/hyperv
1 error occurred:
* Get "https://api.github.com/repos/hashicorp/packer-plugin-hyperv/git/matching-refs/tags": dial tcp: lookup api.github.com: no such host
set HTTP_PROXY=http://127.0.0.1:3128/
set HTTPS_PROXY=http://127.0.0.1:3128/
-> works
packer plugins install github.com/hashicorp/hyperv
Installed plugin github.com/hashicorp/hyperv v1.1.0 in "C:/Users/<<replaced>>/AppData/Roaming/packer.d/plugins/github.com/hashicorp/hyperv/packer-plugin-hyperv_v1.1.0_x5.0_windows_amd64.exe"
to check that plugin is already there:
packer plugins installed
C:\Users\<<replaced>>\AppData\Roaming\packer.d\plugins\github.com\hashicorp\hyperv\packer-plugin-hyperv_v1.1.0_x5.0_windows_amd64.exe
I don't like the separate plugin install because of:
packer plugins install github.com/hashicorp/hyperv 1 error occurred:
...and it does not support proxy with auth...
is it really need from your side to unbundle hyperv from packer?
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
When filing a bug, please include the following headings if possible. Any example text in this template can be deleted.
Version
packer --version 1.9.1
Environment
Win10 22H2
Scenario
try to build a hyper-v image from win 10 ISO
Steps to Reproduce
packer build -force -on-error=ask PackerTemplate.pkr.hcl
have defined HCL:
Expected Result
VM creation starts (has worked with packer 1.8.7)
Actual Result
Set the env var
PACKER_LOG=1
for maximum log detail.