Closed olivier427 closed 8 years ago
I fixed it by changing remote_path variable in the shell provisioner as follow :
"provisioners": [
{
"type": "shell",
"remote_path": "/cygdrive/c/Windows/Temp/script.bat",
"execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat",
I haven't seen this, but at least we have a documented workaround in case this comes up again.
I faced this issue with windows 2012 r2. Changed provisioner as follow and it worked:
"provisioners": [
{
"type": "windows-shell",
"scripts": [
"./scripts/vm-guest-tools.bat",
Windows 2008r2 build fails soon after windows updates finish and SSH starts accepting connections. If I disable Windows Updates from Autounattend.xml, it works fine.
It seems that the provisioner script C:/Windows/Temp/script.bat does not exist despite packer correctly uploading it to /tmp/script.bat
Has anyone had a similar issue and managed to fix it somehow ?