-
Notifications
You must be signed in to change notification settings - Fork 338
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
VMWare tools sets vm.guest.guestFamily as None for any Windows newer than Windows 7 #75
Comments
From @AlexDaciuk on Jan 13, 2020 19:48 Still not working @Akasurde
|
@AlexDaciuk Thanks for reporting this. GuestFamily is not set by VMware inventory but it is set by VMware tools installed in the guest operating system. We can add a parameter in the module called let me know your views on this. |
Provide option to force upgrade VMware tools in the guest, this useful when the VMware tools are too old and module is unable to detect correct version of guestFamily like in the case of latest Windows. Fixes: ansible-collections#75 Signed-off-by: Abhijeet Kasurde <[email protected]>
resolved_by_pr #76 |
@AlexDaciuk, Could you please check PR #76 and let us know if it works for you? Thanks. |
Hello! Sorry for the late response, I'm not working in that company anymore and I don't have access to a VMWare cluster now But if the problem is only outdated VMWare Tools, a one time force upgrade should fix it, so it looks good to me Cheers |
hello i just tested force_upgrade option in playbook but getting error - name: Upgrade VMWare Tools
vmware_guest_tools_upgrade:
datacenter: "{{ vdi_vm_site }}"
name: '{{ vdi_vm_name }}'
force_upgrade: yes
delegate_to: localhost
register: vm_tool_upg
ignore_errors: yes error is - "msg": "Unsupported parameters for in which version this has been fixed? |
@markatdxb Could you please copy-paste the whole error message? Are you using the patched version of Thanks. |
{ Please advice in which collection version was this fixed? |
From @AlexDaciuk on Sep 02, 2019 17:46
SUMMARY
I'm trying to upgrade VMWare Tools on our Windows guests using vmware_guest_tools_upgrade and it fails with the error
msg: Guest Operating System is other than Linux and Windows.
This just happens with guests with outdated tools because of the way the python code is written
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
inventory file:
OS / ENVIRONMENT
Ansible control node : Arch Linux with latest updates
Managed node: ESXi 6.7.0 with vCenter 6.7.0 on a IBM x3250 M4
STEPS TO REPRODUCE
Use a dynamic VMWare inventory using vmware_vm_inventory as described here
Power on a Windows guest newer than 7 and use vmware_guest_tools_upgrade to upgrade vmtools with:
EXPECTED RESULTS
To get VMTools upgraded in case of outdated guest version or nothing in case of updated version already running
ACTUAL RESULTS
If you edit
ansible/modules/cloud/vmware/vmware_guest_tools_upgrade.py
in line 126, concatenatingvm.guest.guestFamily
to the result mesage you getNone
Copied from original issue: ansible/ansible#61690
The text was updated successfully, but these errors were encountered: