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_guest] VM won't start with connected Device/Network #41133
Comments
Files identified in the description: If these files are inaccurate, please update the |
@shibumi Thanks for reporting this issue. Could you please paste your esxi version ? |
@Akasurde sure. The vsphere Server version is 6.0.0 |
Can you check the open-vm-tools log file to see what is going on? The module isn't waiting for tools to do customization. We send the entire customization spec with the initial request, VMWare does the waiting. |
@cigamit Here are the logs.. sorry for the screenshots instead of text pastes. But was the easiest way to get the information without having to setup network manually.
I don't understand why this is a problem at all.. shouldn't set the VMWare host the NIC on 'connected'. Why does the VM need to do this via VMWareTools? EDIT: I have tried executing this script manually |
I guess this bug report here is related to this issue: vmware/open-vm-tools#240 |
Note: Connecting the NICs works fine with official vmware-tools. So seems like this is an issue that the open-vm-tools people need to solve. Do we want to leave this issue open for future bug reports in this direction or do we close it? :) |
I would assume close it, since it will still come up via a search. |
Same issue here with Ubuntu 16.04 which is supported by VMWare vSphere 6.5. |
@coom please help reporting it here: vmware/open-vm-tools#240 |
@shibumi I am not sure which image do you use to create VM template ? Now I reproduce this issue as the following steps:
Anything wrong with steps ? Thanks. Best regards |
@ZouYuhua nothing wrong. But as I said: This issue is clearly related to open-vm-tools. |
@shibumi Yes. This issue is related to open-vm-tools. I can reproduce it and the developer will do analysis for it. |
@shibumi |
@coom |
A possible solution might be to ensure the |
Had the same issue with ansible |
@mrmeszaros,thanks for the reply and the workaround info. Thanks. |
I tried every single trick which I found, I spent some hours a the end I fixed the problem using the Vmware tools (and not the open source as recommended) everything works for me and is faster than before.
|
Most people recommend the OS version because you end up updating it more often. Every week when my Servers install the latest patches, they would get the new version automatically. Versus back in the day when I used the VMWare Tools version, and I pretty much never updated them because it took a 1000 clicks in the GUI for all my servers. Of course, in the ideal automated VMWare environment, you shouldn't be using the GUI to update VMWare Tools, you should write a playbook to do it instead also. |
Files identified in the description: If these files are inaccurate, please update the |
Files identified in the description: If these files are incorrect, please update the |
Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.
For further information, please see: |
SUMMARY
I have a Ubuntu 18.04 Template with open-vm-tools version 10.2, perl and python installed. When I clone from this template via ansible without using the
networks
keyword it works like expected and I have a cloned VM with connected Ethernet Device.But when I specify the
networks
keyword in the task every device that get spawned will not get connected on boot. I need to connect it manually.ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Host Running Ansible: Arch Linux
Target Host: VMWare ESXI Hosts with Ubuntu 18.04 Template
STEPS TO REPRODUCE
EXPECTED RESULTS
All added networks should get connected when the VM has booted.
ACTUAL RESULTS
The VM has no all specified network devices, but no device is in the State
connected
and I need to attach them manually to the VM.ansible-playbook -vvv playbooks/vxlan.yml
What I see is that the output in verbose mode says there are no guest tools on the VM. But there are definitly guest tools running. The
open-vm-tools.service
is up and running.. my assumption is that the guest-modules need to long to start and the ansible module doesn't wait so long for setting the OS customization parameters.Here you can see the running Guest Modules:
The text was updated successfully, but these errors were encountered: