capsulecorp-pentest
capsulecorp-pentest copied to clipboard
Error vagrant provision goku
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$ vagrant up goku
Bringing machine 'goku' up with 'virtualbox' provider...
==> goku: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> goku: flag to force provisioning. Provisioners marked to run always will still run.
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$ vagrant provision goku
==> goku: Running provisioner: ansible...
Vagrant gathered an unknown Ansible version:
ansible [core 2.12.6]
config file = None
configured module search path = ['/home/eofc/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/eofc/.local/lib/python3.8/site-packages/ansible
ansible collection location = /home/eofc/.ansible/collections:/usr/share/ansible/collections
executable location = /home/eofc/.local/bin/ansible
python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
jinja version = 2.10.1
libyaml = True
and falls back on the compatibility mode '1.8'.
Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode
goku: Running ansible-playbook...
[DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks
instead. This feature will be removed in version 2.16. Deprecation warnings can
be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [goku] ********************************************************************
TASK [Gathering Facts] *********************************************************
fatal: [goku]: UNREACHABLE! => {"changed": false, "msg": "plaintext: HTTPConnectionPool(host='127.0.0.1', port=55985): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3fd891bee0>: Failed to establish a new connection: [Errno 111] Connection refused'))", "unreachable": true}
PLAY RECAP *********************************************************************
goku : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
What does this say?
vagrant --version
eofc@DESKTOP-8C5AIAA:~/ssh$ vagrant --version
Vagrant 2.2.6
I resover this problem using
git pull
vagrant destroy goku
vagrant up goku
vagrant provision goku
Give the above recommendation a try after upgrading to the latest vagrant version 2.2.19
I could not upgrade to version 2.2.19:
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$ sudo apt install --only-upgrade vagrant
Reading package lists... Done
Building dependency tree
Reading state information... Done
vagrant is already the newest version (2.2.6+dfsg-2ubuntu3).
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$ vagrant --version
Vagrant 2.2.6
above recomendations didnt help me:
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$ vagrant destroy goku
goku: Are you sure you want to destroy the 'goku' VM? [y/N] y
==> goku: Forcing shutdown of VM...
==> goku: Destroying VM and associated drives...
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$ vagrant up goku
Bringing machine 'goku' up with 'virtualbox' provider...
==> goku: Running provisioner: ansible...
Vagrant gathered an unknown Ansible version:
ansible [core 2.12.6]
config file = None
configured module search path = ['/home/eofc/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/eofc/.local/lib/python3.8/site-packages/ansible
ansible collection location = /home/eofc/.ansible/collections:/usr/share/ansible/collections
executable location = /home/eofc/.local/bin/ansible
python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
jinja version = 2.10.1
libyaml = True
and falls back on the compatibility mode '1.8'.
Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode
goku: Running ansible-playbook...
[DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks
instead. This feature will be removed in version 2.16. Deprecation warnings can
be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [goku] ********************************************************************
TASK [Gathering Facts] *********************************************************
fatal: [goku]: UNREACHABLE! => {"changed": false, "msg": "plaintext: HTTPConnectionPool(host='127.0.0.1', port=55985): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f42245d5ee0>: Failed to establish a new connection: [Errno 111] Connection refused'))", "unreachable": true}
PLAY RECAP *********************************************************************
goku : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$ vagrant up goku
Bringing machine 'goku' up with 'virtualbox' provider...
==> goku: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> goku: flag to force provisioning. Provisioners marked to run always will still run.
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$ vagrant provision goku
==> goku: Running provisioner: ansible...
Vagrant gathered an unknown Ansible version:
ansible [core 2.12.6]
config file = None
configured module search path = ['/home/eofc/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/eofc/.local/lib/python3.8/site-packages/ansible
ansible collection location = /home/eofc/.ansible/collections:/usr/share/ansible/collections
executable location = /home/eofc/.local/bin/ansible
python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
jinja version = 2.10.1
libyaml = True
and falls back on the compatibility mode '1.8'.
Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode
goku: Running ansible-playbook...
[DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks
instead. This feature will be removed in version 2.16. Deprecation warnings can
be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [goku] ********************************************************************
TASK [Gathering Facts] *********************************************************
fatal: [goku]: UNREACHABLE! => {"changed": false, "msg": "plaintext: HTTPConnectionPool(host='127.0.0.1', port=55985): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8817094ee0>: Failed to establish a new connection: [Errno 111] Connection refused'))", "unreachable": true}
PLAY RECAP *********************************************************************
goku : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
eofc@DESKTOP-8C5AIAA:/mnt/c/capsulecorp-pentest$
"Getting ready" never change:
As soon as i do vagrant up after destroy
/mnt/c/capsulecorp-pentest$ vagrant up goku
Bringing machine 'goku' up with 'virtualbox' provider...
==> goku: Box 'StefanScherer/windows_2019' could not be found. Attempting to find and install...
goku: Box Provider: virtualbox
goku: Box Version: >= 0
==> goku: Loading metadata for box 'StefanScherer/windows_2019'
goku: URL: https://vagrantcloud.com/StefanScherer/windows_2019
==> goku: Adding box 'StefanScherer/windows_2019' (v2021.05.15) for provider: virtualbox
goku: Downloading: https://vagrantcloud.com/StefanScherer/boxes/windows_2019/versions/2021.05.15/providers/virtualbox.box
==> goku: Successfully added box 'StefanScherer/windows_2019' (v2021.05.15) for 'virtualbox'!
==> goku: Importing base box 'StefanScherer/windows_2019'...
==> goku: Matching MAC address for NAT networking...
==> goku: Setting the name of the VM: ccpt_goku
==> goku: Clearing any previously set network interfaces...
==> goku: Preparing network interfaces based on configuration...
goku: Adapter 1: nat
goku: Adapter 2: hostonly
==> goku: Forwarding ports...
goku: 3389 (guest) => 3389 (host) (adapter 1)
goku: 5985 (guest) => 55985 (host) (adapter 1)
goku: 5986 (guest) => 55986 (host) (adapter 1)
goku: 22 (guest) => 2222 (host) (adapter 1)
==> goku: Running 'pre-boot' VM customizations...
==> goku: Booting VM...
==> goku: Waiting for machine to boot. This may take a few minutes...
goku: WinRM address: 127.0.0.1:55985
goku: WinRM username: vagrant
goku: WinRM execution_time_limit: PT2H
goku: WinRM transport: plaintext
==> goku: Machine booted and ready!
==> goku: Checking for guest additions in VM...
==> goku: Setting hostname...
==> goku: Waiting for machine to reboot...
==> goku: Configuring and enabling network interfaces...
==> goku: Running provisioner: ansible...
goku: Running ansible-playbook...
[DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks
instead. This feature will be removed in version 2.16. Deprecation warnings can
be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [goku] ********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [goku]
TASK [promotedc : Enable Remote Desktop] ***************************************
changed: [goku]
TASK [promotedc : Make sure admin user is set] *********************************
changed: [goku]
TASK [promotedc : Install Active Directory Services] ***************************
changed: [goku]
TASK [promotedc : Ensure the domain exists] ************************************
changed: [goku]
TASK [promotedc : Reboot server after domain install] **************************
changed: [goku]
TASK [promotedc : Wait for domain controller to be ready] **********************
changed: [goku]
TASK [promotedc : Promote goku to domain controller] ***************************
ok: [goku]
TASK [promotedc : Reboot after dc promotion] ***********************************
skipping: [goku]
TASK [promotedc : Set DA user account information] *****************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: at Microsoft.ActiveDirectory.Management.Commands.ADCmdletBase`1.ProcessRecord()
fatal: [goku]: FAILED! => {"changed": false, "msg": "Unhandled exception while executing module: Unable to find a default server with Active Directory Web Services running."}
PLAY RECAP *********************************************************************
goku : ok=8 changed=6 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
I does vagrant ...
provision
/mnt/c/capsulecorp-pentest$ vagrant provision goku
==> goku: Running provisioner: ansible...
goku: Running ansible-playbook...
[DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks
instead. This feature will be removed in version 2.16. Deprecation warnings can
be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [goku] ********************************************************************
TASK [Gathering Facts] *********************************************************
[WARNING]: Error during machine sid retrieval: The network address is invalid.
ok: [goku]
TASK [promotedc : Enable Remote Desktop] ***************************************
changed: [goku]
TASK [promotedc : Make sure admin user is set] *********************************
fatal: [goku]: FAILED! => {"changed": true, "msg": "Failed to remove Domain Users: Exception calling \"Remove\" with \"1\" argument(s): \"This operation is not allowed on this special group.\r\n\""}
PLAY RECAP *********************************************************************
goku : ok=2 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
vagrant prevision goku --debug
...
...
INFO interface: Machine: error-exit ["VagrantPlugins::Ansible::Errors::AnsibleCommandFailed", "Ansible failed to complete successfully. Any error output should be\nvisible above. Please fix these errors and try again."]
TASK [promotedc : Make sure admin user is set] *********************************
fatal: [goku]: FAILED! => {"changed": false, "msg": "Failed to remove Domain Users: Exception calling \"Remove\" with \"1\" argument(s): \"This operation is not allowed on this special group.\r\n\""}
@neto1920 any solution with "Failed to remove Domain Users: Exception calling \"Remove\" with \"1\" argument(s): \"This operation is not allowed on this special group.\r\n\"
?
@neto1920 any solution with
"Failed to remove Domain Users: Exception calling \"Remove\" with \"1\" argument(s): \"This operation is not allowed on this special group.\r\n\"
?
I'm waiting for a solution. All time I must do vagrant destroy Goku
and vagrant up Goku
. When I use again vagrant up goku
return this error.
This is CapsuleCorp garbage ... O my God... Wasted 2 days of my life trying to get this crap working. What a disappointment.