You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a new VM with a network name that exists on a dvswitch as well as somewhere else (we only tested directly at the root node), the VM will always start with a disconnected NIC that is attached to the network that exists in the root of the tree. Reconnecting the NIC usually fixes the issue. Reconnecting via ansible did not work, though this information is a few months old. This behavior is already reported in the discussions for #1991
ISSUE TYPE
Bug Report
COMPONENT NAME
community.vmware.vmware_guest
ANSIBLE VERSION
Running in a ansible_runner docker environment. 2.17.3
Debian Bookworm, up to date. Running in ansible-runner as a docker container based on the debian bookworm docker image.
STEPS TO REPRODUCE
# have virtual center with a network having the same name at a standalone host and also defined on a dvswitch.
- name: "Create VM"
community.vmware.vmware_guest:
hostname: "..."
username: "..."
password: "..."
datacenter: "..."
folder: "..."
resource_pool: "..."
name: "{{ hostname }}"
state: poweredoff
guest_id: "..."
cluster: "..."
disk: "{{ ... }}"
hardware:
hotadd_cpu: true
hotadd_memory: true
memory_mb: "..."
num_cpus: "..."
num_cpu_cores_per_socket: "..."
scsi: paravirtual
version: latest
boot_firmware: efi
networks:
- name: "vmnet{{ int_vlan }}"
dvswitch_name: "{{ str_vc_dvswitch_name }}"
device_type: vmxnet3
connected: true
start_connected: true
EXPECTED RESULTS
The VM is connected to vmnet{{ int_vlan}} that exists on dvswitch str_vc_dvswitch_name.
ACTUAL RESULTS
The VM is not connected to any network. VM workstation says the nic "lives" on the root vmnet instead of the dvswitch vmnet.
Connecting the VM manually via VMWare Workstation or the WebGUI works. Using an ansible task to connect the NIC to the fails or at least failed 3 months ago. I sadly do not have any output for this and cannot test it right now.
The text was updated successfully, but these errors were encountered:
SUMMARY
Creating a new VM with a network name that exists on a dvswitch as well as somewhere else (we only tested directly at the root node), the VM will always start with a disconnected NIC that is attached to the network that exists in the root of the tree. Reconnecting the NIC usually fixes the issue. Reconnecting via ansible did not work, though this information is a few months old. This behavior is already reported in the discussions for #1991
ISSUE TYPE
COMPONENT NAME
community.vmware.vmware_guest
ANSIBLE VERSION
Running in a ansible_runner docker environment.
2.17.3
COLLECTION VERSION
5.2.0
CONFIGURATION
OS / ENVIRONMENT
Debian Bookworm, up to date. Running in ansible-runner as a docker container based on the debian bookworm docker image.
STEPS TO REPRODUCE
EXPECTED RESULTS
The VM is connected to
vmnet{{ int_vlan}}
that exists on dvswitchstr_vc_dvswitch_name
.ACTUAL RESULTS
The VM is not connected to any network. VM workstation says the nic "lives" on the root vmnet instead of the dvswitch vmnet.
Connecting the VM manually via VMWare Workstation or the WebGUI works. Using an ansible task to connect the NIC to the fails or at least failed 3 months ago. I sadly do not have any output for this and cannot test it right now.
The text was updated successfully, but these errors were encountered: