Packer in WSL and Virtual Box and Ansible

61 views
Skip to first unread message

Seth Daemen

unread,
Oct 27, 2019, 6:41:35 AM10/27/19
to Packer
Hello,

I'am new to packer but I like it very well.
I want to use the combination from packer and Ansible to build my images.
But ansible is not native on windows I like to use packer on WSL Debian or Ubuntu and build images in virtuabox and use the local option the start ansible playbooks

But When I run the build from WSL I get:

--> windows-10-1903-amd64-virtualbox: Failed creating VirtualBox driver: exec: "VBoxManage": executable file not found in $PATH

But the path variable to c:\program files\oracle\virtualbox is available
I can also run VBoxManage.exe

Is it possible to run this setup? Or does someone have other suggestions?

Dan Linder

unread,
Oct 28, 2019, 8:20:14 AM10/28/19
to Packer
What is $PATH set to?  Does it have "/mnt/c/program\ files/oracle/virtualbox" as one of the entries?

Seth Daemen

unread,
Oct 28, 2019, 5:12:20 PM10/28/19
to Packer
The path is correct.
Now I get the following error

"Error reading version for guest additions download: exit status 1"

Reply all
Reply to author
Forward
0 new messages