Skip to content

Commit 800b1df

Browse files
committed
Add documenation for how to run from wsl2
1 parent ab1714a commit 800b1df

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.web-docs/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ $ packer plugins install github.com/hashicorp/hyperv
3535
- [hyperv-vmcx](packer/integrations/hashicorp/hyperv/latest/components/builder/vmcx) - Clones an existing
3636
virtual machine, provisions software within the OS, then exports that machine to create an image. This is best for people who have existing base
3737
images and want to customize them.
38+
39+
### Running from WSL2
40+
41+
This plugin supports being run from WSL2 provided its run from a windows filesystem and the PACKER_CACHE_DIR is set to a path on the windows filesystem.
42+
43+
For example, assuming a Windows username of `user`:
44+
45+
/mnt/c/Users/user/$ PACKER_CACHE_DIR=/mnt/c/Users/user/.packer packer build ...

docs/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ $ packer plugins install github.com/hashicorp/hyperv
3535
- [hyperv-vmcx](packer/integrations/hashicorp/hyperv/latest/components/builder/vmcx) - Clones an existing
3636
virtual machine, provisions software within the OS, then exports that machine to create an image. This is best for people who have existing base
3737
images and want to customize them.
38+
39+
### Running from WSL2
40+
41+
This plugin supports being run from WSL2 provided its run from a windows filesystem and the PACKER_CACHE_DIR is set to a path on the windows filesystem.
42+
43+
For example, assuming a Windows username of `user`:
44+
45+
/mnt/c/Users/user/$ PACKER_CACHE_DIR=/mnt/c/Users/user/.packer packer build ...

0 commit comments

Comments
 (0)