# Vmware Update hardware version of an existing vm

**URL:** <https://forum.ansible.com/t/vmware-update-hardware-version-of-an-existing-vm/8809>\
**Category:** Get Help\
**Tags:** vmware, playbook\
**Created:** [September 27, 2024, 9:42am UTC](https://forum.ansible.com/t/vmware-update-hardware-version-of-an-existing-vm/8809 "2024-09-27T09:42:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thel](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@Thel](https://forum.ansible.com/u/Thel)\
**Post date:** [September 27, 2024, 9:42am UTC](https://forum.ansible.com/t/vmware-update-hardware-version-of-an-existing-vm/8809/1 "2024-09-27T09:42:51Z")

</div>

Hello

I’m using collection community.vmware (v4.0.0) to manage VM and I would like to upgrade the hardware version of an existing vm (v11 to v21).

With ansible, i can  
. poweroff the VM  
 i need to upgrade the hardware version  
. poweron the VM

I find this playbook [https://github.com/ansible-collections/community.vmware/blob/main/tests/integration/targets/vmware\_guest/tasks/reconfig\_vm\_to\_latest\_version.yml](https://github.com/ansible-collections/community.vmware/blob/main/tests/integration/targets/vmware_guest/tasks/reconfig_vm_to_latest_version.yml) in which i see a task to upgrade VM to latest version but it does not work

How can i write a task to make a hardware upgrade of an existing VM ?

Thanks

---

<div class="post-metadata">

**Author:** ![bvitnik](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bvitnik/32/4132_2.png) [@bvitnik](https://forum.ansible.com/u/bvitnik)\
**Post date:** [September 27, 2024, 12:36pm UTC](https://forum.ansible.com/t/vmware-update-hardware-version-of-an-existing-vm/8809/2 "2024-09-27T12:36:57Z")

</div>

Hi Thel,

Please post your playbook and error message, if any, or Ansible output. Without this, it’s impossible to tell what is wrong with your playbook or environment.
