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

Error Launching via Python on Windows #280

Open
BAMRED opened this issue Oct 16, 2024 · 15 comments
Open

Error Launching via Python on Windows #280

BAMRED opened this issue Oct 16, 2024 · 15 comments

Comments

@BAMRED
Copy link

BAMRED commented Oct 16, 2024

I keep getting the following error when trying to launch on windows host (I was having issues with ansible on linux and VM on Windows)

 py goad.py -m vm
Traceback (most recent call last):
  File "D:\GOAD\goad.py", line 5, in <module>
    from goad.config import Config
  File "D:\GOAD\goad\config.py", line 4, in <module>
    from goad.log import Log
  File "D:\GOAD\goad\log.py", line 1, in <module>
    from rich import print
ModuleNotFoundError: No module named 'rich'

goad.py

import cmd
import argparse
import sys
import time
from goad.config import Config
from goad.log import Log
from goad.exceptions import JumpBoxInitFailed
from goad.menu import print_menu, print_logo
from goad.infos import *

log.py

from rich import print

from goad.utils import *

config.py

import configparser
from goad.goadpath import GoadPath
from goad.utils import *
from goad.log import Log
from goad.dependencies import Dependencies

noansible_requirements.yml installed and checked.
Python 3.12.4
Plugins installed (vagrant-reload vagrant-vbguest winrm winrm-fs winrm-elevated)
visual c++ 2019 updated

For reference, issues running ansible on linux host #59 (comment)

@Mayfly277
Copy link
Collaborator

ModuleNotFoundError: No module named 'rich' means your python doesn't have rich installed.
can you re-try : pip install -r noansible_requirements.yml
can you verify your python module list ? pip list and be sure rich is in it ?

Also verify is pip is linked to the same version of your python py version ?
py --version
pip --version

The requirement file already got rich so i don't see anything i could fix. i guess the bug is on your side unless i missed something.
image

@BAMRED
Copy link
Author

BAMRED commented Oct 17, 2024

I force upgraded python and pip and they are both on 3.12, re-ran the requirements and ensured rich was installed, this works to allow me to access the console. Progress!
I have been trying to follow along with the guide https://orange-cyberdefense.github.io/GOAD/installation/

However, I did end up with this error:

GOAD/virtualbox/local/192.168.56.X > install 1527f5-goad-virtualbox
[+] Current Settings
[*] Current Lab         : GOAD
[*] Current Provider    : virtualbox
[*] Current Provisioner : local
[*] Current IP range    : 192.168.56.X
[*] Extension(s)        :

Create lab with theses settings ? (y/N)y
[*] Create instance folder
[*] Create instance providing files
[*] Instance vagrantfile created : \workspace\e408eb-goad-virtualbox\provider\Vagrantfile
[*] Create lab provisioning file inventory_disable_vagrant
[+] Lab inventory file created : \workspace\e408eb-goad-virtualbox\inventory_disable_vagrant
[*] Create instance provisioning files
[+] Instance inventory file created : \workspace\e408eb-goad-virtualbox\inventory
[*] Create instance extensions inventory files
[*] Instance e408eb-goad-virtualbox created
[-] instance provisioner does not exist
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Instance ID              ┃ Lab  ┃ Provider   ┃ IP Range        ┃ Status       ┃ Is Default ┃ Extensions ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ > e408eb-goad-virtualbox │ GOAD │ virtualbox │ 192.168.56.0/24 │ not provided │ No         │            │
└──────────────────────────┴──────┴────────────┴─────────────────┴──────────────┴────────────┴────────────┘
[*] Launch providing
Traceback (most recent call last):
  File "D:\GOAD\goad.py", line 477, in <module>
    goad.cmdloop()
  File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python312\Lib\cmd.py", line 138, in cmdloop
    stop = self.onecmd(line)
           ^^^^^^^^^^^^^^^^^
  File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python312\Lib\cmd.py", line 217, in onecmd
    return func(arg)
           ^^^^^^^^^
  File "D:\GOAD\goad.py", line 67, in do_install
    self.do_create()
  File "D:\GOAD\goad.py", line 338, in do_create
    self.do_provide()
  File "D:\GOAD\goad.py", line 103, in do_provide
    result = self.lab_manager.get_current_instance_provider().install()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'install'

It generates the vagrantfile and I can get the VMs up with vagrant up but I cannot provision them.

GOAD/virtualbox/local/192.168.56.X > load e408eb-goad-virtualbox
[-] instance provisioner does not exist

Line 102-117 for reference

def do_provide(self, arg=''):
        result = self.lab_manager.get_current_instance_provider().install()
        if result:
            self.lab_manager.get_current_instance().set_status(PROVIDED)
            # if ip range change after provisioning
            if self.lab_manager.get_current_instance_provider().update_ip_range:
                Log.info('Update IP range')
                new_range = self.lab_manager.get_current_instance_provider().get_ip_range()
                if new_range is not None:
                    Log.info(f'new range : {new_range}')
                    self.lab_manager.get_current_instance().update_ip_range(new_range)
                    Log.info(f'reload instance')
                    # reload instance
                    instance_id = self.lab_manager.get_current_instance_id()
                    self.do_load(instance_id)
                    self.refresh_prompt()

Just to add, I am very impressed with the change to V3, it is clear that you have put a lot of work into this.

@Mayfly277
Copy link
Collaborator

Ok i didn't manage the fact that you use the wrong provisioning method, i will change that.
The local method is not available on windows because ansible can't be run locally on windows.

Please use the provisionning method vm with your config :
Like describe in the doc with python on windows : https://orange-cyberdefense.github.io/GOAD/installation/windows/#__tabbed_2_2

py goad.py -m vm

or in goad interactive prompt do set_provisioning_method vm

@BAMRED
Copy link
Author

BAMRED commented Oct 18, 2024

I wiped all workspaces and set up with VM method for VirtualBox, all 6 VMs start but the following error occurs

[*] Prepare jumpbox if needed
[*] Launch scp D:\GOAD\scripts\setup_local_jumpbox.sh -> vagrant@192.168.56.3:~/setup.sh
[*] CWD: \workspace\ee2b50-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i not found D:\GOAD\scripts\setup_local_jumpbox.sh
vagrant@192.168.56.3:~/setup.sh
scp: stat local "found": No such file or directory
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && sudo apt update &&
sudo apt install -y dos2unix"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && dos2unix setup.sh"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && bash setup.sh"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && mkdir -p
~/GOAD/workspace/ee2b50-goad-virtualbox"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] Launch scp D:\GOAD\workspace\ee2b50-goad-virtualbox\instance.json ->
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/instance.json
[*] CWD: \workspace\ee2b50-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i not found
D:\GOAD\workspace\ee2b50-goad-virtualbox\instance.json
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/instance.json
scp: stat local "found": No such file or directory
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && dos2unix
~/GOAD/workspace/ee2b50-goad-virtualbox/instance.json"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] Launch scp D:\GOAD\workspace\ee2b50-goad-virtualbox\inventory ->
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/inventory
[*] CWD: \workspace\ee2b50-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i not found D:\GOAD\workspace\ee2b50-goad-virtualbox\inventory
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/inventory
scp: stat local "found": No such file or directory
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && dos2unix
~/GOAD/workspace/ee2b50-goad-virtualbox/inventory"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] Launch scp D:\GOAD\workspace\ee2b50-goad-virtualbox\inventory_disable_vagrant ->
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/inventory_disable_vagrant
[*] CWD: \workspace\ee2b50-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i not found
D:\GOAD\workspace\ee2b50-goad-virtualbox\inventory_disable_vagrant
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/inventory_disable_vagrant
scp: stat local "found": No such file or directory
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && dos2unix
~/GOAD/workspace/ee2b50-goad-virtualbox/inventory_disable_vagrant"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] Launch provisioning
[*] Loading inventory
[+] Lab inventory : D:\GOAD\ad\GOAD\data\inventory file found
[+] Provider inventory : D:\GOAD\workspace\ee2b50-goad-virtualbox\inventory file found
[+] Global inventory : D:\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/data/inventory,
/home/vagrant/GOAD/workspace/ee2b50-goad-virtualbox/inventory, /home/vagrant/GOAD/globalsettings.ini
[*] Running command : command
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd
/home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i /home/vagrant/GOAD/ad/GOAD/data/inventory -i
/home/vagrant/GOAD/workspace/ee2b50-goad-virtualbox/inventory -i /home/vagrant/GOAD/globalsettings.ini build.yml"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd
/home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i /home/vagrant/GOAD/ad/GOAD/data/inventory -i
/home/vagrant/GOAD/workspace/ee2b50-goad-virtualbox/inventory -i /home/vagrant/GOAD/globalsettings.ini build.yml"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd
/home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i /home/vagrant/GOAD/ad/GOAD/data/inventory -i
/home/vagrant/GOAD/workspace/ee2b50-goad-virtualbox/inventory -i /home/vagrant/GOAD/globalsettings.ini build.yml"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd
/home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i /home/vagrant/GOAD/ad/GOAD/data/inventory -i
/home/vagrant/GOAD/workspace/ee2b50-goad-virtualbox/inventory -i /home/vagrant/GOAD/globalsettings.ini build.yml"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[-] 3 fails abort.
[-] Something wrong during the provisioning task : build.yml

