Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant Up DC keeps automatically destroying itself after installing VCredist and running cleanup tasks for reload #863

Open
tsunamifi opened this issue Oct 27, 2022 · 4 comments

Comments

@tsunamifi
Copy link

tsunamifi commented Oct 27, 2022

  • Operating System Version: Windows 10
  • Deploying via (VirtualBox/VMWare/AWS/Azure/ESXi): Vbox
  • Vagrant Version (if applicable): 2.3.2

Using latest branch (10/22/22)

Description of the issue:

While running Vagrant Up DC to build DC VM, it will take it upon itself to self destruct.

In the log below I have provided a bit of excess as context before the issue actually occurs so it is apparent when exactly it happens in the initial process. Please let me know if the excess is necessary or not. Additionally I have included errors after.

dc: Installation of Invoke-AtomicRedTeam is complete. You can now use the Invoke-AtomicTest function
    dc: See Wiki at https://github.com/redcanaryco/invoke-atomicredteam/wiki for complete details
    dc: [19:29] Updating Profile.ps1 to import the Invoke-AtomicRedTeam module...
    dc:
    dc: PSPath            : Microsoft.PowerShell.Core\FileSystem::C:\Tools\PurpleSharp
    dc: PSParentPath      : Microsoft.PowerShell.Core\FileSystem::C:\Tools
    dc: PSChildName       : PurpleSharp
    dc: PSDrive           : C
    dc: PSProvider        : Microsoft.PowerShell.Core\FileSystem
    dc: PSIsContainer     : True
    dc: Name              : PurpleSharp
    dc: FullName          : C:\Tools\PurpleSharp
    dc: Parent            : Tools
    dc: Exists            : True
    dc: Root              : C:\
    dc: Extension         :
    dc: CreationTime      : 10/27/2022 7:29:28 PM
    dc: CreationTimeUtc   : 10/27/2022 7:29:28 PM
    dc: LastAccessTime    : 10/27/2022 7:29:28 PM
    dc: LastAccessTimeUtc : 10/27/2022 7:29:28 PM
    dc: LastWriteTime     : 10/27/2022 7:29:28 PM
    dc: LastWriteTimeUtc  : 10/27/2022 7:29:28 PM
    dc: Attributes        : Directory
    dc: Mode              : d-----
    dc: BaseName          : PurpleSharp
    dc: Target            : {}
    dc: LinkType          :
    dc:
    dc: [19:29] Determining latest release of Purplesharp...
    dc: [19:29] Red Team tooling installation complete!
    dc:
    dc:
==> dc: Running provisioner: shell...
    dc: Running: scripts/install-choco-extras.ps1 as C:\tmp\vagrant-shell.ps1
    dc: [19:29] Installing additional Choco packages...
    dc: [19:29] Chocolatey is already installed.
    dc: [19:29] Installing Chocolatey extras...
    dc: Installing the following packages:
    dc: wireshark;winpcap
    dc: By installing, you accept licenses for the packages.
    dc:
    dc: chocolatey-windowsupdate.extension v1.0.5 [Approved]
    dc: chocolatey-windowsupdate.extension package files install completed. Performing other installation steps.
    dc:  Installed/updated chocolatey-windowsupdate extensions.
    dc:  The install of chocolatey-windowsupdate.extension was successful.
    dc:   Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate'
    dc:
    dc: KB3035131 v1.0.3 [Approved]
    dc: kb3035131 package files install completed. Performing other installation steps.
    dc: Skipping installation because update KB3035131 does not apply to this operating system (Microsoft Windows Server 2016 Standard Evaluation).
    dc:  The install of kb3035131 was successful.
    dc:   Software install location not explicitly set, it could be in package or
    dc:   default install location of installer.
    dc:
    dc: KB3033929 v1.0.5 [Approved]
    dc: kb3033929 package files install completed. Performing other installation steps.
    dc: Skipping installation because update KB3033929 does not apply to this operating system (Microsoft Windows Server 2016 Standard Evaluation).
    dc:  The install of kb3033929 was successful.
    dc:   Software install location not explicitly set, it could be in package or
    dc:   default install location of installer.
    dc:
    dc: KB2919442 v1.0.20160915 [Approved]
    dc: kb2919442 package files install completed. Performing other installation steps.
    dc: Skipping installation because this hotfix only applies to Windows 8.1 and Windows Server 2012 R2.
    dc:  The install of kb2919442 was successful.
    dc:   Software install location not explicitly set, it could be in package or
    dc:   default install location of installer.
    dc:
    dc: KB2919355 v1.0.20160915 [Approved]
    dc: kb2919355 package files install completed. Performing other installation steps.
    dc: Skipping installation because this hotfix only applies to Windows 8.1 and Windows Server 2012 R2.
    dc:  The install of kb2919355 was successful.
    dc:   Software install location not explicitly set, it could be in package or
    dc:   default install location of installer.
    dc:
    dc: KB2999226 v1.0.20181019 [Approved] - Possibly broken
    dc: kb2999226 package files install completed. Performing other installation steps.
    dc: Skipping installation because update KB2999226 does not apply to this operating system (Microsoft Windows Server 2016 Standard Evaluation).
    dc:  The install of kb2999226 was successful.
    dc:   Software install location not explicitly set, it could be in package or
    dc:   default install location of installer.
    dc:
    dc: vcredist140 v14.32.31332 [Approved]
    dc: vcredist140 package files install completed. Performing other installation steps.
    dc: Downloading vcredist140-x86
    dc:   from 'https://download.visualstudio.microsoft.com/download/pr/ed95ef9e-da02-4735-9064-bd1f7f69b6ed/CF92A10C62FFAB83B4A2168F5F9A05E5588023890B5C0CC7BA89ED71DA527B0F/VC_redist.x86.exe'
    dc:
    dc: Download of VC_redist.x86.exe (13.09 MB) completed.
    dc: Hashes match.
    dc: Installing vcredist140-x86...
    dc: vcredist140-x86 has been installed.
    dc: Downloading vcredist140-x64 64 bit
    dc:   from 'https://download.visualstudio.microsoft.com/download/pr/ed95ef9e-da02-4735-9064-bd1f7f69b6ed/CE6593A1520591E7DEA2B93FD03116E3FC3B3821A0525322B0A430FAA6B3C0B4/VC_redist.x64.exe'
    dc:
    dc: Download of VC_redist.x64.exe (24.07 MB) completed.
    dc: Hashes match.
    dc: Installing vcredist140-x64...
