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

Not working - Windows - [-] 3 fails abort. [-] Something wrong during the provisioning task : build.yml - VMWARE #281

Open
federico22285 opened this issue Oct 19, 2024 · 8 comments
Labels
bug Something isn't working v3 windows

Comments

@federico22285
Copy link

GOAD-Light/vmware/vm/192.168.56.X (048df9-goad-light-vmware) > install
[] Launch providing
[
] CWD: \workspace\048df9-goad-light-vmware\provider
[] Running command : vagrant.exe up
Bringing machine 'GOAD-Light-DC01' up with 'vmware_desktop' provider...
Bringing machine 'GOAD-Light-DC02' up with 'vmware_desktop' provider...
Bringing machine 'GOAD-Light-SRV02' up with 'vmware_desktop' provider...
Bringing machine 'PROVISIONING' up with 'vmware_desktop' provider...
==> GOAD-Light-DC01: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-Light-DC01: Machine is already running.
==> GOAD-Light-DC02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-Light-DC02: Machine is already running.
==> GOAD-Light-SRV02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-Light-SRV02: Machine is already running.
==> PROVISIONING: Checking if box 'bento/ubuntu-22.04' version '202309.08.0' is up to date...
==> PROVISIONING: Machine is already running.
[
] Prepare jumpbox if needed
[] Launch scp C:\Users\feder\Downloads\GOAD\scripts\setup_local_jumpbox.sh -> [email protected]:~/setup.sh
[
] CWD: \workspace\048df9-goad-light-vmware
[] Running command : scp -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key C:\Users\feder\Downloads\GOAD\scripts\setup_local_jumpbox.sh [email protected]:~/setup.sh
setup_local_jumpbox.sh 100% 771 753.7KB/s 00:00
[
] CWD:
[] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd ~ && sudo apt update && sudo apt install -y dos2unix"
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
164 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dos2unix is already the newest version (7.4.2-2).
0 upgraded, 0 newly installed, 0 to remove and 164 not upgraded.
Connection to 192.168.56.3 closed.
[
] CWD:
[] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd ~ && dos2unix setup.sh"
dos2unix: converting file setup.sh to Unix format...
Connection to 192.168.56.3 closed.
[
] CWD:
[] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd ~ && bash setup.sh"
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.34.1-1ubuntu1.11).
python3-pip is already the newest version (22.0.2+dfsg-1ubuntu0.4).
python3-venv is already the newest version (3.10.6-1~22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 164 not upgraded.
fatal: destination path '/home/vagrant/GOAD' already exists and is not an empty directory.
fatal: not a git repository (or any of the parent directories): .git
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /home/vagrant/.local/lib/python3.10/site-packages (24.2)
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.yml'
setup.sh: line 25: cd: /home/vagrant/GOAD/ansible: No such file or directory
setup.sh: line 26: /home/vagrant/.local/bin/ansible-galaxy: No such file or directory
Connection to 192.168.56.3 closed.
[
] CWD:
[] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd ~ && mkdir -p ~/GOAD/workspace/048df9-goad-light-vmware"
Connection to 192.168.56.3 closed.
[
] Launch scp C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\instance.json ->
[email protected]:/GOAD/workspace/048df9-goad-light-vmware/instance.json
[] CWD: \workspace\048df9-goad-light-vmware
[
] Running command : scp -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\instance.json
[email protected]:
/GOAD/workspace/048df9-goad-light-vmware/instance.json
instance.json 100% 241 236.0KB/s 00:00
[] CWD:
[
] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd ~ && dos2unix /GOAD/workspace/048df9-goad-light-vmware/instance.json"
dos2unix: converting file /home/vagrant/GOAD/workspace/048df9-goad-light-vmware/instance.json to Unix format...
Connection to 192.168.56.3 closed.
[*] Launch scp C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\inventory ->
[email protected]:
/GOAD/workspace/048df9-goad-light-vmware/inventory
[] CWD: \workspace\048df9-goad-light-vmware
[
] Running command : scp -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\inventory
[email protected]:/GOAD/workspace/048df9-goad-light-vmware/inventory
inventory 100% 558 662.1KB/s 00:00
[] CWD:
[
] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd ~ && dos2unix /GOAD/workspace/048df9-goad-light-vmware/inventory"
dos2unix: converting file /home/vagrant/GOAD/workspace/048df9-goad-light-vmware/inventory to Unix format...
Connection to 192.168.56.3 closed.
[*] Launch scp C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\inventory_disable_vagrant ->
[email protected]:
/GOAD/workspace/048df9-goad-light-vmware/inventory_disable_vagrant
[] CWD: \workspace\048df9-goad-light-vmware
[
] Running command : scp -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\inventory_disable_vagrant
[email protected]:
/GOAD/workspace/048df9-goad-light-vmware/inventory_disable_vagrant
inventory_disable_vagrant 100% 1225 1.2MB/s 00:00
[] CWD:
[
] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd ~ && dos2unix ~/GOAD/workspace/048df9-goad-light-vmware/inventory_disable_vagrant"
dos2unix: converting file /home/vagrant/GOAD/workspace/048df9-goad-light-vmware/inventory_disable_vagrant to Unix format...
Connection to 192.168.56.3 closed.
[] Launch provisioning
[
] Loading inventory
[+] Lab inventory : C:\Users\feder\Downloads\GOAD\ad\GOAD-Light\data\inventory file found
[+] Provider inventory : C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\inventory file found
[+] Global inventory : C:\Users\feder\Downloads\GOAD\globalsettings.ini file found
[] Loading playbook list
[+] build.yml file found
[+] ad-servers.yml file found
[+] ad-parent_domain.yml file found
[+] ad-child_domain.yml file found
[+] wait5m.yml file found
[+] ad-members.yml file found
[+] ad-trusts.yml file found
[+] ad-data.yml file found
[+] ad-gmsa.yml file found
[+] laps.yml file found
[+] ad-relations.yml file found
[+] adcs.yml file found
[+] ad-acl.yml file found
[+] servers.yml file found
[+] security.yml file found
[+] vulnerabilities.yml file found
[
] Run playbook : build.yml with inventory file(s) : /home/vagrant/GOAD/ad/GOAD-Light/data/inventory,
/home/vagrant/GOAD/workspace/048df9-goad-light-vmware/inventory, /home/vagrant/GOAD/globalsettings.ini
[] Running command : command
[
] CWD:
[] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/048df9-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
bash: line 1: cd: /home/vagrant/GOAD/ansible/: No such file or directory
Connection to 192.168.56.3 closed.
[
] CWD:
[] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/048df9-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
bash: line 1: cd: /home/vagrant/GOAD/ansible/: No such file or directory
Connection to 192.168.56.3 closed.
[
] CWD:
[] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/048df9-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
bash: line 1: cd: /home/vagrant/GOAD/ansible/: No such file or directory
Connection to 192.168.56.3 closed.
[
] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
C:\Users\feder\Downloads\GOAD\workspace\048df9-goad-light-vmware\provider.vagrant\machines\PROVISIONING\vmware_desktop
private_key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/048df9-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
bash: line 1: cd: /home/vagrant/GOAD/ansible/: No such file or directory
Connection to 192.168.56.3 closed.
[-] 3 fails abort.
[-] Something wrong during the provisioning task : build.yml

GOAD-Light/vmware/vm/192.168.56.X (048df9-goad-light-vmware) >

@federico22285 federico22285 changed the title Not working - Windows - [-] 3 fails abort. [-] Something wrong during the provisioning task : build.yml Not working - Windows - [-] 3 fails abort. [-] Something wrong during the provisioning task : build.yml - VMWARE Oct 19, 2024
Mayfly277 added a commit that referenced this issue Oct 20, 2024
@Mayfly277
Copy link
Collaborator

you can now retry :

./goad.sh
> cd 048df9-goad-light-vmware
(048df9-goad-light-vmware) > install

and tell me if it's ok now :)

@wan-xiang
Copy link

HI , I have the same issue, but after I do git merge update and reinstall, the problem is still there. I check the host machine (my windows). It does not have route to 192.168.56.0/24.
By the way, I found need to use administrator to install.

@wan-xiang
Copy link

HI , I have the same issue, but after I do git merge update and reinstall, the problem is still there. I check the host machine (my windows). It does not have route to 192.168.56.0/24. By the way, I found need to use administrator to install.

I achieved partial success. My first installation attempt was unsuccessful (because I didn't use administrative privileges). At that time, vmnet2 had already been set up, but there was no DHCP. I reconfigured VMware's vmnet2 network to use DHCP, and after that, the script was able to log in and execute commands.

@Mayfly277
Copy link
Collaborator

Mayfly277 commented Oct 26, 2024

ok so vagrant didn't create the host network without administrator privilege ? (may be i could add vmware network configuration to create before launching the install).

imo if you first start by going to vmware network and create the network before the install all should go well without admin privilèges :)

image
(this is the linux config but the one on windows is almost the same)

Also i don't know why you needed DHCP.
DHCP is needed only for the nat adapter, but on the host adapter you don't need it as all vm got a static IP.

@littlestewart
Copy link

littlestewart commented Oct 27, 2024

I have the same error:

Windows Host and by following: https://orange-cyberdefense.github.io/GOAD/installation/windows/

Error:

GOAD-Light/vmware/vm/192.168.56.X (fea8e4-goad-light-vmware) > check
[+] vagrant.exe found in PATH
[*] skip ansible check as no local and runner provisionner enabled
[+] vagrant plugin vagrant-reload is installed
[+] File c:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe present in the file system
[+] vagrant plugin vagrant-vmware-desktop is installed
GOAD-Light/vmware/vm/192.168.56.X (fea8e4-goad-light-vmware) > install
[*] Launch providing
[*] CWD: \workspace\fea8e4-goad-light-vmware\provider
[*] Running command : vagrant.exe up
Bringing machine 'GOAD-Light-DC01' up with 'vmware_desktop' provider...
Bringing machine 'GOAD-Light-DC02' up with 'vmware_desktop' provider...
Bringing machine 'GOAD-Light-SRV02' up with 'vmware_desktop' provider...
Bringing machine 'PROVISIONING' up with 'vmware_desktop' provider...
==> GOAD-Light-DC01: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-Light-DC01: Machine is already running.
==> GOAD-Light-DC02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-Light-DC02: Machine is already running.
==> GOAD-Light-SRV02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-Light-SRV02: Machine is already running.
==> PROVISIONING: Checking if box 'bento/ubuntu-22.04' version '202401.31.0' is up to date...
==> PROVISIONING: Machine is already running.
[*] Prepare jumpbox if needed
[*] Launch scp c:\Users\NoName\Documents\GOAD\GOAD\scripts\setup_local_jumpbox.sh -> [email protected]:~/setup.sh
[*] CWD: \workspace\fea8e4-goad-light-vmware
[*] Running command : scp -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key c:\Users\NoName\Documents\GOAD\GOAD\scripts\setup_local_jumpbox.sh [email protected]:~/setup.sh
ssh: connect to host 192.168.56.3 port 22: Connection timed out
scp: Connection closed
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && sudo apt update && sudo apt install -y dos2unix"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && dos2unix setup.sh"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && bash setup.sh"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && mkdir -p ~/GOAD/workspace/fea8e4-goad-light-vmware"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch scp c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\instance.json ->
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/instance.json
[*] CWD: \workspace\fea8e4-goad-light-vmware
[*] Running command : scp -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\instance.json
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/instance.json
ssh: connect to host 192.168.56.3 port 22: Connection timed out
scp: Connection closed
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && dos2unix ~/GOAD/workspace/fea8e4-goad-light-vmware/instance.json"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch scp c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\inventory ->
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/inventory
[*] CWD: \workspace\fea8e4-goad-light-vmware
[*] Running command : scp -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\inventory
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/inventory
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && dos2unix ~/GOAD/workspace/fea8e4-goad-light-vmware/inventory"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch scp c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\inventory_disable_vagrant ->
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/inventory_disable_vagrant
[*] CWD: \workspace\fea8e4-goad-light-vmware
[*] Running command : scp -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\inventory_disable_vagrant
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/inventory_disable_vagrant
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && dos2unix ~/GOAD/workspace/fea8e4-goad-light-vmware/inventory_disable_vagrant"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch provisioning
[*] Loading inventory
[+] Lab inventory : c:\Users\NoName\Documents\GOAD\GOAD\ad\GOAD-Light\data\inventory file found
[+] Provider inventory : c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\inventory file found
[+] Global inventory : c:\Users\NoName\Documents\GOAD\GOAD\globalsettings.ini file found
[*] Loading playbook list
[+] build.yml file found
[+] ad-servers.yml file found
[+] ad-parent_domain.yml file found
[+] ad-child_domain.yml file found
[+] wait5m.yml file found
[+] ad-members.yml file found
[+] ad-trusts.yml file found
[+] ad-data.yml file found
[+] ad-gmsa.yml file found
[+] laps.yml file found
[+] ad-relations.yml file found
[+] adcs.yml file found
[+] ad-acl.yml file found
[+] servers.yml file found
[+] security.yml file found
[+] vulnerabilities.yml file found
[*] Run playbook : build.yml with inventory file(s) : /home/vagrant/GOAD/ad/GOAD-Light/data/inventory,
/home/vagrant/GOAD/workspace/fea8e4-goad-light-vmware/inventory, /home/vagrant/GOAD/globalsettings.ini
[*] Running command : command
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/fea8e4-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/fea8e4-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/fea8e4-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/fea8e4-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[-] 3 fails abort.
[-] Something wrong during the provisioning task : build.yml

@littlestewart
Copy link

littlestewart commented Oct 28, 2024

i tried to reinstall it and now i have this error, i think it is related, i had the same error the first installation before having the main issue : ssh: connect to host 192.168.56.3 port 22: Connection timed out
[-] 3 fails abort.
[-] Something wrong during the provisioning task : build.yml

image

@Mayfly277 Mayfly277 added the bug Something isn't working label Oct 30, 2024
@Mayfly277
Copy link
Collaborator

I have the same error:

Windows Host and by following: https://orange-cyberdefense.github.io/GOAD/installation/windows/

Error:

GOAD-Light/vmware/vm/192.168.56.X (fea8e4-goad-light-vmware) > check
[+] vagrant.exe found in PATH
[*] skip ansible check as no local and runner provisionner enabled
[+] vagrant plugin vagrant-reload is installed
[+] File c:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe present in the file system
[+] vagrant plugin vagrant-vmware-desktop is installed
GOAD-Light/vmware/vm/192.168.56.X (fea8e4-goad-light-vmware) > install
[*] Launch providing
[*] CWD: \workspace\fea8e4-goad-light-vmware\provider
[*] Running command : vagrant.exe up
Bringing machine 'GOAD-Light-DC01' up with 'vmware_desktop' provider...
Bringing machine 'GOAD-Light-DC02' up with 'vmware_desktop' provider...
Bringing machine 'GOAD-Light-SRV02' up with 'vmware_desktop' provider...
Bringing machine 'PROVISIONING' up with 'vmware_desktop' provider...
==> GOAD-Light-DC01: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-Light-DC01: Machine is already running.
==> GOAD-Light-DC02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-Light-DC02: Machine is already running.
==> GOAD-Light-SRV02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-Light-SRV02: Machine is already running.
==> PROVISIONING: Checking if box 'bento/ubuntu-22.04' version '202401.31.0' is up to date...
==> PROVISIONING: Machine is already running.
[*] Prepare jumpbox if needed
[*] Launch scp c:\Users\NoName\Documents\GOAD\GOAD\scripts\setup_local_jumpbox.sh -> [email protected]:~/setup.sh
[*] CWD: \workspace\fea8e4-goad-light-vmware
[*] Running command : scp -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key c:\Users\NoName\Documents\GOAD\GOAD\scripts\setup_local_jumpbox.sh [email protected]:~/setup.sh
ssh: connect to host 192.168.56.3 port 22: Connection timed out
scp: Connection closed
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && sudo apt update && sudo apt install -y dos2unix"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && dos2unix setup.sh"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && bash setup.sh"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && mkdir -p ~/GOAD/workspace/fea8e4-goad-light-vmware"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch scp c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\instance.json ->
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/instance.json
[*] CWD: \workspace\fea8e4-goad-light-vmware
[*] Running command : scp -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\instance.json
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/instance.json
ssh: connect to host 192.168.56.3 port 22: Connection timed out
scp: Connection closed
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && dos2unix ~/GOAD/workspace/fea8e4-goad-light-vmware/instance.json"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch scp c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\inventory ->
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/inventory
[*] CWD: \workspace\fea8e4-goad-light-vmware
[*] Running command : scp -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\inventory
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/inventory
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && dos2unix ~/GOAD/workspace/fea8e4-goad-light-vmware/inventory"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch scp c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\inventory_disable_vagrant ->
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/inventory_disable_vagrant
[*] CWD: \workspace\fea8e4-goad-light-vmware
[*] Running command : scp -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\inventory_disable_vagrant
[email protected]:~/GOAD/workspace/fea8e4-goad-light-vmware/inventory_disable_vagrant
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd ~ && dos2unix ~/GOAD/workspace/fea8e4-goad-light-vmware/inventory_disable_vagrant"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch provisioning
[*] Loading inventory
[+] Lab inventory : c:\Users\NoName\Documents\GOAD\GOAD\ad\GOAD-Light\data\inventory file found
[+] Provider inventory : c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\inventory file found
[+] Global inventory : c:\Users\NoName\Documents\GOAD\GOAD\globalsettings.ini file found
[*] Loading playbook list
[+] build.yml file found
[+] ad-servers.yml file found
[+] ad-parent_domain.yml file found
[+] ad-child_domain.yml file found
[+] wait5m.yml file found
[+] ad-members.yml file found
[+] ad-trusts.yml file found
[+] ad-data.yml file found
[+] ad-gmsa.yml file found
[+] laps.yml file found
[+] ad-relations.yml file found
[+] adcs.yml file found
[+] ad-acl.yml file found
[+] servers.yml file found
[+] security.yml file found
[+] vulnerabilities.yml file found
[*] Run playbook : build.yml with inventory file(s) : /home/vagrant/GOAD/ad/GOAD-Light/data/inventory,
/home/vagrant/GOAD/workspace/fea8e4-goad-light-vmware/inventory, /home/vagrant/GOAD/globalsettings.ini
[*] Running command : command
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/fea8e4-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/fea8e4-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/fea8e4-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
c:\Users\NoName\Documents\GOAD\GOAD\workspace\fea8e4-goad-light-vmware\provider\.vagrant\machines\PROVISIONING\vmware_desktop\private_
key [email protected] "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD-Light/data/inventory -i /home/vagrant/GOAD/workspace/fea8e4-goad-light-vmware/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[-] 3 fails abort.
[-] Something wrong during the provisioning task : build.yml

Here "ssh: connect to host 192.168.56.3 port 22: Connection timed out" means the provisioning vm is not reachable.(don't know why)

@Mayfly277
Copy link
Collaborator

i tried to reinstall it and now i have this error, i think it is related, i had the same error the first installation before having the main issue : ssh: connect to host 192.168.56.3 port 22: Connection timed out [-] 3 fails abort. [-] Something wrong during the provisioning task : build.yml

image

Hum weird, i will try to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3 windows
Projects
None yet
Development

No branches or pull requests

4 participants