GOAD-DC01                 running (virtualbox)
GOAD-DC02                 running (virtualbox)
GOAD-DC03                 running (virtualbox)
GOAD-SRV02                running (virtualbox)
GOAD-SRV03                running (virtualbox)
PROVISIONING              running (VirtualBox)

@Mayfly277
Copy link
Collaborator

Mayfly277 commented Oct 18, 2024

Hum weird, vagrant should have created a private key in workspace<workspaceid>\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key but in your capture there is "not found", so the key wasn't created.
is the PROVISIONING vm was well created and running ?

may be you can delete the vm provisionning then :

> load <instance_id>
> provide
# here check if the vm PROVISIONING is well up and running
# here check, a file should exist in workspace\<workspaceid>\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key ?
> prepare_jumpbox
> provision_lab

@BAMRED
Copy link
Author

BAMRED commented Oct 19, 2024

==> PROVISIONING: Checking if box 'bento/ubuntu-22.04' version '202407.23.0' is up to date...
==> PROVISIONING: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> PROVISIONING: flag to force provisioning. Provisioners marked to run always will still run.

GOAD/virtualbox/vm/192.168.56.X (ee2b50-goad-virtualbox) > prepare_jumpbox
[*] Launch scp D:\GOAD\scripts\setup_local_jumpbox.sh -> vagrant@192.168.56.3:~/setup.sh
[*] CWD: \workspace\ee2b50-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i not found D:\GOAD\scripts\setup_local_jumpbox.sh
vagrant@192.168.56.3:~/setup.sh
scp: stat local "found": No such file or directory
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && sudo apt
update && sudo apt install -y dos2unix"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && dos2unix
setup.sh"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && bash
setup.sh"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && mkdir -p
~/GOAD/workspace/ee2b50-goad-virtualbox"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] Launch scp D:\GOAD\workspace\ee2b50-goad-virtualbox\instance.json ->
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/instance.json
[*] CWD: \workspace\ee2b50-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i not found
D:\GOAD\workspace\ee2b50-goad-virtualbox\instance.json
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/instance.json
scp: stat local "found": No such file or directory
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && dos2unix
~/GOAD/workspace/ee2b50-goad-virtualbox/instance.json"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] Launch scp D:\GOAD\workspace\ee2b50-goad-virtualbox\inventory ->
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/inventory
[*] CWD: \workspace\ee2b50-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i not found
D:\GOAD\workspace\ee2b50-goad-virtualbox\inventory
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/inventory
scp: stat local "found": No such file or directory
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && dos2unix
~/GOAD/workspace/ee2b50-goad-virtualbox/inventory"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] Launch scp D:\GOAD\workspace\ee2b50-goad-virtualbox\inventory_disable_vagrant ->
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/inventory_disable_vagrant
[*] CWD: \workspace\ee2b50-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i not found
D:\GOAD\workspace\ee2b50-goad-virtualbox\inventory_disable_vagrant
vagrant@192.168.56.3:~/GOAD/workspace/ee2b50-goad-virtualbox/inventory_disable_vagrant
scp: stat local "found": No such file or directory
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd ~ && dos2unix
~/GOAD/workspace/ee2b50-goad-virtualbox/inventory_disable_vagrant"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.

GOAD/virtualbox/vm/192.168.56.X (ee2b50-goad-virtualbox) > provision_lab
[*] Loading inventory
[+] Lab inventory : D:\GOAD\ad\GOAD\data\inventory file found
[+] Provider inventory : D:\GOAD\workspace\ee2b50-goad-virtualbox\inventory file found
[+] Global inventory : D:\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/data/inventory,
/home/vagrant/GOAD/workspace/ee2b50-goad-virtualbox/inventory, /home/vagrant/GOAD/globalsettings.ini
[*] Running command : command
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd
/home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/ee2b50-goad-virtualbox/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd
/home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/ee2b50-goad-virtualbox/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd
/home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/ee2b50-goad-virtualbox/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i not found vagrant@192.168.56.3 "cd
/home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/ee2b50-goad-virtualbox/inventory -i
/home/vagrant/GOAD/globalsettings.ini build.yml"
Warning: Identity file not not accessible: No such file or directory.
ssh: Could not resolve hostname found: No such host is known.
[-] 3 fails abort.
[-] Something wrong during the provisioning task : build.yml

The private key file exists and there is a key generated within the begin and end

 PROVISIONING: Importing base box 'bento/ubuntu-22.04'...
==> PROVISIONING: Matching MAC address for NAT networking...
==> PROVISIONING: Checking if box 'bento/ubuntu-22.04' version '202407.23.0' is up to date...
==> PROVISIONING: Setting the name of the VM: PROVISIONING
==> PROVISIONING: Fixed port collision for 22 => 2222. Now on port 2212.
==> PROVISIONING: Clearing any previously set network interfaces...
==> PROVISIONING: Preparing network interfaces based on configuration...
    PROVISIONING: Adapter 1: nat
    PROVISIONING: Adapter 2: hostonly
==> PROVISIONING: Forwarding ports...
    PROVISIONING: 22 (guest) => 2212 (host) (adapter 1)
==> PROVISIONING: Running 'pre-boot' VM customizations...
==> PROVISIONING: Booting VM...
==> PROVISIONING: Waiting for machine to boot. This may take a few minutes...
    PROVISIONING: SSH address: 127.0.0.1:2212
    PROVISIONING: SSH username: vagrant
    PROVISIONING: SSH auth method: private key
    PROVISIONING: Warning: Connection reset. Retrying...
    PROVISIONING: Warning: Connection aborted. Retrying...
    PROVISIONING: Warning: Connection aborted. Retrying...
    PROVISIONING: Warning: Connection reset. Retrying...
    PROVISIONING: Warning: Connection aborted. Retrying...
    PROVISIONING: Warning: Connection reset. Retrying...
    PROVISIONING:
    PROVISIONING: Vagrant insecure key detected. Vagrant will automatically replace
    PROVISIONING: this with a newly generated keypair for better security.
    PROVISIONING:
    PROVISIONING: Inserting generated public key within guest...
    PROVISIONING: Removing insecure key from the guest if it's present...
    PROVISIONING: Key inserted! Disconnecting and reconnecting using new SSH key...
==> PROVISIONING: Machine booted and ready!

@Mayfly277
Copy link
Collaborator

can you try again and give me the error ?

@BAMRED
Copy link
Author

BAMRED commented Oct 23, 2024

Deleted all files, fresh clone and install, ran requirements etc.
image
image