==> dc: Running cleanup tasks for 'reload' provisioner...
==> dc: Destroying VM and associated drives...
Traceback (most recent call last):
        141: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
        140: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run'
        139: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/machine.rb:203:in `action'
        138: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/machine.rb:203:in `call'
        137: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/environment.rb:631:in `lock'
        136: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/machine.rb:217:in `block in action'
        135: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/machine.rb:248:in `action_raw'
        134: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `run'
        133: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/util/busy.rb:19:in `busy'
        132: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `block in run'
        131: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builder.rb:180:in `call'
        130: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        129: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/check_virtualbox.rb:26:in `call'
        128: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        127: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/call.rb:53:in `call'
        126: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `run'
        125: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/util/busy.rb:19:in `busy'
        124: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `block in run'
        123: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builder.rb:180:in `call'
        122: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        121: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
        120: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        119: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/handle_box.rb:56:in `call'
        118: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        117: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
        116: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        115: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
        114: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        113: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/call.rb:53:in `call'
        112: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `run'
        111: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/util/busy.rb:19:in `busy'
        110: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `block in run'
        109: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builder.rb:180:in `call'
        108: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        107: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
        106: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        105: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
        104: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        103: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/customize.rb:40:in `call'
        102: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
        101: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/prepare_clone.rb:15:in `call'
        100: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         99: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/prepare_clone_snapshot.rb:17:in `call'
         98: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         97: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/import.rb:13:in `call'
         96: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/import.rb:78:in `import'
         95: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         94: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/discard_state.rb:15:in `call'
         93: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         92: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/match_mac_address.rb:22:in `call'
         91: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         90: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
         89: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         88: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/env_set.rb:19:in `call'
         87: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         86: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/check_virtualbox.rb:26:in `call'
         85: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         84: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
         83: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         82: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/box_check_outdated.rb:93:in `call'
         81: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         80: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/call.rb:53:in `call'
         79: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `run'
         78: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/util/busy.rb:19:in `busy'
         77: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `block in run'
         76: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builder.rb:180:in `call'
         75: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         74: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
         73: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         72: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/call.rb:53:in `call'
         71: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `run'
         70: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/util/busy.rb:19:in `busy'
         69: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `block in run'
         68: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builder.rb:180:in `call'
         67: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         66: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
         65: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         64: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/call.rb:53:in `call'
         63: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `run'
         62: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/util/busy.rb:19:in `busy'
         61: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `block in run'
         60: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builder.rb:180:in `call'
         59: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         58: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
         57: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         56: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
         55: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         54: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/clean_machine_folder.rb:26:in `call'
         53: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         52: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/set_name.rb:50:in `call'
         51: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         50: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:15:in `call'
         49: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         48: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/provision.rb:103:in `call'
         47: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/provision.rb:103:in `each'
         46: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/provision.rb:126:in `block in call'
         45: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/provision.rb:126:in `call'
         44: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/environment.rb:543:in `hook'
         43: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `run'
         42: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/util/busy.rb:19:in `busy'
         41: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/runner.rb:101:in `block in run'
         40: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builder.rb:180:in `call'
         39: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:48:in `call'
         38: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
         37: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/warden.rb:127:in `call'
         36: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/lib/vagrant/action/builtin/provision.rb:138:in `run_provisioner'
         35: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/provisioners/shell/provisioner.rb:32:in `provision'
         34: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/provisioners/shell/provisioner.rb:212:in `provision_winrm'
         33: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/provisioners/shell/provisioner.rb:357:in `with_script_file'
         32: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/provisioners/shell/provisioner.rb:213:in `block in provision_winrm'
         31: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/provisioners/shell/provisioner.rb:213:in `tap'
         30: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/provisioners/shell/provisioner.rb:265:in `block (2 levels) in provision_winrm'
         29: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/communicators/winrm/communicator.rb:152:in `execute'
         28: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/communicators/winrm/shell.rb:62:in `powershell'
         27: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/connection.rb:42:in `shell'
         26: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/communicators/winrm/shell.rb:63:in `block in powershell'
         25: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/communicators/winrm/shell.rb:138:in `execute_with_rescue'
         24: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/vagrant-2.3.2/plugins/communicators/winrm/shell.rb:144:in `handle_output'
         23: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/shells/base.rb:79:in `run'
         22: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/shells/base.rb:131:in `with_command_shell'
         21: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/shells/base.rb:80:in `block in run'
         20: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/psrp/receive_response_reader.rb:58:in `read_output'
         19: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/wsmv/receive_response_reader.rb:73:in `with_output'
         18: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/psrp/receive_response_reader.rb:59:in `block in read_output'
         17: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/psrp/receive_response_reader.rb:39:in `read_message'
         16: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/wsmv/receive_response_reader.rb:61:in `read_response'
         15: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/wsmv/receive_response_reader.rb:93:in `send_get_output_message'
         14: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/winrm-2.3.6/lib/winrm/http/transport.rb:48:in `send_request'
         13: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient.rb:765:in `post'
         12: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient.rb:856:in `request'
         11: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient.rb:1014:in `do_request'
         10: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient.rb:1133:in `protect_keep_alive_disconnected'
          9: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient.rb:1019:in `block in do_request'
          8: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient.rb:1245:in `do_get_block'
          7: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient.rb:1299:in `do_get_header'
          6: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient/session.rb:561:in `get_header'
          5: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient/session.rb:784:in `read_header'
          4: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient/session.rb:801:in `parse_header'
          3: from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.7.0/timeout.rb:105:in `timeout'
          2: from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.7.0/timeout.rb:95:in `block in timeout'
          1: from C:/HashiCorp/Vagrant/embedded/gems/2.3.2/gems/httpclient-2.8.3/lib/httpclient/session.rb:805:in `block in parse_header'


