2V0-621 · Question #141
The command esxcli network vm list displays four virtual machines connected to the Production vSwitch. Within the vSphere Web Client, five virtual machines are seen. What explains this behavior?
The correct answer is A. The fifth virtual machine is currently powered off. The esxcli network vm list command only enumerates virtual machines that are actively powered on and have network activity. A powered-off VM has no active network stack, so it is invisible to this command.
Question
The command esxcli network vm list displays four virtual machines connected to the Production vSwitch. Within the vSphere Web Client, five virtual machines are seen. What explains this behavior?
Options
- AThe fifth virtual machine is currently powered off.
- BThe fifth virtual machine has two vnics.
- CThe fifth virtual machine has an invalid IP address.
- DThe fifth virtual machine has an invalid MAC address.
How the community answered
(43 responses)- A81% (35)
- B12% (5)
- C2% (1)
- D5% (2)
Why each option
The esxcli network vm list command only enumerates virtual machines that are actively powered on and have network activity. A powered-off VM has no active network stack, so it is invisible to this command.
The esxcli network vm list command queries the VMkernel for VMs with active, running network interfaces. A powered-off VM has no VMkernel network presence, so it does not appear in the output even though it is registered and visible in the vSphere Web Client inventory.
Having two vNICs would cause a VM to appear twice in the esxcli output, not cause it to be missing; each active vNIC is listed as a separate entry.
An invalid IP address does not affect layer-2 visibility in esxcli network vm list, which operates at the virtual switch port level and does not depend on IP configuration.
An invalid MAC address would still result in the VM appearing in the list because the command enumerates powered-on VMs by their virtual port, not by MAC validity.
Concept tested: esxcli network vm list behavior for powered-off VMs
Source: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-6C1F7BDE-AA5C-432B-8E8C-FBF7D7CDF588.html
Topics
Community Discussion
No community discussion yet for this question.