GOAD/virtualbox/vm/192.168.56.X > install 3a2bff-goad-virtualbox
[*] Launch providing
[*] CWD: \workspace\3a2bff-goad-virtualbox\provider
[*] Running command : vagrant.exe up
Bringing machine 'GOAD-DC01' up with 'virtualbox' provider...
Bringing machine 'GOAD-DC02' up with 'virtualbox' provider...
Bringing machine 'GOAD-DC03' up with 'virtualbox' provider...
Bringing machine 'GOAD-SRV02' up with 'virtualbox' provider...
Bringing machine 'GOAD-SRV03' up with 'virtualbox' provider...
Bringing machine 'PROVISIONING' up with 'virtualbox' provider...
==> GOAD-DC01: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-DC01: Running provisioner: shell...
    GOAD-DC01: Running: ../../../vagrant/Install-WMF3Hotfix.ps1 as C:\tmp\vagrant-shell.ps1
==> GOAD-DC01: Running provisioner: shell...
    GOAD-DC01: Running: ../../../vagrant/ConfigureRemotingForAnsible.ps1 as C:\tmp\vagrant-shell.ps1
    GOAD-DC01: Self-signed SSL certificate generated; thumbprint: 566EFAC2A34245CF4E844572F16146260C8E66F1
    GOAD-DC01:
    GOAD-DC01:
    GOAD-DC01: wxf                 : http://schemas.xmlsoap.org/ws/2004/09/transfer
    GOAD-DC01: a                   : http://schemas.xmlsoap.org/ws/2004/08/addressing
    GOAD-DC01: w                   : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
    GOAD-DC01: lang                : en-US
    GOAD-DC01: Address             : http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
    GOAD-DC01: ReferenceParameters : ReferenceParameters
    GOAD-DC01:
    GOAD-DC01: Ok.
    GOAD-DC01:
    GOAD-DC01:
    GOAD-DC01:
==> GOAD-DC02: Importing base box 'StefanScherer/windows_2019'...
==> GOAD-DC02: Matching MAC address for NAT networking...
==> GOAD-DC02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-DC02: Setting the name of the VM: GOAD-DC02
==> GOAD-DC02: Fixed port collision for 5985 => 55985. Now on port 2200.
==> GOAD-DC02: Fixed port collision for 5986 => 55986. Now on port 2201.
==> GOAD-DC02: Fixed port collision for 22 => 2222. Now on port 2202.
==> GOAD-DC02: Clearing any previously set network interfaces...
==> GOAD-DC02: Preparing network interfaces based on configuration...
    GOAD-DC02: Adapter 1: nat
    GOAD-DC02: Adapter 2: hostonly
==> GOAD-DC02: Forwarding ports...
    GOAD-DC02: 5985 (guest) => 2200 (host) (adapter 1)
    GOAD-DC02: 5986 (guest) => 2201 (host) (adapter 1)
    GOAD-DC02: 22 (guest) => 2202 (host) (adapter 1)
==> GOAD-DC02: Running 'pre-boot' VM customizations...
==> GOAD-DC02: Booting VM...
==> GOAD-DC02: Waiting for machine to boot. This may take a few minutes...
    GOAD-DC02: WinRM address: 127.0.0.1:2200
    GOAD-DC02: WinRM username: vagrant
    GOAD-DC02: WinRM execution_time_limit: PT2H
    GOAD-DC02: WinRM transport: negotiate
==> GOAD-DC02: Machine booted and ready!
==> GOAD-DC02: Checking for guest additions in VM...
    GOAD-DC02: The guest additions on this VM do not match the installed version of
    GOAD-DC02: VirtualBox! In most cases this is fine, but in rare cases it can
    GOAD-DC02: prevent things such as shared folders from working properly. If you see
    GOAD-DC02: shared folder errors, please make sure the guest additions within the
    GOAD-DC02: virtual machine match the version of VirtualBox you have installed on
    GOAD-DC02: your host and reload your VM.
    GOAD-DC02:
    GOAD-DC02: Guest Additions Version: 6.1.22
    GOAD-DC02: VirtualBox Version: 7.0
==> GOAD-DC02: Configuring and enabling network interfaces...
==> GOAD-DC02: Running provisioner: shell...
    GOAD-DC02: Running: ../../../vagrant/Install-WMF3Hotfix.ps1 as C:\tmp\vagrant-shell.ps1
==> GOAD-DC02: Running provisioner: shell...
    GOAD-DC02: Running: ../../../vagrant/ConfigureRemotingForAnsible.ps1 as C:\tmp\vagrant-shell.ps1
    GOAD-DC02: Self-signed SSL certificate generated; thumbprint: 94A7AB2A90A97222FABB3F520F007224E4D9CDF0
    GOAD-DC02:
    GOAD-DC02:
    GOAD-DC02: wxf                 : http://schemas.xmlsoap.org/ws/2004/09/transfer
    GOAD-DC02: a                   : http://schemas.xmlsoap.org/ws/2004/08/addressing
    GOAD-DC02: w                   : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
    GOAD-DC02: lang                : en-US
    GOAD-DC02: Address             : http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
    GOAD-DC02: ReferenceParameters : ReferenceParameters
    GOAD-DC02:
    GOAD-DC02: Ok.
    GOAD-DC02:
    GOAD-DC02:
    GOAD-DC02:
==> GOAD-DC03: Box 'StefanScherer/windows_2016' could not be found. Attempting to find and install...
    GOAD-DC03: Box Provider: virtualbox
    GOAD-DC03: Box Version: 2017.12.14
==> GOAD-DC03: Loading metadata for box 'StefanScherer/windows_2016'
    GOAD-DC03: URL: https://vagrantcloud.com/api/v2/vagrant/StefanScherer/windows_2016
==> GOAD-DC03: Adding box 'StefanScherer/windows_2016' (v2017.12.14) for provider: virtualbox
    GOAD-DC03: Downloading: https://vagrantcloud.com/StefanScherer/boxes/windows_2016/versions/2017.12.14/providers/virtualbox/unknown/vagrant.box
    GOAD-DC03:
==> GOAD-DC03: Successfully added box 'StefanScherer/windows_2016' (v2017.12.14) for 'virtualbox'!
==> GOAD-DC03: Importing base box 'StefanScherer/windows_2016'...
==> GOAD-DC03: Matching MAC address for NAT networking...
==> GOAD-DC03: Checking if box 'StefanScherer/windows_2016' version '2017.12.14' is up to date...
==> GOAD-DC03: Setting the name of the VM: GOAD-DC03
==> GOAD-DC03: Fixed port collision for 5985 => 55985. Now on port 2203.
==> GOAD-DC03: Fixed port collision for 5986 => 55986. Now on port 2204.
==> GOAD-DC03: Fixed port collision for 22 => 2222. Now on port 2205.
==> GOAD-DC03: Clearing any previously set network interfaces...
==> GOAD-DC03: Preparing network interfaces based on configuration...
    GOAD-DC03: Adapter 1: nat
    GOAD-DC03: Adapter 2: hostonly
==> GOAD-DC03: Forwarding ports...
    GOAD-DC03: 5985 (guest) => 2203 (host) (adapter 1)
    GOAD-DC03: 5986 (guest) => 2204 (host) (adapter 1)
    GOAD-DC03: 22 (guest) => 2205 (host) (adapter 1)
==> GOAD-DC03: Running 'pre-boot' VM customizations...
==> GOAD-DC03: Booting VM...
==> GOAD-DC03: Waiting for machine to boot. This may take a few minutes...
    GOAD-DC03: WinRM address: 127.0.0.1:2203
    GOAD-DC03: WinRM username: vagrant
    GOAD-DC03: WinRM execution_time_limit: PT2H
    GOAD-DC03: WinRM transport: negotiate
==> GOAD-DC03: Machine booted and ready!
==> GOAD-DC03: Checking for guest additions in VM...
    GOAD-DC03: The guest additions on this VM do not match the installed version of
    GOAD-DC03: VirtualBox! In most cases this is fine, but in rare cases it can
    GOAD-DC03: prevent things such as shared folders from working properly. If you see
    GOAD-DC03: shared folder errors, please make sure the guest additions within the
    GOAD-DC03: virtual machine match the version of VirtualBox you have installed on
    GOAD-DC03: your host and reload your VM.
    GOAD-DC03:
    GOAD-DC03: Guest Additions Version: 5.1.30
    GOAD-DC03: VirtualBox Version: 7.0
==> GOAD-DC03: Configuring and enabling network interfaces...
==> GOAD-DC03: Running provisioner: shell...
    GOAD-DC03: Running: ../../../vagrant/Install-WMF3Hotfix.ps1 as C:\tmp\vagrant-shell.ps1
==> GOAD-DC03: Running provisioner: shell...
    GOAD-DC03: Running: ../../../vagrant/ConfigureRemotingForAnsible.ps1 as C:\tmp\vagrant-shell.ps1
    GOAD-DC03: Self-signed SSL certificate generated; thumbprint: F94A0B6647C5C1FD37199A48E1520D3AF67E7238
    GOAD-DC03:
    GOAD-DC03:
    GOAD-DC03: wxf                 : http://schemas.xmlsoap.org/ws/2004/09/transfer
    GOAD-DC03: a                   : http://schemas.xmlsoap.org/ws/2004/08/addressing
    GOAD-DC03: w                   : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
    GOAD-DC03: lang                : en-US
    GOAD-DC03: Address             : http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
    GOAD-DC03: ReferenceParameters : ReferenceParameters
    GOAD-DC03:
    GOAD-DC03: Ok.
    GOAD-DC03:
    GOAD-DC03:
    GOAD-DC03:
==> GOAD-SRV02: Importing base box 'StefanScherer/windows_2019'...
==> GOAD-SRV02: Matching MAC address for NAT networking...
==> GOAD-SRV02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-SRV02: Setting the name of the VM: GOAD-SRV02
==> GOAD-SRV02: Fixed port collision for 5985 => 55985. Now on port 2206.
==> GOAD-SRV02: Fixed port collision for 5986 => 55986. Now on port 2207.
==> GOAD-SRV02: Fixed port collision for 22 => 2222. Now on port 2208.
==> GOAD-SRV02: Clearing any previously set network interfaces...
==> GOAD-SRV02: Preparing network interfaces based on configuration...
    GOAD-SRV02: Adapter 1: nat
    GOAD-SRV02: Adapter 2: hostonly
==> GOAD-SRV02: Forwarding ports...
    GOAD-SRV02: 5985 (guest) => 2206 (host) (adapter 1)
    GOAD-SRV02: 5986 (guest) => 2207 (host) (adapter 1)
    GOAD-SRV02: 22 (guest) => 2208 (host) (adapter 1)
==> GOAD-SRV02: Running 'pre-boot' VM customizations...
==> GOAD-SRV02: Booting VM...
==> GOAD-SRV02: Waiting for machine to boot. This may take a few minutes...
    GOAD-SRV02: WinRM address: 127.0.0.1:2206
    GOAD-SRV02: WinRM username: vagrant
    GOAD-SRV02: WinRM execution_time_limit: PT2H
    GOAD-SRV02: WinRM transport: negotiate
==> GOAD-SRV02: Machine booted and ready!
==> GOAD-SRV02: Checking for guest additions in VM...
    GOAD-SRV02: The guest additions on this VM do not match the installed version of
    GOAD-SRV02: VirtualBox! In most cases this is fine, but in rare cases it can
    GOAD-SRV02: prevent things such as shared folders from working properly. If you see
    GOAD-SRV02: shared folder errors, please make sure the guest additions within the
    GOAD-SRV02: virtual machine match the version of VirtualBox you have installed on
    GOAD-SRV02: your host and reload your VM.
    GOAD-SRV02:
    GOAD-SRV02: Guest Additions Version: 6.1.22
    GOAD-SRV02: VirtualBox Version: 7.0
==> GOAD-SRV02: Configuring and enabling network interfaces...
==> GOAD-SRV02: Running provisioner: shell...
    GOAD-SRV02: Running: ../../../vagrant/Install-WMF3Hotfix.ps1 as C:\tmp\vagrant-shell.ps1
==> GOAD-SRV02: Running provisioner: shell...
    GOAD-SRV02: Running: ../../../vagrant/ConfigureRemotingForAnsible.ps1 as C:\tmp\vagrant-shell.ps1
    GOAD-SRV02: Self-signed SSL certificate generated; thumbprint: 6F8A45AFC2A6909B8005AD5D35BA180F3B8D0AF6
    GOAD-SRV02:
    GOAD-SRV02:
    GOAD-SRV02: wxf                 : http://schemas.xmlsoap.org/ws/2004/09/transfer
    GOAD-SRV02: a                   : http://schemas.xmlsoap.org/ws/2004/08/addressing
    GOAD-SRV02: w                   : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
    GOAD-SRV02: lang                : en-US
    GOAD-SRV02: Address             : http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
    GOAD-SRV02: ReferenceParameters : ReferenceParameters
    GOAD-SRV02:
    GOAD-SRV02: Ok.
    GOAD-SRV02:
    GOAD-SRV02:
    GOAD-SRV02:
==> GOAD-SRV03: Box 'StefanScherer/windows_2016' could not be found. Attempting to find and install...
    GOAD-SRV03: Box Provider: virtualbox
    GOAD-SRV03: Box Version: 2019.02.14
==> GOAD-SRV03: Loading metadata for box 'StefanScherer/windows_2016'
    GOAD-SRV03: URL: https://vagrantcloud.com/api/v2/vagrant/StefanScherer/windows_2016
==> GOAD-SRV03: Adding box 'StefanScherer/windows_2016' (v2019.02.14) for provider: virtualbox
    GOAD-SRV03: Downloading: https://vagrantcloud.com/StefanScherer/boxes/windows_2016/versions/2019.02.14/providers/virtualbox/unknown/vagrant.box
    GOAD-SRV03:
==> GOAD-SRV03: Successfully added box 'StefanScherer/windows_2016' (v2019.02.14) for 'virtualbox'!
==> GOAD-SRV03: Importing base box 'StefanScherer/windows_2016'...
==> GOAD-SRV03: Matching MAC address for NAT networking...
==> GOAD-SRV03: Checking if box 'StefanScherer/windows_2016' version '2019.02.14' is up to date...
==> GOAD-SRV03: Setting the name of the VM: GOAD-SRV03
==> GOAD-SRV03: Fixed port collision for 5985 => 55985. Now on port 2209.
==> GOAD-SRV03: Fixed port collision for 5986 => 55986. Now on port 2210.
==> GOAD-SRV03: Fixed port collision for 22 => 2222. Now on port 2211.
==> GOAD-SRV03: Clearing any previously set network interfaces...
==> GOAD-SRV03: Preparing network interfaces based on configuration...
    GOAD-SRV03: Adapter 1: nat
    GOAD-SRV03: Adapter 2: hostonly
==> GOAD-SRV03: Forwarding ports...
    GOAD-SRV03: 5985 (guest) => 2209 (host) (adapter 1)
    GOAD-SRV03: 5986 (guest) => 2210 (host) (adapter 1)
    GOAD-SRV03: 22 (guest) => 2211 (host) (adapter 1)
==> GOAD-SRV03: Running 'pre-boot' VM customizations...
==> GOAD-SRV03: Booting VM...
==> GOAD-SRV03: Waiting for machine to boot. This may take a few minutes...
    GOAD-SRV03: WinRM address: 127.0.0.1:2209
    GOAD-SRV03: WinRM username: vagrant
    GOAD-SRV03: WinRM execution_time_limit: PT2H
    GOAD-SRV03: WinRM transport: negotiate
==> GOAD-SRV03: Machine booted and ready!
==> GOAD-SRV03: Checking for guest additions in VM...
    GOAD-SRV03: The guest additions on this VM do not match the installed version of
    GOAD-SRV03: VirtualBox! In most cases this is fine, but in rare cases it can
    GOAD-SRV03: prevent things such as shared folders from working properly. If you see
    GOAD-SRV03: shared folder errors, please make sure the guest additions within the
    GOAD-SRV03: virtual machine match the version of VirtualBox you have installed on
    GOAD-SRV03: your host and reload your VM.
    GOAD-SRV03:
    GOAD-SRV03: Guest Additions Version: 5.2.26
    GOAD-SRV03: VirtualBox Version: 7.0
