FOR BUGS:
Describe the problem and include the following information:
Packer version: 1.3.3
Host platform: Windows 10 - 1809 (OS build 17763.134)
The console output and packer configurations are here: https://gist.github.com/pvandervelde/8980e3f396209fec53b7f8c4b8be6d21
I think this is related to #7030 where the Copy
parameter was removed. It looks like powershell isn't too thrilled about that move (at least not on Windows 10 1809)
bluh. I was worried about this. Maybe we can add an option to either include or remove the -copy flag.
@pvandervelde I've written a patch to add this option and return the default to "false".
Here's a windows build of Packer with this patch applied:
packer.zip
Can you give it a whirl for me and let me know if it solves your issue?
Will try tonight when I get back home and let you know what the results are
@SwampDragons that seems to have done the trick! I tested it on a Win10 box. Haven't tested on a server box as I don't have one handy here.
I tried the fix from the zip file above, but I'm still getting errors related to the Copy argument. The full output can be found at https://gist.github.com/pizzapie/48edb913762b1aaf768ff930366d6279
@pizzapie thanks! I think I found the problem. can you try this one?
Thank you for the quick reply. I still get the same error, though. My latest attempt is logged here: https://gist.github.com/pizzapie/624365b80c8058b943536d3144ee3388
@pizzapie Strange. What's your windows version?
Edition: Windows 10 Pro
Version: 1809
Installed on: 12/12/2018
OS build: 17763.194
I got the same results both before & after the upgrade from version 1803 -> 1809
ok. Thanks. I'll see if I can reproduce locally.
Update: I have a repro. Hopefully a fix will follow shortly.
Okay, I think this one should do it. It turns out that my hyperv-vmcx repro case isn't totally complete but I think I'm getting past the compare-vm step.
@SwampDragons this one works for me
Worked for me too, thanks! I was able to build the Vagrant image I wanted. Here's the successful output if you need it for reference: https://gist.github.com/pizzapie/ce7f3cc625c2c075081af0c4118385e7
Awesome! Turns out passing booleans on the command line in Powershell is a bit exciting. I'll merge that patch.
Thanks for your help testing!
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.
Most helpful comment
bluh. I was worried about this. Maybe we can add an option to either include or remove the -copy flag.