Open NoraGithub opened 1 year ago
this is the building log:
vmware-iso: output will be in this color.
==> vmware-iso: Retrieving ISO
==> vmware-iso: Trying https://106-110-192-244.d.cjjd20.com:30443/123-53/8b331eea/1646843-0/8b331eea6e0b68344312d90d23902035?v=2&t=1676595737&s=4ae9d43ff6fb5dfdf259c9899856509b&filename=zh-cn_windows_server_2022_updated_jan_2023_x64_dvd_c9388f5b.iso&d=61098ede
==> vmware-iso: Trying https://106-110-192-244.d.cjjd20.com:30443/123-53/8b331eea/1646843-0/8b331eea6e0b68344312d90d23902035?checksum=sha256%3Aa48b08096d08c77fd113f06c7ac11f82a630cc023aad7a6099b162eb5972eddd&d=61098ede&filename=zh-cn_windows_server_2022_updated_jan_2023_x64_dvd_c9388f5b.iso&s=4ae9d43ff6fb5dfdf259c9899856509b&t=1676595737&v=2
==> vmware-iso: https://106-110-192-244.d.cjjd20.com:30443/123-53/8b331eea/1646843-0/8b331eea6e0b68344312d90d23902035?checksum=sha256%3Aa48b08096d08c77fd113f06c7ac11f82a630cc023aad7a6099b162eb5972eddd&d=61098ede&filename=zh-cn_windows_server_2022_updated_jan_2023_x64_dvd_c9388f5b.iso&s=4ae9d43ff6fb5dfdf259c9899856509b&t=1676595737&v=2 => /Users/norachan/.cache/packer/5ad00199c288f099faa69dcb559003f8423f67a5.iso
==> vmware-iso: Configuring output and export directories...
==> vmware-iso: Creating floppy disk...
vmware-iso: Copying files flatly from floppy_files
vmware-iso: Copying file: ./answer_files/2022_core/Autounattend.xml
vmware-iso: Copying file: ./scripts/disable-screensaver.ps1
vmware-iso: Copying file: ./scripts/disable-winrm.ps1
vmware-iso: Copying file: ./scripts/docker/enable-winrm.ps1
vmware-iso: Copying file: ./scripts/docker/2016/install-containers-feature.ps1
vmware-iso: Copying file: ./scripts/microsoft-updates.bat
vmware-iso: Copying file: ./scripts/win-updates.ps1
vmware-iso: Done copying files from floppy_files
vmware-iso: Collecting paths from floppy_dirs
vmware-iso: Resulting paths from floppy_dirs : []
vmware-iso: Done copying paths from floppy_dirs
vmware-iso: Copying files from floppy_content
vmware-iso: Done copying files from floppy_content
==> vmware-iso: Creating required virtual machine disks
==> vmware-iso: Building and writing VMX file
==> vmware-iso: Starting virtual machine...
==> vmware-iso: Connecting to VNC...
==> vmware-iso: Waiting 2m0s for boot...
==> vmware-iso: Typing the boot command over VNC...
==> vmware-iso: Waiting for WinRM to become available...
vmware-iso: WinRM connected.
==> vmware-iso: Connected to WinRM!
==> vmware-iso: Provisioning with windows-shell...
==> vmware-iso: Provisioning with shell script: ./scripts/enable-rdp.bat
vmware-iso:
vmware-iso: C:\Users\vagrant>netsh advfirewall firewall add rule name="Open Port 3389" dir=in action=allow protocol=TCP localport=3389
vmware-iso: Ok.
vmware-iso:
vmware-iso:
vmware-iso: C:\Users\vagrant>reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
vmware-iso: The operation completed successfully.
==> vmware-iso: Provisioning with Powershell...
==> vmware-iso: Provisioning with powershell script: ./scripts/vm-guest-tools.ps1
vmware-iso: Using VMware
vmware-iso: The latest version of VMware tools has been determined to be downloadable from https://softwareupdate.vmware.com/cds/vmw-desktop/ws/17.0.1/21139696//windows/packages/tools-windows.tar
==> vmware-iso: Provisioning with powershell script: ./scripts/debloat-windows.ps1
vmware-iso: Downloading
vmware-iso: debloat
vmware-iso: zip
vmware-iso: Disable
vmware-iso: Windows
vmware-iso: Defender
vmware-iso:
vmware-iso: Success Restart Needed Exit Code Feature Result
vmware-iso: ------- -------------- --------- --------------
vmware-iso: True Yes SuccessRest... {Microsoft Defender 防病毒}
vmware-iso: WARNING: You must restart this server to finish the removal process.
vmware-iso: Optimize
vmware-iso: Windows
vmware-iso: Update
vmware-iso: Disable automatic download and installation of Windows updates
vmware-iso: Disable seeding of updates to other computers via Group Policies
vmware-iso:
vmware-iso: Property : {}
vmware-iso: PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOpti
vmware-iso: mization
vmware-iso: PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
vmware-iso: PSChildName : DeliveryOptimization
vmware-iso: PSDrive : HKLM
vmware-iso: PSProvider : Microsoft.PowerShell.Core\Registry
vmware-iso: PSIsContainer : True
vmware-iso: SubKeyCount : 0
vmware-iso: View : Default
vmware-iso: Handle : Microsoft.Win32.SafeHandles.SafeRegistryHandle
vmware-iso: ValueCount : 0
vmware-iso: Name : HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization
vmware-iso:
vmware-iso: Disable 'Updates are available' message
vmware-iso:
vmware-iso: SUCCESS: The file (or folder): "C:\Windows\System32\MusNotification.exe" now owned by user "VAGRANT-2022\vagrant".
vmware-iso: processed file: C:\Windows\System32\MusNotification.exe
vmware-iso: Successfully processed 1 files; Failed processing 0 files
vmware-iso:
vmware-iso: SUCCESS: The file (or folder): "C:\Windows\System32\MusNotificationUx.exe" now owned by user "VAGRANT-2022\vagrant".
vmware-iso: processed file: C:\Windows\System32\MusNotificationUx.exe
vmware-iso: Successfully processed 1 files; Failed processing 0 files
==> vmware-iso: Provisioning with powershell script: ./scripts/docker/set-winrm-automatic.ps1
vmware-iso: [SC] ChangeServiceConfig SUCCESS
==> vmware-iso: Restarting Machine
==> vmware-iso: Waiting for machine to restart...
==> vmware-iso: A system shutdown is in progress.(1115)
vmware-iso: vagrant-2022 restarted.
==> vmware-iso: Machine successfully restarted, moving on
==> vmware-iso: Provisioning with Powershell...
==> vmware-iso: Provisioning with powershell script: ./scripts/docker/add-docker-group.ps1
vmware-iso: Creating
vmware-iso: group
vmware-iso: docker
vmware-iso: The command completed successfully.
vmware-iso:
vmware-iso: Adding
vmware-iso: user
vmware-iso: vagrant
vmware-iso: to
vmware-iso: group
vmware-iso: docker
vmware-iso: The command completed successfully.
vmware-iso:
==> vmware-iso: Provisioning with powershell script: ./scripts/docker/install-docker.ps1
vmware-iso:
vmware-iso:
vmware-iso: 目录: C:\Program Files
vmware-iso:
vmware-iso:
vmware-iso: Mode LastWriteTime Length Name
vmware-iso: ---- ------------- ------ ----
vmware-iso: d----- 2023/2/18 7:04 docker
vmware-iso: Downloading docker 20.10.17 ...
vmware-iso: Registering docker service ...
vmware-iso: Starting docker ...
==> vmware-iso: Provisioning with powershell script: ./scripts/docker/docker-pull.ps1
vmware-iso: Installing
vmware-iso: mcr.microsoft.com/windows/nanoserver:ltsc2022
vmware-iso: ...
vmware-iso: Running
vmware-iso: Running
vmware-iso: ltsc2022: Pulling from windows/nanoserver
vmware-iso: 546fcac75d6a: Pulling fs layer
vmware-iso: 546fcac75d6a: Verifying Checksum
vmware-iso: 546fcac75d6a: Download complete
vmware-iso: 546fcac75d6a: Pull complete
vmware-iso: Digest: sha256:786a24be2bd1945bee9701f95a71d8573ace8641c112dc27206f826bef0229c1
vmware-iso: Status: Downloaded newer image for mcr.microsoft.com/windows/nanoserver:ltsc2022
vmware-iso: mcr.microsoft.com/windows/nanoserver:ltsc2022
vmware-iso: Installing
vmware-iso: mcr.microsoft.com/windows/servercore:ltsc2022
vmware-iso: ...
vmware-iso: Running
vmware-iso: Running
vmware-iso: Running
vmware-iso: Running
vmware-iso: Running
vmware-iso: Running
vmware-iso: Running
vmware-iso: Running
vmware-iso: Running
vmware-iso: Running
vmware-iso: ltsc2022: Pulling from windows/servercore
vmware-iso: 6a0972e4a21b: Pulling fs layer
vmware-iso: c4a9d67ee64f: Pulling fs layer
vmware-iso: c4a9d67ee64f: Verifying Checksum
vmware-iso: c4a9d67ee64f: Download complete
vmware-iso: 6a0972e4a21b: Verifying Checksum
vmware-iso: 6a0972e4a21b: Download complete
vmware-iso: 6a0972e4a21b: Pull complete
vmware-iso: c4a9d67ee64f: Pull complete
vmware-iso: Digest: sha256:5662262ca25622f4f8ad593481dd58dea47713bce5e6c9fdef9089a92e7c75b1
vmware-iso: Status: Downloaded newer image for mcr.microsoft.com/windows/servercore:ltsc2022
vmware-iso: mcr.microsoft.com/windows/servercore:ltsc2022
vmware-iso: Installing
vmware-iso: mcr.microsoft.com/windows/nanoserver:ltsc2022
vmware-iso: ...
vmware-iso: Running
vmware-iso: ltsc2022: Pulling from windows/nanoserver
vmware-iso: Digest: sha256:786a24be2bd1945bee9701f95a71d8573ace8641c112dc27206f826bef0229c1
vmware-iso: Status: Image is up to date for mcr.microsoft.com/windows/nanoserver:ltsc2022
vmware-iso: mcr.microsoft.com/windows/nanoserver:ltsc2022
vmware-iso: Installing
vmware-iso: mcr.microsoft.com/windows/servercore:ltsc2022
vmware-iso: ...
vmware-iso: Running
vmware-iso: ltsc2022: Pulling from windows/servercore
vmware-iso: Digest: sha256:5662262ca25622f4f8ad593481dd58dea47713bce5e6c9fdef9089a92e7c75b1
vmware-iso: Status: Image is up to date for mcr.microsoft.com/windows/servercore:ltsc2022
vmware-iso: mcr.microsoft.com/windows/servercore:ltsc2022
vmware-iso: Run
vmware-iso: first
vmware-iso: container
vmware-iso: from
vmware-iso: mcr.microsoft.com/windows/nanoserver:ltsc2022
vmware-iso: ...
vmware-iso: Microsoft Windows [Version 10.0.20348.1547]
vmware-iso: (c) Microsoft Corporation. All rights reserved.
vmware-iso:
vmware-iso: C:\>Run
vmware-iso: first
vmware-iso: container
vmware-iso: from
vmware-iso: mcr.microsoft.com/windows/servercore:ltsc2022
vmware-iso: ...
vmware-iso: Microsoft Windows [Version 10.0.20348.1547]
vmware-iso: (c) Microsoft Corporation. All rights reserved.
vmware-iso:
vmware-iso: C:\>
==> vmware-iso: Provisioning with powershell script: ./scripts/wait-for-tiworker.ps1
vmware-iso: Checking for TiWorker (0)
vmware-iso: Checking for TiWorker (1)
vmware-iso: Checking for TiWorker (2)
==> vmware-iso: Provisioning with powershell script: ./scripts/docker/open-docker-insecure-port.ps1
vmware-iso: WARNING: DO NOT USE DOCKER IN PRODUCTION WITHOUT TLS
vmware-iso: Opening Docker insecure port 2375
vmware-iso:
vmware-iso:
vmware-iso: Name : Dockerinsecure2375
vmware-iso: DisplayName : Docker insecure on TCP/2375
vmware-iso: Description :
vmware-iso: DisplayGroup :
vmware-iso: Group :
vmware-iso: Enabled : True
vmware-iso: Profile : Any
vmware-iso: Platform : {}
vmware-iso: Direction : Inbound
vmware-iso: Action : Allow
vmware-iso: EdgeTraversalPolicy : Block
vmware-iso: LooseSourceMapping : False
vmware-iso: LocalOnlyMapping : False
vmware-iso: Owner :
vmware-iso: PrimaryStatus : OK
vmware-iso: Status : 已从存储区成功分析规则。 (65536)
vmware-iso: EnforcementStatus : NotApplicable
vmware-iso: PolicyStoreSource : PersistentStore
vmware-iso: PolicyStoreSourceType : Local
vmware-iso: RemoteDynamicKeywordAddresses : {}
vmware-iso:
==> vmware-iso: Provisioning with powershell script: ./scripts/docker/open-docker-swarm-ports.ps1
vmware-iso: Opening Docker swarm mode ports
vmware-iso:
vmware-iso:
vmware-iso: Name : Dockerswarm2377
vmware-iso: DisplayName : Docker Swarm Mode Management TCP/2377
vmware-iso: Description :
vmware-iso: DisplayGroup :
vmware-iso: Group :
vmware-iso: Enabled : True
vmware-iso: Profile : Any
vmware-iso: Platform : {}
vmware-iso: Direction : Inbound
vmware-iso: Action : Allow
vmware-iso: EdgeTraversalPolicy : Block
vmware-iso: LooseSourceMapping : False
vmware-iso: LocalOnlyMapping : False
vmware-iso: Owner :
vmware-iso: PrimaryStatus : OK
vmware-iso: Status : 已从存储区成功分析规则。 (65536)
vmware-iso: EnforcementStatus : NotApplicable
vmware-iso: PolicyStoreSource : PersistentStore
vmware-iso: PolicyStoreSourceType : Local
vmware-iso: RemoteDynamicKeywordAddresses : {}
vmware-iso:
vmware-iso: Name : Dockerswarm7946
vmware-iso: DisplayName : Docker Swarm Mode Node Communication TCP/7946
vmware-iso: Description :
vmware-iso: DisplayGroup :
vmware-iso: Group :
vmware-iso: Enabled : True
vmware-iso: Profile : Any
vmware-iso: Platform : {}
vmware-iso: Direction : Inbound
vmware-iso: Action : Allow
vmware-iso: EdgeTraversalPolicy : Block
vmware-iso: LooseSourceMapping : False
vmware-iso: LocalOnlyMapping : False
vmware-iso: Owner :
vmware-iso: PrimaryStatus : OK
vmware-iso: Status : 已从存储区成功分析规则。 (65536)
vmware-iso: EnforcementStatus : NotApplicable
vmware-iso: PolicyStoreSource : PersistentStore
vmware-iso: PolicyStoreSourceType : Local
vmware-iso: RemoteDynamicKeywordAddresses : {}
vmware-iso:
vmware-iso: Name : Dockerswarm7946udp
vmware-iso: DisplayName : Docker Swarm Mode Node Communication UDP/7946
vmware-iso: Description :
vmware-iso: DisplayGroup :
vmware-iso: Group :
vmware-iso: Enabled : True
vmware-iso: Profile : Any
vmware-iso: Platform : {}
vmware-iso: Direction : Inbound
vmware-iso: Action : Allow
vmware-iso: EdgeTraversalPolicy : Block
vmware-iso: LooseSourceMapping : False
vmware-iso: LocalOnlyMapping : False
vmware-iso: Owner :
vmware-iso: PrimaryStatus : OK
vmware-iso: Status : 已从存储区成功分析规则。 (65536)
vmware-iso: EnforcementStatus : NotApplicable
vmware-iso: PolicyStoreSource : PersistentStore
vmware-iso: PolicyStoreSourceType : Local
vmware-iso: RemoteDynamicKeywordAddresses : {}
vmware-iso:
vmware-iso: Name : Dockerswarm4789
vmware-iso: DisplayName : Docker Swarm Overlay Network Traffic TCP/4789
vmware-iso: Description :
vmware-iso: DisplayGroup :
vmware-iso: Group :
vmware-iso: Enabled : True
vmware-iso: Profile : Any
vmware-iso: Platform : {}
vmware-iso: Direction : Inbound
vmware-iso: Action : Allow
vmware-iso: EdgeTraversalPolicy : Block
vmware-iso: LooseSourceMapping : False
vmware-iso: LocalOnlyMapping : False
vmware-iso: Owner :
vmware-iso: PrimaryStatus : OK
vmware-iso: Status : 已从存储区成功分析规则。 (65536)
vmware-iso: EnforcementStatus : NotApplicable
vmware-iso: PolicyStoreSource : PersistentStore
vmware-iso: PolicyStoreSourceType : Local
vmware-iso: RemoteDynamicKeywordAddresses : {}
vmware-iso:
==> vmware-iso: Provisioning with powershell script: ./scripts/docker/remove-docker-key-json.ps1
vmware-iso: Stopping Docker
vmware-iso: Removing key.json to recreate key.json on first vagrant up
==> vmware-iso: Provisioning with powershell script: ./scripts/docker/disable-windows-defender.ps1
==> vmware-iso: Provisioning with windows-shell...
==> vmware-iso: Provisioning with shell script: ./scripts/set-winrm-automatic.bat
vmware-iso:
vmware-iso: C:\Users\vagrant>echo Set WinRM start type to auto
vmware-iso: Set WinRM start type to auto
vmware-iso:
vmware-iso: C:\Users\vagrant>sc config winrm start= auto
vmware-iso: [SC] ChangeServiceConfig SUCCESS
==> vmware-iso: Provisioning with shell script: ./scripts/uac-enable.bat
vmware-iso:
vmware-iso: C:\Users\vagrant>reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /f /v EnableLUA /t REG_DWORD /d 1
vmware-iso: The operation completed successfully.
==> vmware-iso: Provisioning with shell script: ./scripts/compile-dotnet-assemblies.bat
vmware-iso:
vmware-iso: C:\Users\vagrant>if "AMD64" == "AMD64" goto 64BIT
vmware-iso:
vmware-iso: C:\Users\vagrant>C:\Windows\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue 1>NUL
vmware-iso:
vmware-iso: C:\Users\vagrant>C:\Windows\microsoft.net\framework64\v4.0.30319\ngen.exe update /force /queue 1>NUL
vmware-iso:
vmware-iso: C:\Users\vagrant>C:\Windows\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems 1>NUL
vmware-iso:
vmware-iso: C:\Users\vagrant>C:\Windows\microsoft.net\framework64\v4.0.30319\ngen.exe executequeueditems 1>NUL
vmware-iso:
vmware-iso: C:\Users\vagrant>exit 0
==> vmware-iso: Provisioning with shell script: ./scripts/dis-updates.bat
vmware-iso:
vmware-iso: C:\Users\vagrant>rem http://www.windows-commandline.com/disable-automatic-updates-command-line/
vmware-iso:
vmware-iso: C:\Users\vagrant>reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 1 /f
vmware-iso: The operation completed successfully.
vmware-iso:
vmware-iso: C:\Users\vagrant>rem remove optional WSUS server settings
vmware-iso:
vmware-iso: C:\Users\vagrant>reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f
vmware-iso: The operation completed successfully.
vmware-iso:
vmware-iso: C:\Users\vagrant>rem even harder, disable windows update service
vmware-iso:
vmware-iso: C:\Users\vagrant>rem sc config wuauserv start= disabled
vmware-iso:
vmware-iso: C:\Users\vagrant>rem net stop wuauserv
vmware-iso:
vmware-iso: C:\Users\vagrant>set logfile=C:\Windows\Temp\win-updates.log
vmware-iso:
vmware-iso: C:\Users\vagrant>if exist C:\Windows\Temp\win-updates.log (
vmware-iso: echo Show Windows Updates log file C:\Windows\Temp\win-updates.log
vmware-iso: dir C:\Windows\Temp\win-updates.log
vmware-iso: type C:\Windows\Temp\win-updates.log
vmware-iso: rem output of type command is not fully shown in packer/ssh session, so try PowerShell
vmware-iso: rem but it will hang if log file is about 22 KByte
vmware-iso: rem powershell -command "Get-Content C:\Windows\Temp\win-updates.log"
vmware-iso: echo End of Windows Updates log file C:\Windows\Temp\win-updates.log
vmware-iso: )
vmware-iso: Show Windows Updates log file C:\Windows\Temp\win-updates.log
vmware-iso: Volume in drive C is Windows 2022
vmware-iso: Volume Serial Number is 305D-561C
vmware-iso:
vmware-iso: Directory of C:\Windows\Temp
vmware-iso:
vmware-iso: 2023/02/18 06:59 5,899 win-updates.log
vmware-iso: 1 File(s) 5,899 bytes
vmware-iso: 0 Dir(s) 70,643,515,392 bytes free
vmware-iso: 2023-02-18T19:55:23 Checking For Windows Updates
vmware-iso: 2023-02-18T19:55:23 Script: A:\win-updates.ps1
vmware-iso: Script User: VAGRANT-2022\vagrant
vmware-iso: Started: 02/18/2023 19:55:23
vmware-iso: 2023-02-18T03:57:25 There are 4 more updates.
vmware-iso: 2023-02-18T03:57:25 2022-08 Security Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5012170)
vmware-iso: 2023-02-18T03:57:25 A security issue has been identified in a Microsoft software product that could affect your system. You can help protect your system by installing this update from Microsoft. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article. After you install this update, you may have to restart your system.
vmware-iso: 2023-02-18T03:57:25 False
vmware-iso: 2023-02-18T03:57:25 True
vmware-iso: 2023-02-18T03:57:25 2023-02 ??? Microsoft server operating system version 21H2(x64 ?)? .NET Framework 3.5?4.8 ? 4.8.1 ????? (KB5022735)
vmware-iso: 2023-02-18T03:57:25 ???? Microsoft ?????????????????????????????? Microsoft ?????????????????????????????????,????? Microsoft ???????????????,???????????
vmware-iso: 2023-02-18T03:57:25 False
vmware-iso: 2023-02-18T03:57:25 True
vmware-iso: 2023-02-18T03:57:25 Microsoft Defender Antivirus ??????? - KB2267602 (?? 1.383.190.0)
vmware-iso: 2023-02-18T03:57:25 ?????,???????????????????????????? ????????????
vmware-iso: 2023-02-18T03:57:25 False
vmware-iso: 2023-02-18T03:57:25 True
vmware-iso: 2023-02-18T03:57:25 ????? x64 ?? (KB5022842)? Microsoft server operating system version 21H2 ???2023-02 ????
vmware-iso: 2023-02-18T03:57:25 ???????? Microsoft server operating system, version 21H2 ??????? ???????????????,?????? Microsoft Knowledge Base,???????? ??????,????????????
vmware-iso: 2023-02-18T03:57:25 False
vmware-iso: 2023-02-18T03:57:25 True
vmware-iso: 2023-02-18T03:57:26 Evaluating Available Updates with limit of 500:
vmware-iso: 2023-02-18T03:57:26 Adding: 2022-08 Security Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5012170)
vmware-iso: 2023-02-18T03:57:26 Adding: 2023-02 ??? Microsoft server operating system version 21H2(x64 ?)? .NET Framework 3.5?4.8 ? 4.8.1 ????? (KB5022735)
vmware-iso: 2023-02-18T03:57:26 Adding: Microsoft Defender Antivirus ??????? - KB2267602 (?? 1.383.190.0)
vmware-iso: 2023-02-18T03:57:26 Adding: ????? x64 ?? (KB5022842)? Microsoft server operating system version 21H2 ???2023-02 ????
vmware-iso: 2023-02-18T03:57:26 Downloading Updates...
vmware-iso: 2023-02-18T06:31:19 The following updates are downloaded and ready to be installed:
vmware-iso: 2023-02-18T06:31:19 > 2022-08 Security Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5012170)
vmware-iso: 2023-02-18T06:31:19 > 2023-02 ??? Microsoft server operating system version 21H2(x64 ?)? .NET Framework 3.5?4.8 ? 4.8.1 ????? (KB5022735)
vmware-iso: 2023-02-18T06:31:19 > Microsoft Defender Antivirus ??????? - KB2267602 (?? 1.383.190.0)
vmware-iso: 2023-02-18T06:31:19 > ????? x64 ?? (KB5022842)? Microsoft server operating system version 21H2 ???2023-02 ????
vmware-iso: 2023-02-18T06:31:19 These updates may require a reboot
vmware-iso: 2023-02-18T06:31:19 Installing updates...
vmware-iso: 2023-02-18T06:37:00 Installation Result: 2
vmware-iso: 2023-02-18T06:57:07 Reboot Required: True
vmware-iso: 2023-02-18T06:57:07 Listing of updates installed and individual installation results:
vmware-iso: 2023-02-18T06:57:07 Item: 2022-08 Security Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5012170)
vmware-iso: 2023-02-18T06:57:07 Result: 2
vmware-iso: 2023-02-18T06:57:07 Item: 2023-02 ??? Microsoft server operating system version 21H2(x64 ?)? .NET Framework 3.5?4.8 ? 4.8.1 ????? (KB5022735)
vmware-iso: 2023-02-18T06:57:07 Result: 2
vmware-iso: 2023-02-18T06:57:07 Item: Microsoft Defender Antivirus ??????? - KB2267602 (?? 1.383.190.0)
vmware-iso: 2023-02-18T06:57:07 Result: 2
vmware-iso: 2023-02-18T06:57:07 Item: ????? x64 ?? (KB5022842)? Microsoft server operating system version 21H2 ???2023-02 ????
vmware-iso: 2023-02-18T06:57:07 Result: 2
vmware-iso: 2023-02-18T06:57:08 Restart Registry Entry Does Not Exist - Creating It
vmware-iso: 2023-02-18T06:57:08 Restart Required - Restarting...
vmware-iso: 2023-02-18T06:58:15 Checking For Windows Updates
vmware-iso: 2023-02-18T06:58:15 Script: A:\win-updates.ps1
vmware-iso: Script User: VAGRANT-2022\vagrant
vmware-iso: Started: 02/18/2023 06:58:15
vmware-iso: 2023-02-18T06:58:38 There are 2 more updates.
vmware-iso: 2023-02-18T06:58:38 ?? Microsoft Defender Antivirus ?????????? - KB4052623(?? 4.18.2301.6)
vmware-iso: 2023-02-18T06:58:38 ???????????? Microsoft Defender Antivirus ??????????
vmware-iso: 2023-02-18T06:58:38 False
vmware-iso: 2023-02-18T06:58:38 True
vmware-iso: 2023-02-18T06:58:38 Microsoft Defender Antivirus ??????? - KB2267602 (?? 1.383.197.0)
vmware-iso: 2023-02-18T06:58:38 ?????,???????????????????????????? ????????????
vmware-iso: 2023-02-18T06:58:38 False
vmware-iso: 2023-02-18T06:58:38 True
vmware-iso: 2023-02-18T06:58:39 Evaluating Available Updates with limit of 500:
vmware-iso: 2023-02-18T06:58:39 Adding: ?? Microsoft Defender Antivirus ?????????? - KB4052623(?? 4.18.2301.6)
vmware-iso: 2023-02-18T06:58:39 Adding: Microsoft Defender Antivirus ??????? - KB2267602 (?? 1.383.197.0)
vmware-iso: 2023-02-18T06:58:39 Downloading Updates...
vmware-iso: 2023-02-18T06:58:47 The following updates are downloaded and ready to be installed:
vmware-iso: 2023-02-18T06:58:47 > ?? Microsoft Defender Antivirus ?????????? - KB4052623(?? 4.18.2301.6)
vmware-iso: 2023-02-18T06:58:47 > Microsoft Defender Antivirus ??????? - KB2267602 (?? 1.383.197.0)
vmware-iso: 2023-02-18T06:58:47 Installing updates...
vmware-iso: 2023-02-18T06:59:09 Installation Result: 2
vmware-iso: 2023-02-18T06:59:09 Reboot Required: False
vmware-iso: 2023-02-18T06:59:09 Listing of updates installed and individual installation results:
vmware-iso: 2023-02-18T06:59:09 Item: ?? Microsoft Defender Antivirus ?????????? - KB4052623(?? 4.18.2301.6)
vmware-iso: 2023-02-18T06:59:09 Result: 2
vmware-iso: 2023-02-18T06:59:09 Item: Microsoft Defender Antivirus ??????? - KB2267602 (?? 1.383.197.0)
vmware-iso: 2023-02-18T06:59:09 Result: 2
vmware-iso: 2023-02-18T06:59:10 Restart Registry Entry Exists - Removing It
vmware-iso: 2023-02-18T06:59:10 No Restart Required
vmware-iso: 2023-02-18T06:59:10 Checking For Windows Updates
vmware-iso: 2023-02-18T06:59:10 Script: A:\win-updates.ps1
vmware-iso: Script User: VAGRANT-2022\vagrant
vmware-iso: Started: 02/18/2023 06:59:10
vmware-iso: 2023-02-18T06:59:16 There are no applicable updates
vmware-iso: 2023-02-18T06:59:16 Done Installing Windows Updates
vmware-iso: End of Windows Updates log file C:\Windows\Temp\win-updates.log
==> vmware-iso: Provisioning with shell script: ./scripts/compact.bat
vmware-iso:
vmware-iso: C:\Users\vagrant>if "vmware" == "hyperv" (
vmware-iso: echo "Skip compact steps in Hyper-V build."
vmware-iso: goto :eof
vmware-iso: )
vmware-iso:
vmware-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\7z1900-x64.msi" (powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://www.7-zip.org/a/7z1900-x64.msi', 'C:\Windows\Temp\7z1900-x64.msi')" 0<NUL )
vmware-iso:
vmware-iso: C:\Users\vagrant>msiexec /qb /i C:\Windows\Temp\7z1900-x64.msi
vmware-iso:
vmware-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\ultradefrag.zip" (powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://downloads.sourceforge.net/project/ultradefrag/stable-release/6.1.0/ultradefrag-portable-6.1.0.bin.amd64.zip', 'C:\Windows\Temp\ultradefrag.zip')" 0<NUL )
vmware-iso:
vmware-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\ultradefrag-portable-6.1.0.amd64\udefrag.exe" (cmd /c ""C:\Program Files\7-Zip\7z.exe" x C:\Windows\Temp\ultradefrag.zip -oC:\Windows\Temp" )
vmware-iso:
vmware-iso: 7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
vmware-iso:
vmware-iso: Scanning the drive for archives:
vmware-iso: 1 file, 768893 bytes (751 KiB)
vmware-iso:
vmware-iso: Extracting archive: C:\Windows\Temp\ultradefrag.zip
vmware-iso: --
vmware-iso: Path = C:\Windows\Temp\ultradefrag.zip
vmware-iso: Type = zip
vmware-iso: Physical Size = 768893
vmware-iso:
vmware-iso: Everything is Ok
vmware-iso:
vmware-iso: Folders: 5
vmware-iso: Files: 166
vmware-iso: Size: 2433004
vmware-iso: Compressed: 768893
vmware-iso:
vmware-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\SDelete.zip" (
vmware-iso: powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://download.sysinternals.com/files/SDelete.zip', 'C:\Windows\Temp\SDelete.zip')" 0<NUL
vmware-iso: powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://vagrantboxes.blob.core.windows.net/box/sdelete/v1.6.1/sdelete.exe', 'C:\Windows\Temp\sdelete.exe')" 0<NUL
vmware-iso: )
vmware-iso:
vmware-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\sdelete.exe" (cmd /c ""C:\Program Files\7-Zip\7z.exe" x C:\Windows\Temp\SDelete.zip -oC:\Windows\Temp" )
vmware-iso:
vmware-iso: C:\Users\vagrant>msiexec /qb /x C:\Windows\Temp\7z1900-x64.msi
vmware-iso:
==> vmware-iso: The Windows Update service is not started.
vmware-iso: C:\Users\vagrant>net stop wuauserv
==> vmware-iso:
==> vmware-iso: More help is available by typing NET HELPMSG 3521.
vmware-iso:
vmware-iso: C:\Users\vagrant>rmdir /S /Q C:\Windows\SoftwareDistribution\Download
==> vmware-iso:
vmware-iso:
vmware-iso: C:\Users\vagrant>mkdir C:\Windows\SoftwareDistribution\Download
vmware-iso:
vmware-iso: C:\Users\vagrant>net start wuauserv
vmware-iso: The Windows Update service is starting.
vmware-iso: The Windows Update service was started successfully.
vmware-iso:
vmware-iso:
vmware-iso: C:\Users\vagrant>if "vmware-iso" NEQ "hyperv-iso" (
vmware-iso: cmd /c C:\Windows\Temp\ultradefrag-portable-6.1.0.amd64\udefrag.exe --optimize --repeat C:
vmware-iso: cmd /c C:\Windows\System32\reg.exe ADD HKCU\Software\Sysinternals\SDelete /v EulaAccepted /t REG_DWORD /d 1 /f
vmware-iso: cmd /c C:\Windows\Temp\sdelete.exe -q -z C:
vmware-iso: )
vmware-iso: UltraDefrag 6.1.0, Copyright (c) UltraDefrag Development Team, 2007-2013.
vmware-iso: UltraDefrag comes with ABSOLUTELY NO WARRANTY. This is free software,
vmware-iso: and you are welcome to redistribute it under certain conditions.
vmware-iso:
vmware-iso: C: defrag: 100.00% complete, 7 passes needed, fragmented/total = 1/378046
vmware-iso: The operation completed successfully.
vmware-iso:
vmware-iso: SDelete - Secure Delete v1.61
vmware-iso: Copyright (C) 1999-2012 Mark Russinovich
vmware-iso: Sysinternals - www.sysinternals.com
vmware-iso:
vmware-iso: SDelete is set for 1 pass.
vmware-iso: Free space cleaned on C:\
vmware-iso: 1 drives zapped
vmware-iso:
==> vmware-iso: Gracefully halting virtual machine...
vmware-iso: Waiting for VMware to clean up after itself...
==> vmware-iso: Deleting unnecessary VMware files...
vmware-iso: Deleting: output-vmware-iso/WindowsServer2022Docker.plist
vmware-iso: Deleting: output-vmware-iso/WindowsServer2022Docker.scoreboard
vmware-iso: Deleting: output-vmware-iso/WindowsServer2022Docker.vmx.lck/M48891.lck
vmware-iso: Deleting: output-vmware-iso/startMenu.plist
vmware-iso: Deleting: output-vmware-iso/vmware.log
==> vmware-iso: Compacting all attached virtual disks...
vmware-iso: Compacting virtual disk 1
==> vmware-iso: Cleaning VMX prior to finishing up...
vmware-iso: Detaching ISO from CD-ROM device ide0:0...
vmware-iso: Unmounting floppy0 from VMX...
vmware-iso: Disabling VNC server...
vmware-iso: Removing Ethernet Interfaces...
==> vmware-iso: Skipping export of virtual machine...
==> vmware-iso: Running post-processor: vagrant
==> vmware-iso (vagrant): Creating a dummy Vagrant box to ensure the host system can create one correctly
==> vmware-iso (vagrant): Creating Vagrant box for 'vmware' provider
vmware-iso (vagrant): Copying: output-vmware-iso/WindowsServer2022Docker.nvram
vmware-iso (vagrant): Copying: output-vmware-iso/WindowsServer2022Docker.vmsd
vmware-iso (vagrant): Copying: output-vmware-iso/WindowsServer2022Docker.vmx
vmware-iso (vagrant): Copying: output-vmware-iso/WindowsServer2022Docker.vmxf
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s001.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s002.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s003.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s004.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s005.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s006.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s007.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s008.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s009.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s010.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s011.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s012.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s013.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s014.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s015.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s016.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s017.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s018.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s019.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s020.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk-s021.vmdk
vmware-iso (vagrant): Copying: output-vmware-iso/disk.vmdk
vmware-iso (vagrant): Using custom Vagrantfile: vagrantfile-windows_2016.template
vmware-iso (vagrant): Compressing: Vagrantfile
vmware-iso (vagrant): Compressing: WindowsServer2022Docker.nvram
vmware-iso (vagrant): Compressing: WindowsServer2022Docker.vmsd
vmware-iso (vagrant): Compressing: WindowsServer2022Docker.vmx
vmware-iso (vagrant): Compressing: WindowsServer2022Docker.vmxf
vmware-iso (vagrant): Compressing: disk-s001.vmdk
vmware-iso (vagrant): Compressing: disk-s002.vmdk
vmware-iso (vagrant): Compressing: disk-s003.vmdk
vmware-iso (vagrant): Compressing: disk-s004.vmdk
vmware-iso (vagrant): Compressing: disk-s005.vmdk
vmware-iso (vagrant): Compressing: disk-s006.vmdk
vmware-iso (vagrant): Compressing: disk-s007.vmdk
vmware-iso (vagrant): Compressing: disk-s008.vmdk
vmware-iso (vagrant): Compressing: disk-s009.vmdk
vmware-iso (vagrant): Compressing: disk-s010.vmdk
vmware-iso (vagrant): Compressing: disk-s011.vmdk
vmware-iso (vagrant): Compressing: disk-s012.vmdk
vmware-iso (vagrant): Compressing: disk-s013.vmdk
vmware-iso (vagrant): Compressing: disk-s014.vmdk
vmware-iso (vagrant): Compressing: disk-s015.vmdk
vmware-iso (vagrant): Compressing: disk-s016.vmdk
vmware-iso (vagrant): Compressing: disk-s017.vmdk
vmware-iso (vagrant): Compressing: disk-s018.vmdk
vmware-iso (vagrant): Compressing: disk-s019.vmdk
vmware-iso (vagrant): Compressing: disk-s020.vmdk
vmware-iso (vagrant): Compressing: disk-s021.vmdk
vmware-iso (vagrant): Compressing: disk.vmdk
vmware-iso (vagrant): Compressing: metadata.json
Build 'vmware-iso' finished after 3 hours 48 minutes.
would you mind giving a hand :D @StefanScherer
Operating System Version: macOS Ventura 13.2.1 Provider (VirtualBox/VMWare): VMware Fusion 13.0.1 Vagrant Version: 2.3.4 Packer Version: 1.8.6
Description of the issue:
i built and managed the box by this way
and after that , i tried to
then i got the error. i am in china, so i changed the download iso and modify the checksum for convenience. (moreover plus the product key)
the output was like :
i was so confused that i found you had already install vmware tools in the virtual image, but it really failed, would you please help.
maybe it's like this issue https://github.com/clong/DetectionLab/issues/289