==> GOAD-SRV03: Configuring and enabling network interfaces...
==> GOAD-SRV03: Running provisioner: shell...
    GOAD-SRV03: Running: ../../../vagrant/Install-WMF3Hotfix.ps1 as C:\tmp\vagrant-shell.ps1
==> GOAD-SRV03: Running provisioner: shell...
    GOAD-SRV03: Running: ../../../vagrant/ConfigureRemotingForAnsible.ps1 as C:\tmp\vagrant-shell.ps1
    GOAD-SRV03: Self-signed SSL certificate generated; thumbprint: 76E95D7FBDBD5D2E51CEE2688DFF218C6716F1EC
    GOAD-SRV03:
    GOAD-SRV03:
    GOAD-SRV03: wxf                 : http://schemas.xmlsoap.org/ws/2004/09/transfer
    GOAD-SRV03: a                   : http://schemas.xmlsoap.org/ws/2004/08/addressing
    GOAD-SRV03: w                   : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
    GOAD-SRV03: lang                : en-US
    GOAD-SRV03: Address             : http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
    GOAD-SRV03: ReferenceParameters : ReferenceParameters
    GOAD-SRV03:
    GOAD-SRV03: Ok.
    GOAD-SRV03:
    GOAD-SRV03:
    GOAD-SRV03:
==> PROVISIONING: Box 'bento/ubuntu-22.04' could not be found. Attempting to find and install...
    PROVISIONING: Box Provider: virtualbox
    PROVISIONING: Box Version: >= 0
==> PROVISIONING: Loading metadata for box 'bento/ubuntu-22.04'
    PROVISIONING: URL: https://vagrantcloud.com/api/v2/vagrant/bento/ubuntu-22.04
==> PROVISIONING: Adding box 'bento/ubuntu-22.04' (v202407.23.0) for provider: virtualbox (amd64)
    PROVISIONING: Downloading: https://vagrantcloud.com/bento/boxes/ubuntu-22.04/versions/202407.23.0/providers/virtualbox/amd64/vagrant.box
    PROVISIONING:
==> PROVISIONING: Successfully added box 'bento/ubuntu-22.04' (v202407.23.0) for 'virtualbox (amd64)'!
==> PROVISIONING: Importing base box 'bento/ubuntu-22.04'...
==> PROVISIONING: Matching MAC address for NAT networking...
==> PROVISIONING: Checking if box 'bento/ubuntu-22.04' version '202407.23.0' is up to date...
==> PROVISIONING: Setting the name of the VM: PROVISIONING
==> PROVISIONING: Fixed port collision for 22 => 2222. Now on port 2212.
==> PROVISIONING: Clearing any previously set network interfaces...
==> PROVISIONING: Preparing network interfaces based on configuration...
    PROVISIONING: Adapter 1: nat
    PROVISIONING: Adapter 2: hostonly
==> PROVISIONING: Forwarding ports...
    PROVISIONING: 22 (guest) => 2212 (host) (adapter 1)
==> PROVISIONING: Running 'pre-boot' VM customizations...
==> PROVISIONING: Booting VM...
==> PROVISIONING: Waiting for machine to boot. This may take a few minutes...
    PROVISIONING: SSH address: 127.0.0.1:2212
    PROVISIONING: SSH username: vagrant
    PROVISIONING: SSH auth method: private key
    PROVISIONING: Warning: Connection reset. Retrying...
    PROVISIONING: Warning: Connection aborted. Retrying...
    PROVISIONING: Warning: Connection reset. Retrying...
    PROVISIONING: Warning: Connection aborted. Retrying...
    PROVISIONING: Warning: Connection reset. Retrying...
    PROVISIONING: Warning: Connection aborted. Retrying...
    PROVISIONING:
    PROVISIONING: Vagrant insecure key detected. Vagrant will automatically replace
    PROVISIONING: this with a newly generated keypair for better security.
    PROVISIONING:
    PROVISIONING: Inserting generated public key within guest...
    PROVISIONING: Removing insecure key from the guest if it's present...
    PROVISIONING: Key inserted! Disconnecting and reconnecting using new SSH key...
==> PROVISIONING: Machine booted and ready!
==> PROVISIONING: Checking for guest additions in VM...
==> PROVISIONING: Configuring and enabling network interfaces...
[*] Prepare jumpbox if needed
[*] Launch scp D:\GOAD\scripts\setup_local_jumpbox.sh -> vagrant@192.168.56.3:~/setup.sh
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\scripts\setup_local_jumpbox.sh vagrant@192.168.56.3:~/setup.sh
Warning: Permanently added '192.168.56.3' (ED25519) to the list of known hosts.
setup_local_jumpbox.sh                                                                100%  794   155.1KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && sudo apt update && sudo apt install -y dos2unix"
Ign:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Ign:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Err:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Ign:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Ign:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
  Temporary failure resolving 'us.archive.ubuntu.com'
Err:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
  Temporary failure resolving 'us.archive.ubuntu.com'
Err:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
  Temporary failure resolving 'us.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  dos2unix
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 384 kB of archives.
After this operation, 1,367 kB of additional disk space will be used.
Ign:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 dos2unix amd64 7.4.2-2
Ign:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 dos2unix amd64 7.4.2-2
Ign:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 dos2unix amd64 7.4.2-2
Err:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 dos2unix amd64 7.4.2-2
  Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/d/dos2unix/dos2unix_7.4.2-2_amd64.deb  Temporary failure resolving 'us.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix setup.sh"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && bash setup.sh"
setup.sh: line 2: $'\r': command not found
E: Invalid operation update
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package git
setup.sh: line 6: $'\r': command not found
setup.sh: line 32: syntax error: unexpected end of file
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && mkdir -p ~/GOAD/workspace/3a2bff-goad-virtualbox"
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\instance.json ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\workspace\3a2bff-goad-virtualbox\instance.json
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json
instance.json                                                                         100%  237    46.3KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory
inventory                                                                             100%  805   112.3KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/inventory"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory_disable_vagrant ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory_disable_vagrant
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant
inventory_disable_vagrant                                                             100% 1615   315.4KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.
[*] Launch provisioning
[*] Loading inventory
[+] Lab inventory : D:\GOAD\ad\GOAD\data\inventory file found
[+] Provider inventory : D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory file found
[+] Global inventory : D:\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/data/inventory,
/home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/inventory, /home/vagrant/GOAD/globalsettings.ini
[*] Running command : command
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/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
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/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
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/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
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/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/virtualbox/vm/192.168.56.X (3a2bff-goad-virtualbox) > install
[*] Launch providing
[*] CWD: \workspace\3a2bff-goad-virtualbox\provider
[*] Running command : vagrant.exe up
Bringing machine 'GOAD-DC01' up with 'virtualbox' provider...
Bringing machine 'GOAD-DC02' up with 'virtualbox' provider...
Bringing machine 'GOAD-DC03' up with 'virtualbox' provider...
Bringing machine 'GOAD-SRV02' up with 'virtualbox' provider...
Bringing machine 'GOAD-SRV03' up with 'virtualbox' provider...
Bringing machine 'PROVISIONING' up with 'virtualbox' provider...
==> GOAD-DC01: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-DC01: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> GOAD-DC01: flag to force provisioning. Provisioners marked to run always will still run.
==> GOAD-DC02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-DC02: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> GOAD-DC02: flag to force provisioning. Provisioners marked to run always will still run.
==> GOAD-DC03: Checking if box 'StefanScherer/windows_2016' version '2017.12.14' is up to date...
==> GOAD-DC03: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> GOAD-DC03: flag to force provisioning. Provisioners marked to run always will still run.
==> GOAD-SRV02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-SRV02: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> GOAD-SRV02: flag to force provisioning. Provisioners marked to run always will still run.
==> GOAD-SRV03: Checking if box 'StefanScherer/windows_2016' version '2019.02.14' is up to date...
==> GOAD-SRV03: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> GOAD-SRV03: flag to force provisioning. Provisioners marked to run always will still run.
==> PROVISIONING: Checking if box 'bento/ubuntu-22.04' version '202407.23.0' is up to date...
==> PROVISIONING: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> PROVISIONING: flag to force provisioning. Provisioners marked to run always will still run.
[*] Prepare jumpbox if needed
[*] Launch scp D:\GOAD\scripts\setup_local_jumpbox.sh -> vagrant@192.168.56.3:~/setup.sh
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\scripts\setup_local_jumpbox.sh vagrant@192.168.56.3:~/setup.sh
setup_local_jumpbox.sh                                                                100%  794   129.2KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && sudo apt update && sudo apt install -y dos2unix"
Ign:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Ign:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Ign:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
  Temporary failure resolving 'us.archive.ubuntu.com'
