You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @mwrock ,
I'm struggling to get your process running with an 2008 R2 iso.
Boxstarter is always displaying two errors:
1.
After the second error, the shell disappears and nothing else happens. Packer is waiting forever for WinRM to become available but no other scripts get executed, especially not your PACKAGE.ps1
When I try to execute the PACKAGE.ps1 on the machine, I run into errors about "Enable-RemoteDesktop" and "Update-ExecutionPolicy -Policy Unrestricted" . So I thought that might be because the Powershell version of the machine is too old. I tried invoking a ps1 that installs powershell 5 through chocolatey, but that didn't work either.
Now I'm stuck.
Can you please help me out by adding working templates and scripts for 2008 R2?
The text was updated successfully, but these errors were encountered:
Update:
I got the installation to work by invoking the chocolatey installation for powershell5 + rebooting the machine in the boxstarter.ps1: Install-BoxstarterPackage -PackageName a:\install_powershell.ps1 -Credential $cred Install-BoxstarterPackage -PackageName a:\package.ps1 -Credential $cred
The install_powershell.ps1:
# Install latest powershell, so that the package.ps1 can be executed
C:\ProgramData\Chocolatey\choco.exe install powershell -y
However, now the PackerShutdown.bat fails, or rather the sysprep command within it:
Hi @mwrock ,
I'm struggling to get your process running with an 2008 R2 iso.
Boxstarter is always displaying two errors:
1.
After the second error, the shell disappears and nothing else happens. Packer is waiting forever for WinRM to become available but no other scripts get executed, especially not your PACKAGE.ps1
When I try to execute the PACKAGE.ps1 on the machine, I run into errors about "Enable-RemoteDesktop" and "Update-ExecutionPolicy -Policy Unrestricted" . So I thought that might be because the Powershell version of the machine is too old. I tried invoking a ps1 that installs powershell 5 through chocolatey, but that didn't work either.
Now I'm stuck.
Can you please help me out by adding working templates and scripts for 2008 R2?
The text was updated successfully, but these errors were encountered: