Open soca-cameron opened 4 years ago
i had exactly the same, like 5 or 6 times after each other. i thought, okay, bad programmed... ;)= but maybe it was the old pc, dunno... COULD BE! ;)
I mean the majority of the script was next-level, loving it, then this happened. I doubt its my host, its in a data-centre.
Exact error message inbound; just as soon as i can make it reproduce it.
virtualbox-iso: C:\Users\vagrant>reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f virtualbox-iso: The operation completed successfully. ==> virtualbox-iso: Provisioning with Powershell... ==> virtualbox-iso: Provisioning with powershell script: ./scripts/debloat-windows.ps1 virtualbox-iso: Downloading debloat zip virtualbox-iso: Disable Windows Defender virtualbox-iso: Optimize Windows Update virtualbox-iso: Disable automatic download and installation of Windows updates virtualbox-iso: virtualbox-iso: virtualbox-iso: Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate virtualbox-iso: virtualbox-iso: virtualbox-iso: Name Property virtualbox-iso: ---- -------- virtualbox-iso: AU virtualbox-iso: Disable seeding of updates to other computers via Group Policies virtualbox-iso: virtualbox-iso: virtualbox-iso: Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows virtualbox-iso: virtualbox-iso: virtualbox-iso: Name Property virtualbox-iso: ---- -------- virtualbox-iso: DeliveryOptimization virtualbox-iso: Disable 'Updates are available' message virtualbox-iso: virtualbox-iso: SUCCESS: The file (or folder): "C:\Windows\System32\MusNotification.exe" now owned by user "VAGRANT-10\vagrant". virtualbox-iso: processed file: C:\Windows\System32\MusNotification.exe virtualbox-iso: Successfully processed 1 files; Failed processing 0 files virtualbox-iso: virtualbox-iso: SUCCESS: The file (or folder): "C:\Windows\System32\MusNotificationUx.exe" now owned by user "VAGRANT-10\vagrant". virtualbox-iso: processed file: C:\Windows\System32\MusNotificationUx.exe virtualbox-iso: Successfully processed 1 files; Failed processing 0 files virtualbox-iso: Disable Windows Update virtualbox-iso: virtualbox-iso: virtualbox-iso: Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT virtualbox-iso: virtualbox-iso: virtualbox-iso: Name Property virtualbox-iso: ---- -------- virtualbox-iso: Reliability ==> virtualbox-iso: Provisioning with powershell script: ./scripts/rearm-windows.ps1 virtualbox-iso: Resetting the Windows evaluation timer virtualbox-iso: virtualbox-iso: virtualbox-iso: GENUS : 2 virtualbox-iso: CLASS : PARAMETERS virtualbox-iso: SUPERCLASS : virtualbox-iso: DYNASTY : PARAMETERS virtualbox-iso: RELPATH : virtualbox-iso: PROPERTY_COUNT : 1 virtualbox-iso: DERIVATION : {} virtualbox-iso: SERVER : virtualbox-iso: NAMESPACE : virtualbox-iso: PATH : virtualbox-iso: ReturnValue : virtualbox-iso: PSComputerName : virtualbox-iso: ==> virtualbox-iso: Provisioning with powershell script: ./scripts/MakeWindows10GreatAgain.ps1 virtualbox-iso: Making Windows 10 Great again virtualbox-iso: Importing registry keys... virtualbox-iso: Removing OneDrive... virtualbox-iso: Running Update-Help... virtualbox-iso: Removing Microsoft Store, Mail, and Edge shortcuts from the taskbar... ==> virtualbox-iso: Restarting Machine ==> virtualbox-iso: Waiting for machine to restart... ==> virtualbox-iso: A system shutdown is in progress.(1115) ==> virtualbox-iso: Timeout waiting for machine to restart. ==> virtualbox-iso: Provisioning step had errors: Running the cleanup provisioner, if present... ==> virtualbox-iso: Deregistering and deleting VM... ==> virtualbox-iso: Deleting output directory... Build 'virtualbox-iso' errored: Timeout waiting for machine to restart.
==> Some builds didn't complete successfully and had errors: --> virtualbox-iso: Timeout waiting for machine to restart.
==> Builds finished but no artifacts were created. Finished for sandbox. Got exit code: 1 packer_build_box : Something went wrong while attempting to build the sandbox box. At C:\users\dev-admin\Desktop\BoomBox-master\build.ps1:279 char:3
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,packer_build_box
./build.ps1 times out whilst waiting for VM to restart even though it has restarted on virtualbox. Does not register on powershell and goes ahead and deletes & deregisters VM, has happened twice now so definitely a bug.