Err:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
  Temporary failure resolving 'us.archive.ubuntu.com'
Err:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
  Temporary failure resolving 'us.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  dos2unix
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 384 kB of archives.
After this operation, 1,367 kB of additional disk space will be used.
Ign:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 dos2unix amd64 7.4.2-2
Ign:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 dos2unix amd64 7.4.2-2
Ign:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 dos2unix amd64 7.4.2-2
Err:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 dos2unix amd64 7.4.2-2
  Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/d/dos2unix/dos2unix_7.4.2-2_amd64.deb  Temporary failure resolving 'us.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix setup.sh"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && bash setup.sh"
setup.sh: line 2: $'\r': command not found
E: Invalid operation update
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package git
setup.sh: line 6: $'\r': command not found
setup.sh: line 32: syntax error: unexpected end of file
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && mkdir -p ~/GOAD/workspace/3a2bff-goad-virtualbox"
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\instance.json ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\workspace\3a2bff-goad-virtualbox\instance.json
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json
instance.json                                                                         100%  237    57.9KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory
inventory                                                                             100%  805    98.3KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/inventory"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory_disable_vagrant ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory_disable_vagrant
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant
inventory_disable_vagrant                                                             100% 1615   262.9KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.
[*] Launch provisioning
[*] Loading inventory
[+] Lab inventory : D:\GOAD\ad\GOAD\data\inventory file found
[+] Provider inventory : D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory file found
[+] Global inventory : D:\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/data/inventory,
/home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/inventory, /home/vagrant/GOAD/globalsettings.ini
[*] Running command : command
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/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
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/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
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/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
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ && /home/vagrant/.local/bin/ansible-playbook -i
/home/vagrant/GOAD/ad/GOAD/data/inventory -i /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/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

@Mayfly277
Copy link
Collaborator

ok here the error is the provisioning vm doesn't get internet access or have trouble with dns resolution.

All packages are up to date.
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Temporary failure resolving 'security.ubuntu.com'

can you try to login to the provisioning vm to understand why the apt update fail ?

@BAMRED
Copy link
Author

BAMRED commented Oct 26, 2024

image
I can ping 8.8.8.8 but not google.com so seems to be a DNS issue

@BAMRED
Copy link
Author

BAMRED commented Oct 27, 2024

I have changed the DNS settings and can now ping google.com and so I have manually updated and this has worked but I am still getting

GOAD/virtualbox/vm/192.168.56.X (3a2bff-goad-virtualbox) > prepare_jumpbox
[*] Launch scp D:\GOAD\scripts\setup_local_jumpbox.sh -> vagrant@192.168.56.3:~/setup.sh
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\scripts\setup_local_jumpbox.sh vagrant@192.168.56.3:~/setup.sh
ssh: connect to host 192.168.56.3 port 22: Connection timed out
scp: Connection closed

Manually opening port on PROVISIONING gets me to the point of running playbooks

GOAD/virtualbox/vm/192.168.56.X (3a2bff-goad-virtualbox) > status
[*] CWD: \workspace\3a2bff-goad-virtualbox\provider
[*] Running command : vagrant.exe status
Current machine states:

GOAD-DC01                 running (virtualbox)
GOAD-DC02                 running (virtualbox)
GOAD-DC03                 running (virtualbox)
GOAD-SRV02                running (virtualbox)
GOAD-SRV03                running (virtualbox)
PROVISIONING              running (virtualbox)

This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.

GOAD/virtualbox/vm/192.168.56.X (3a2bff-goad-virtualbox) > sync_source_jumpbox
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && mkdir -p ~/GOAD/workspace/3a2bff-goad-virtualbox"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\instance.json ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\workspace\3a2bff-goad-virtualbox\instance.json
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory
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
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/inventory"
ssh: connect to host 192.168.56.3 port 22: Connection timed out
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory_disable_vagrant ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory_disable_vagrant
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant
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
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\private_key
vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant"
ssh: connect to host 192.168.56.3 port 22: Connection timed out

GOAD/virtualbox/vm/192.168.56.X (3a2bff-goad-virtualbox) > sync_source_jumpbox
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd ~ && mkdir -p ~/GOAD/workspace/3a2bff-goad-virtualbox"
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\instance.json ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key D:\GOAD\workspace\3a2bff-goad-virtualbox\instance.json
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json
instance.json                                                  100%  237    57.9KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd ~ && dos2unix
~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory
inventory                                                      100%  805   196.5KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/inventory"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory_disable_vagrant ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory_disable_vagrant
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant
inventory_disable_vagrant                                      100% 1615   315.4KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd ~ && dos2unix
~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant"
bash: line 1: dos2unix: command not found
Connection to 192.168.56.3 closed.

