clong / DetectionLab

Automate the creation of a lab environment complete with security tooling and logging best practices
MIT License
4.59k stars 979 forks source link

Error building DC #812

Closed jo3rg closed 2 years ago

jo3rg commented 2 years ago
detection@network:~/DetectionLab/Vagrant$` vagrant -v 
Vagrant 2.2.14 

detection@network:~/DetectionLab/Vagrant$ cat /etc/debian_version 
11.3

detection@network:~/DetectionLab$ vagrant plugin list
vagrant-libvirt (0.3.0, system)
vagrant-proxyconf (2.0.10, global)
vagrant-reload (0.0.1, global)
  - Version Constraint: > 0
winrm (2.3.6, global)
winrm-elevated (1.2.3, global)
winrm-fs (1.3.5, global)

detection@network:~/DetectionLab/Vagrant$ vagrant up
Bringing machine 'logger' up with 'virtualbox' provider...
Bringing machine 'dc' up with 'virtualbox' provider...
Bringing machine 'wef' up with 'virtualbox' provider...
Bringing machine 'win10' up with 'virtualbox' provider...
==> logger: Checking if box 'bento/ubuntu-20.04' version '202112.19.0' is up to date...
==> logger: Configuring proxy for Apt...
==> logger: Configuring proxy environment variables...
==> logger: Configuring proxy for Git...
==> logger: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> logger: flag to force provisioning. Provisioners marked to run always will still run.
==> dc: Checking if box 'detectionlab/win2016' version '1.9' is up to date...
An error occurred executing a remote WinRM command.

Shell: Cmd
Command: hostname
Message: Unable to parse WinRM response: Missing end tag for 'meta' (got 'head')
Line: 145
Position: 3739
Last 80 unconsumed characters:
<body id=ERR_CONNECT_FAIL> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL (503).
jo3rg commented 2 years ago

Please close this ticket, the issue Ive had was caused by having set a local proxy (on the host env). But additionally it seems that vagrant plugin install vagrant-proxyconf does not set the proxy in windows environments. Ive had to set that manually and do a manual vagrant provision dc to get things provisioned properly

clong commented 2 years ago

@jo3rg thanks for letting me know you figured it out! In the future, I think you have permission to close your own issues :)