hashicorp / hashicorp/packer-plugin-hyperv
Add Windows 10 Support to packer-plugin-hyperv_v0.0.1_x5.0_linux_amd64.zip
- Dominant language
- Go
- Stars
- 27
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
_This issue was originally opened by @adrianhale as hashicorp/packer#11057. It was migrated here as a result of the [Packer plugin split](https://github.com/hashicorp/packer/issues/8610#issuecomment-770034737). The original body of the issue is below._
#### Description
Attempting to run Packer from WSL2 on Windows 10 fails with the following error message when using hyperv-iso as the builder:
Build 'hyperv-iso.windows-10' errored after 765 microseconds: Failed creating Hyper-V driver: Applies to Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2 only
#### Use Case(s)
Would like to use Ansible as a provisioner. This is not possible running Packer through Windows as Ansible cannot be installed on Windows.
#### Potential configuration
- Enable Hyper-V on Windows 10
- Enable WSL 2
- Install Ubuntu 20.04 LTS via Microsoft Store
- Install Packer on WSL2
- Attempt to build using Packer on WSL2 to Hyper-V
#### Extras
- https://github.com/hashicorp/packer-plugin-hyperv/releases
Contributor guide
Assessment
This issue has not been assessed yet.