Link to Gist for full errors:

Gist

@NicklausPark
Copy link

Hello, I am having this exact problem trying to provision on virtualbox

@tsunamifi
Copy link
Author

Hello, I am having this exact problem trying to provision on virtualbox

Hi. I still do not know exactly what causes this issue but I seem to have been able to make it past. By chance were you installing DetectionLab to a different drive than C: ?

If so then what I did was uninstall Vagrant and Virtualbox and reinstall them to E: (the drive I'm putting DL on.) rather than installing them on C: . I'm guessing they may all have to share the same drive. Not completely sure but this is what stopped this error for me so I hope it helps. I will leave this open though just in case it doesn't work for you and other people who may run across this issue so someone can maybe provide another fix.

@desharn41
Copy link

Hello, I am having this exact problem trying to provision on virtualbox

Hi. I still do not know exactly what causes this issue but I seem to have been able to make it past. By chance were you installing DetectionLab to a different drive than C: ?

If so then what I did was uninstall Vagrant and Virtualbox and reinstall them to E: (the drive I'm putting DL on.) rather than installing them on C: . I'm guessing they may all have to share the same drive. Not completely sure but this is what stopped this error for me so I hope it helps. I will leave this open though just in case it doesn't work for you and other people who may run across this issue so someone can maybe provide another fix.

That help the solution by tsunamifi

@primo19
Copy link

primo19 commented Jan 18, 2023

I am having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants