Hello,
I am using Windows with Ubunto 20.04 LTS.
When running "vagrant up goku" I got an error:
fatal: [goku]: FAILED! => {"msg": "winrm or requests is not installed: No module named winrm"}
Then I executed:
>pip install pywinrm
which solved the problem.
But then when running "vagrant provision goku" this error continue to appear.
/mnt/c/capsulecorp-pentest$ vagrant up goku
Bringing machine 'goku' up with 'virtualbox' provider...
==> goku: Checking if box 'royce/capsulecorp-winsrv' version '0.0.5-alpha' is up to date...
==> goku: Clearing any previously set forwarded ports...
==> 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: 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: negotiate
==> goku: Machine booted and ready!
==> goku: Checking for guest additions in VM...
goku: The guest additions on this VM do not match the installed version of
goku: VirtualBox! In most cases this is fine, but in rare cases it can
goku: prevent things such as shared folders from working properly. If you see
goku: shared folder errors, please make sure the guest additions within the
goku: virtual machine match the version of VirtualBox you have installed on
goku: your host and reload your VM.
goku:
goku: Guest Additions Version: 6.0.18
goku: VirtualBox Version: 6.1
==> goku: Configuring and enabling network interfaces...
==> goku: Mounting shared folders...
goku: /vagrant => /mnt/c/capsulecorp-pentest
==> goku: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> goku: flag to force provisioning. Provisioners marked to run always will still run.
avi@DESKTOP-QIFF4AL:/mnt/c/capsulecorp-pentest$ vagrant provision goku
==> goku: Running provisioner: ansible...
Vagrant has automatically selected the compatibility mode '2.0'
according to the Ansible version installed (2.10.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...
/home/avi/.local/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.exceptions import InvalidSignature
PLAY [goku] ********************************************************************
TASK [Gathering Facts] *********************************************************
fatal: [goku]: FAILED! => {"msg": "winrm or requests is not installed: No module named winrm"}
PLAY RECAP *********************************************************************
goku : ok=0 changed=0 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.
I am not sure, but maybe "pywinrm" was installed only on python3.8 while the ansible might works on python2 ?
/mnt/c/capsulecorp-pentest$ pip uninstall pywinrm
Found existing installation: pywinrm 0.4.1
Uninstalling pywinrm-0.4.1:
Would remove:
/home/avi/.local/lib/**python3.8**/site-packages/pywinrm-0.4.1.dist-info/*
/home/avi/.local/lib/**python3.8**/site-packages/winrm/*
Proceed (y/n)?
If this is the problem, how do I fix it, and if not, any other suggestions?
Hello, I am using Windows with Ubunto 20.04 LTS. When running "vagrant up goku" I got an error:
fatal: [goku]: FAILED! => {"msg": "winrm or requests is not installed: No module named winrm"}
Then I executed:>pip install pywinrm
which solved the problem. But then when running "vagrant provision goku" this error continue to appear.I am not sure, but maybe "pywinrm" was installed only on python3.8 while the ansible might works on python2 ?
If this is the problem, how do I fix it, and if not, any other suggestions?
Regards, Avi