What does that concretly mean Rickard? That we cannot use the HTTP server for provisiong tasks (in other words, I cannot bring my packages with that method on my node?)
I actually tried using a HTTP_directory but I couldnt reach it (I was expecting to be able to browse directly to it via internet explorer using the IP and the port that are specified in the output:
==> hyperv-iso: Creating temporary directory...
==> hyperv-iso: Downloading or copying ISO
hyperv-iso: Downloading or copying: file:///C:/Users/taavast3/Downloads/en_windows_server_2012_r2_with_update_x64_dvd_6052708%20%281%29.iso
==> hyperv-iso: Creating floppy disk...
hyperv-iso: Copying files flatly from floppy_files
hyperv-iso: Copying file: answer_files/2012_r2/Autounattend.xml
hyperv-iso: Copying file: scripts/config_winrm.ps1
hyperv-iso: Copying file: scripts/config_remotedesktop.ps1
hyperv-iso: Copying file: scripts/config_tattoo.ps1
hyperv-iso: Copying file: scripts/LaunchScripts.ps1
hyperv-iso: Copying file: scripts/start.ps1
hyperv-iso: Copying file: scripts/ALL-IMP-PowershellUpgrade/__Inputs/Additional-Commands.psm1
hyperv-iso: Copying file: scripts/ALL-IMP-PowershellUpgrade/ALL-IMP-PowershellUpgrade.ps1
hyperv-iso: Copying file: scripts/ALL-IMP-PowershellUpgrade/sources/Win8.1AndWK12R2-KB3191564-x64.msu
hyperv-iso: Copying file: scripts/ALL-IMP-PowershellUpgrade/sources/NDP462-KB3151800-x86-x64-AllOS-ENU.exe
hyperv-iso: Done copying files from floppy_files
hyperv-iso: Collecting paths from floppy_dirs
hyperv-iso: Resulting paths from floppy_dirs : []
hyperv-iso: Done copying paths from floppy_dirs
==> hyperv-iso: Starting HTTP server on port 8172
==> hyperv-iso: Creating switch 'packer-hyperv-iso' if required...
==> hyperv-iso: switch 'packer-hyperv-iso' already exists. Will not delete on cleanup...
==> hyperv-iso: Creating virtual machine...
==> hyperv-iso: Enabling Integration Service...
==> hyperv-iso: Setting boot drive to os dvd drive C:/Users/taavast3/Downloads/en_windows_server_2012_r2_with_update_x64_dvd_6052708 (1).iso ...
==> hyperv-iso: Mounting os dvd drive C:/Users/taavast3/Downloads/en_windows_server_2012_r2_with_update_x64_dvd_6052708 (1).iso ...
==> hyperv-iso: Mounting floppy drive...
==> hyperv-iso: Skipping mounting Integration Services Setup Disk...
==> hyperv-iso: Mounting secondary DVD images...
==> hyperv-iso: Configuring vlan...
==> hyperv-iso: Starting the virtual machine...
==> hyperv-iso: Waiting 10s for boot...
==> hyperv-iso: Host IP for the HyperV machine: 169.254.127.211
==> hyperv-iso: Typing the boot command...
==> hyperv-iso: Waiting for WinRM to become available...
I was expecting to see the list of files that were in the HTTP_Directory.
I didn't try to use a direct URL to the file as Alvaro mentioned (I am currently redeploying, and i'll try as soon as possible
Also, more generaly, how can I access packer variables in my powershell session? Do I have to specify in the "variables" : [] section? And how do I read the values with powershell afterwards?