R3dy / capsulecorp-pentest

Vagrant VirtualBox environment for conducting an internal network penetration test
https://www.manning.com/books/the-art-of-network-penetration-testing?a_aid=royce
825 stars 157 forks source link

Vagrant provision failed #15

Closed lesliebinbin closed 3 years ago

lesliebinbin commented 3 years ago
  1. For vm vegeta TASK [jenkins : Set JNLP port for CLI access] ** fatal: [vegeta]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'jenkins_jnlp_port' is undefined"}
  2. For vm gohan ERROR! The requested handler 'reboot windows' was not found in either the main handlers list nor in the listening handlers list
  3. For vm goku fatal: [goku]: FAILED! => {"changed": false, "elapsed": 1206, "msg": "Timed out waiting for post-reboot test command (timeout=600)", "rebooted": true}
  4. For vm chunks fatal: [trunks]: FAILED! => {"changed": true, "msg": "failed to join domain: Computer 'WIN-VPVEIOA6767' failed to join domain 'capsulecorp.local' from its current workgroup 'WORKGROUP' with following error message: The specified domain either does not exist or could not be contacted.", "reboot_required": false}
R3dy commented 3 years ago

It's best to first vagrant up goku. I forget where in the docs I mention this but this will fail the first time with the reboot message you see. This is because to date I am not aware of a graceful way for ansible to check if the DC promo has succeeded or not.

Simply rerun 'vagrant up goku' it should succeed the second time. After that bring the the other systems up one at a time, potentially needing to run the vagrant up command twice.

In the case of the error you have shown for trunks. It may be a temporary join to the domain, at which case you'll have to RDP into goku, manually remove trunks from Active Directory Users and Computers and re-run vagrant up. I'm going to close this issue.

If you still have problems re-open separate issues on a per VM basis.

Thanks!