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

VMware: Fix network condition in DHCP mode in debian 9 template #54170

wants to merge 1 commit into
base: devel


None yet
3 participants
Copy link

Dewotine commented Mar 21, 2019


In, in the "deploy_vm" method, the network parameters of the VM is checked in order to launch or not the VMWare OS customization. When we deploy a Linux Debian9 from a template, VMware tries to launch the customization and fails. We get the following error message:

TASK [VMWARE_GUEST | Create VM xxx on vcenter] (Mar 13, 2019 10:32:57) ***************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {
    "changed": false, 
    "msg": "Failed to create a virtual machine : Customization of the guest operating system 'debian7_64Guest' is not supported in this configuration. Microsoft Vista (TM) and Linux guests with Logical Volume Manager are supported only for recent ESX host and VMware Tools versions. Refer to vCenter documentation for supported configurations."

The OS customization is triggered because in the network parameter of the VM, we use 'dhcp'.
I suggest to ignore the customization when the network type is DHCP

  • Bugfix Pull Request



vcenter: 6.0
vmware ESX 5.5
ansible: 2.7.8

In our playbook, we only set a name for the 'networks' parameter of the vmware guest module.
According to documentation the default value attributed to the type is 'dhcp'.
We are trying to deploy a debian 9 VM through a VMware template

Cedric Bleschet

This comment has been minimized.


This comment has been minimized.

Copy link

ansibot commented Mar 21, 2019

@Dewotine, just so you are aware we have a dedicated Working Group for vmware.
You can find other people interested in this in #ansible-vmware on Freenode IRC
For more information about communities, meetings and agendas see

click here for bot help

@Akasurde Akasurde changed the title vmguest: "Fix network condition in dhcp mode" VMware: Fix network condition in DHCP mode in debian 9 template Mar 25, 2019

@Akasurde Akasurde removed the needs_triage label Mar 25, 2019


This comment has been minimized.

Copy link

Akasurde commented Mar 25, 2019

@Dewotine Thanks for the PR. I will test this change in my environment and comment. Thanks.

@ansibot ansibot added the stale_ci label Apr 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.