nerdexam
Broadcom-VMware

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.

Section 2 – Configure and Administer vSphere 6.x Networking

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)
  • A
    81% (35)
  • B
    12% (5)
  • C
    2% (1)
  • D
    5% (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.

AThe fifth virtual machine is currently powered off.Correct

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.

BThe fifth virtual machine has two vnics.

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.

CThe fifth virtual machine has an invalid IP address.

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.

DThe fifth virtual machine has an invalid MAC address.

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

#esxcli network vm list#VM power state#vSwitch#CLI vs GUI discrepancy

Community Discussion

No community discussion yet for this question.

Full 2V0-621 Practice