GOAD/virtualbox/vm/192.168.56.X (3a2bff-goad-virtualbox) > prepare_jumpbox
[*] Launch scp D:\GOAD\scripts\setup_local_jumpbox.sh -> vagrant@192.168.56.3:~/setup.sh
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key D:\GOAD\scripts\setup_local_jumpbox.sh vagrant@192.168.56.3:~/setup.sh
setup_local_jumpbox.sh                                         100%  794   258.5KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd ~ && sudo apt update && sudo apt install -y dos2unix"
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  dos2unix
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 384 kB of archives.
After this operation, 1,367 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 dos2unix amd64 7.4.2-2 [384 kB]
Fetched 384 kB in 2s (188 kB/s)
Selecting previously unselected package dos2unix.
(Reading database ... 59378 files and directories currently installed.)
Preparing to unpack .../dos2unix_7.4.2-2_amd64.deb ...
Unpacking dos2unix (7.4.2-2) ...
Setting up dos2unix (7.4.2-2) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "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
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd ~ && bash setup.sh"
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-backports 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 0 not upgraded.
Cloning into '/home/vagrant/GOAD'...
remote: Enumerating objects: 6239, done.
remote: Counting objects: 100% (980/980), done.
remote: Compressing objects: 100% (302/302), done.
remote: Total 6239 (delta 688), reused 837 (delta 643), pack-reused 5259 (from 1)
Receiving objects: 100% (6239/6239), 23.25 MiB | 886.00 KiB/s, done.
Resolving deltas: 100% (3055/3055), done.
Branch 'v3-beta' set up to track remote branch 'v3-beta' from 'origin'.
Switched to a new branch 'v3-beta'
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.3)
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: rich in /home/vagrant/.local/lib/python3.10/site-packages (from -r requirements.yml (line 1)) (13.9.3)
Requirement already satisfied: psutil in /home/vagrant/.local/lib/python3.10/site-packages (from -r requirements.yml (line 2)) (6.1.0)
Requirement already satisfied: Jinja2 in /usr/lib/python3/dist-packages (from -r requirements.yml (line 3)) (3.0.3)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from -r requirements.yml (line 4)) (5.4.1)
Requirement already satisfied: ansible_runner in /home/vagrant/.local/lib/python3.10/site-packages (from -r requirements.yml (line 6)) (2.4.0)
Requirement already satisfied: ansible-core==2.12.6 in /home/vagrant/.local/lib/python3.10/site-packages (from -r requirements.yml (line 7)) (2.12.6)
Requirement already satisfied: pywinrm in /home/vagrant/.local/lib/python3.10/site-packages (from -r requirements.yml (line 8)) (0.5.0)
Requirement already satisfied: azure-identity in /home/vagrant/.local/lib/python3.10/site-packages (from -r requirements.yml (line 10)) (1.19.0)
Requirement already satisfied: azure-mgmt-compute in /home/vagrant/.local/lib/python3.10/site-packages (from -r requirements.yml (line 11)) (33.0.0)
Requirement already satisfied: azure-mgmt-network in /home/vagrant/.local/lib/python3.10/site-packages (from -r requirements.yml (line 12)) (27.0.0)
Requirement already satisfied: boto3 in /home/vagrant/.local/lib/python3.10/site-packages (from -r requirements.yml (line 14)) (1.35.49)
Requirement already satisfied: proxmoxer in /home/vagrant/.local/lib/python3.10/site-packages (from -r requirements.yml (line 16)) (2.1.0)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from -r requirements.yml (line 17)) (2.25.1)
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (from ansible-core==2.12.6->-r requirements.yml (line 7)) (3.4.8)
Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from ansible-core==2.12.6->-r requirements.yml (line 7)) (21.3)
Requirement already satisfied: resolvelib<0.6.0,>=0.5.3 in /home/vagrant/.local/lib/python3.10/site-packages (from ansible-core==2.12.6->-r requirements.yml (line 7)) (0.5.4)
Requirement already satisfied: markdown-it-py>=2.2.0 in /home/vagrant/.local/lib/python3.10/site-packages (from rich->-r requirements.yml (line 1)) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /home/vagrant/.local/lib/python3.10/site-packages (from rich->-r requirements.yml (line 1)) (2.18.0)
Requirement already satisfied: typing-extensions<5.0,>=4.0.0 in /home/vagrant/.local/lib/python3.10/site-packages (from rich->-r requirements.yml (line 1)) (4.12.2)
Requirement already satisfied: pexpect>=4.5 in /usr/lib/python3/dist-packages (from ansible_runner->-r requirements.yml (line 6)) (4.8.0)
Requirement already satisfied: python-daemon in /home/vagrant/.local/lib/python3.10/site-packages (from ansible_runner->-r requirements.yml (line 6)) (3.1.0)
Requirement already satisfied: requests-ntlm>=1.1.0 in /home/vagrant/.local/lib/python3.10/site-packages (from pywinrm->-r requirements.yml (line 8)) (1.3.0)
Requirement already satisfied: xmltodict in /home/vagrant/.local/lib/python3.10/site-packages (from pywinrm->-r requirements.yml (line 8)) (0.14.2)
Requirement already satisfied: azure-core>=1.31.0 in /home/vagrant/.local/lib/python3.10/site-packages (from azure-identity->-r requirements.yml (line 10)) (1.31.0)
Requirement already satisfied: msal>=1.30.0 in /home/vagrant/.local/lib/python3.10/site-packages (from azure-identity->-r requirements.yml (line 10)) (1.31.0)
Requirement already satisfied: msal-extensions>=1.2.0 in /home/vagrant/.local/lib/python3.10/site-packages (from azure-identity->-r requirements.yml (line 10)) (1.2.0)
Requirement already satisfied: isodate>=0.6.1 in /home/vagrant/.local/lib/python3.10/site-packages (from azure-mgmt-compute->-r requirements.yml (line 11)) (0.7.2)
Requirement already satisfied: azure-common>=1.1 in /home/vagrant/.local/lib/python3.10/site-packages (from azure-mgmt-compute->-r requirements.yml (line 11)) (1.1.28)
Requirement already satisfied: azure-mgmt-core>=1.3.2 in /home/vagrant/.local/lib/python3.10/site-packages (from azure-mgmt-compute->-r requirements.yml (line 11)) (1.4.0)
Requirement already satisfied: botocore<1.36.0,>=1.35.49 in /home/vagrant/.local/lib/python3.10/site-packages (from boto3->-r requirements.yml (line 14)) (1.35.49)
Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in /home/vagrant/.local/lib/python3.10/site-packages (from boto3->-r requirements.yml (line 14)) (1.0.1)
Requirement already satisfied: s3transfer<0.11.0,>=0.10.0 in /home/vagrant/.local/lib/python3.10/site-packages (from boto3->-r requirements.yml (line 14)) (0.10.3)
Requirement already satisfied: six>=1.11.0 in /usr/lib/python3/dist-packages (from azure-core>=1.31.0->azure-identity->-r requirements.yml (line 10)) (1.16.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /home/vagrant/.local/lib/python3.10/site-packages (from botocore<1.36.0,>=1.35.49->boto3->-r requirements.yml (line 14)) (2.9.0.post0)
Requirement already satisfied: urllib3!=2.2.0,<3,>=1.25.4 in /usr/lib/python3/dist-packages (from botocore<1.36.0,>=1.35.49->boto3->-r requirements.yml (line 14)) (1.26.5)
Requirement already satisfied: mdurl~=0.1 in /home/vagrant/.local/lib/python3.10/site-packages (from markdown-it-py>=2.2.0->rich->-r requirements.yml (line 1)) (0.1.2)
Requirement already satisfied: PyJWT<3,>=1.0.0 in /usr/lib/python3/dist-packages (from PyJWT[crypto]<3,>=1.0.0->msal>=1.30.0->azure-identity->-r requirements.yml (line 10)) (2.3.0)
Requirement already satisfied: portalocker<3,>=1.4 in /home/vagrant/.local/lib/python3.10/site-packages (from msal-extensions>=1.2.0->azure-identity->-r requirements.yml (line 10)) (2.10.1)
Requirement already satisfied: pyspnego>=0.4.0 in /home/vagrant/.local/lib/python3.10/site-packages (from requests-ntlm>=1.1.0->pywinrm->-r requirements.yml (line 8)) (0.11.1)
Requirement already satisfied: setuptools>=62.4.0 in /home/vagrant/.local/lib/python3.10/site-packages (from python-daemon->ansible_runner->-r requirements.yml (line 6)) (75.2.0)
Requirement already satisfied: lockfile>=0.10 in /home/vagrant/.local/lib/python3.10/site-packages (from python-daemon->ansible_runner->-r requirements.yml (line 6)) (0.12.2)
Starting galaxy collection install process
Nothing to do. All requested collections are already installed. If you want to reinstall them, consider using `--force`.
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd ~ && mkdir -p ~/GOAD/workspace/3a2bff-goad-virtualbox"
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\instance.json ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key D:\GOAD\workspace\3a2bff-goad-virtualbox\instance.json
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json
instance.json                                                  100%  237    77.2KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd ~ && dos2unix
~/GOAD/workspace/3a2bff-goad-virtualbox/instance.json"
dos2unix: converting file /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/instance.json to Unix format...
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory
inventory                                                      100%  805   262.0KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd ~ && dos2unix ~/GOAD/workspace/3a2bff-goad-virtualbox/inventory"
dos2unix: converting file /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/inventory to Unix format...
Connection to 192.168.56.3 closed.
[*] Launch scp D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory_disable_vagrant ->
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant
[*] CWD: \workspace\3a2bff-goad-virtualbox
[*] Running command : scp -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory_disable_vagrant
vagrant@192.168.56.3:~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant
inventory_disable_vagrant                                      100% 1615   525.7KB/s   00:00
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd ~ && dos2unix
~/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant"
dos2unix: converting file /home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/inventory_disable_vagrant to Unix format...
Connection to 192.168.56.3 closed.

GOAD/virtualbox/vm/192.168.56.X (3a2bff-goad-virtualbox) > ?

*** Manage Lab instance commands ***
status .................................. show current status
start ................................... start lab
stop .................................... stop lab
destroy ................................. destroy lab

*** Manage one vm commands ***
start_vm <vm_name> ...................... start selected virtual machine
stop_vm <vm_name> ....................... stop selected virtual machine
restart_vm <vm_name> .................... restart selected virtual machine
destroy_vm <vm_name> .................... destroy selected virtual machine

*** Extensions ***
list_extensions ......................... list extensions
install_extension <extension> ........... install extension (providing + provisioning)
provision_extension <extension> ......... provision extension (provisioning only)

*** JumpBox ***
prepare_jumpbox ......................... install package on the jumpbox for provisioning
sync_source_jumpbox ..................... sync source of the jumpbox
ssh_jumpbox ............................. connect to jump box with ssh
ssh_jumpbox_proxy <proxy_port> .......... connect to jump box with ssh and start a socks proxy

*** Providing (Vagrant/Terrafom) ***
provide ................................. run only the providing (vagrant/terraform)

*** Provisioning (Ansible) ***
provision <playbook> .................... run specific ansible playbook
provision_lab ........................... run all the current lab ansible playbooks
provision_lab_from <playbook> ........... run all the current lab ansible playbooks from specific
playbook to the end

*** Lab Instances ***
check ................................... check dependencies before creation
install ................................. install the current instance (provide + prepare_jumpbox
+ provision_lab
set_as_default .......................... set instance as default
update_instance_files ................... update lab instance files
disable_vagrant ......................... disable vagrant user
enable_vagrant .......................... enable vagrant user
list .................................... list lab instances
load <instance_id> ...................... load a lab instance

*** Configuration ***
config .................................. show current configuration
unload .................................. unload current instance
delete .................................. delete the currently selected lab instance

GOAD/virtualbox/vm/192.168.56.X (3a2bff-goad-virtualbox) > start
[*] CWD: \workspace\3a2bff-goad-virtualbox\provider
[*] Running command : vagrant.exe up
Bringing machine 'GOAD-DC01' up with 'virtualbox' provider...
Bringing machine 'GOAD-DC02' up with 'virtualbox' provider...
Bringing machine 'GOAD-DC03' up with 'virtualbox' provider...
Bringing machine 'GOAD-SRV02' up with 'virtualbox' provider...
Bringing machine 'GOAD-SRV03' up with 'virtualbox' provider...
Bringing machine 'PROVISIONING' up with 'virtualbox' provider...
==> GOAD-DC01: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-DC01: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> GOAD-DC01: flag to force provisioning. Provisioners marked to run always will still run.
==> GOAD-DC02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-DC02: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> GOAD-DC02: flag to force provisioning. Provisioners marked to run always will still run.
==> GOAD-DC03: Checking if box 'StefanScherer/windows_2016' version '2017.12.14' is up to date...
==> GOAD-DC03: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> GOAD-DC03: flag to force provisioning. Provisioners marked to run always will still run.
==> GOAD-SRV02: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-SRV02: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> GOAD-SRV02: flag to force provisioning. Provisioners marked to run always will still run.
==> GOAD-SRV03: Checking if box 'StefanScherer/windows_2016' version '2019.02.14' is up to date...
==> GOAD-SRV03: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> GOAD-SRV03: flag to force provisioning. Provisioners marked to run always will still run.
==> PROVISIONING: Checking if box 'bento/ubuntu-22.04' version '202407.23.0' is up to date...
==> PROVISIONING: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> PROVISIONING: flag to force provisioning. Provisioners marked to run always will still run.

GOAD/virtualbox/vm/192.168.56.X (3a2bff-goad-virtualbox) > provision
[-] missing playbook argument
[*] provision <playbook>

GOAD/virtualbox/vm/192.168.56.X (3a2bff-goad-virtualbox) > provision playbook
[*] Loading inventory
[+] Lab inventory : D:\GOAD\ad\GOAD\data\inventory file found
[+] Provider inventory : D:\GOAD\workspace\3a2bff-goad-virtualbox\inventory file found
[+] Global inventory : D:\GOAD\globalsettings.ini file found
[*] Run playbook : playbook with inventory file(s) : /home/vagrant/GOAD/ad/GOAD/data/inventory,
/home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/inventory,
/home/vagrant/GOAD/globalsettings.ini
[*] Running command : command
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ &&
/home/vagrant/.local/bin/ansible-playbook -i /home/vagrant/GOAD/ad/GOAD/data/inventory -i
/home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/inventory -i
/home/vagrant/GOAD/globalsettings.ini playbook"
ERROR! the playbook: playbook could not be found
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ &&
/home/vagrant/.local/bin/ansible-playbook -i /home/vagrant/GOAD/ad/GOAD/data/inventory -i
/home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/inventory -i
/home/vagrant/GOAD/globalsettings.ini playbook"
ERROR! the playbook: playbook could not be found
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ &&
/home/vagrant/.local/bin/ansible-playbook -i /home/vagrant/GOAD/ad/GOAD/data/inventory -i
/home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/inventory -i
/home/vagrant/GOAD/globalsettings.ini playbook"
ERROR! the playbook: playbook could not be found
Connection to 192.168.56.3 closed.
[*] CWD:
[*] Running command : ssh -t -o StrictHostKeyChecking=no -i
D:\GOAD\workspace\3a2bff-goad-virtualbox\provider\.vagrant\machines\PROVISIONING\virtualbox\priva
te_key vagrant@192.168.56.3 "cd /home/vagrant/GOAD/ansible/ &&
/home/vagrant/.local/bin/ansible-playbook -i /home/vagrant/GOAD/ad/GOAD/data/inventory -i
/home/vagrant/GOAD/workspace/3a2bff-goad-virtualbox/inventory -i
/home/vagrant/GOAD/globalsettings.ini playbook"
ERROR! the playbook: playbook could not be found
Connection to 192.168.56.3 closed.
[-] 3 fails abort.
[*] Provisioned with playbook in 00:00:01

@Mayfly277
Copy link
Collaborator

almost there, just launch the lab provisioning with provision_lab

@BAMRED
Copy link
Author

BAMRED commented Oct 31, 2024

The provisioning partially works, I can get some workbooks completed on DC03 and SRV03, getting unreachable with the others so I'm going to try again from the beginning, with setting up a DNS server and opening the ports on the PROVISIONING vm as that seemed to be the cause of some issues. I tried the restart_vm command but these did not work on any of the VMs so i had to use stop_vm and start-vm each time, not a major issue but the restart command is listed under the help

@Mayfly277
Copy link
Collaborator

hum ok i have to fix the restart_vm command ^^
are you sure you got enough ram and the hypervisor didn't stop the vms because no more ram available ?

@BAMRED
Copy link
Author

BAMRED commented Nov 6, 2024

So, I have done git pull and tried again with fresh labs.
I have tried GOAD, GOAD-Light and MINILAB.
GOAD: I keep being able to get some (but not all) playbooks on DC03 and SRV03. I can ping the other servers etc but can't run the playbooks as they are unreachable.
MINILAB leads to an error

Create lab with theses settings ? (y/N)y
[*] Create instance folder
[*] Create instance providing files
[*] Instance vagrantfile created : \workspace\486f99-minilab-virtualbox\provider\Vagrantfile
[*] Create lab provisioning file inventory_disable_vagrant
Traceback (most recent call last):
  File "D:\GOAD\goad.py", line 477, in <module>
    goad.cmdloop()
  File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python312\Lib\cmd.py", line 138, in cmdloop
    stop = self.onecmd(line)
           ^^^^^^^^^^^^^^^^^
  File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python312\Lib\cmd.py", line 217, in onecmd
    return func(arg)
           ^^^^^^^^^
  File "D:\GOAD\goad.py", line 67, in do_install
    self.do_create()
  File "D:\GOAD\goad.py", line 336, in do_create
    self.lab_manager.create_instance()
  File "D:\GOAD\goad\lab_manager.py", line 64, in create_instance
    result = instance.create_instance_folder()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\GOAD\goad\instance.py", line 346, in create_instance_folder
    self._create_provisioning_lab_inventory('inventory_disable_vagrant')
  File "D:\GOAD\goad\instance.py", line 269, in _create_provisioning_lab_inventory
    inventory_template = environment.get_template(inventory_file)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\environment.py", line 1013, in get_template
    return self._load_template(name, globals)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\environment.py", line 972, in _load_template
    template = self.loader.load(self, name, self.make_globals(globals))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\loaders.py", line 126, in load
    source, filename, uptodate = self.get_source(environment, name)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\loaders.py", line 207, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: inventory_disable_vagrant

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

No branches or pull requests

2 participants