nerdexam
Broadcom-VMware

2V0-622 · Question #254

Which happens if the swap file of a virtual machine is inaccessible to the destination host during a vMotion?

The correct answer is A. The swap file is stored with the virtual machine configuration file. When a VM's swap file is inaccessible to the destination host during vMotion, vSphere automatically stores the swap file alongside the VM configuration file on an accessible datastore.

Section 6 – Administer vSphere 6.5 Availability

Question

Which happens if the swap file of a virtual machine is inaccessible to the destination host during a vMotion?

Options

  • AThe swap file is stored with the virtual machine configuration file.
  • BThe swap fileis copied to the destination host.
  • CThe vMotion will fail.
  • DThe swap file is replicated to a datastore accessible by both hosts.

How the community answered

(26 responses)
  • A
    96% (25)
  • C
    4% (1)

Why each option

When a VM's swap file is inaccessible to the destination host during vMotion, vSphere automatically stores the swap file alongside the VM configuration file on an accessible datastore.

AThe swap file is stored with the virtual machine configuration file.Correct

If the designated swap file location cannot be accessed by the destination ESXi host, vSphere creates a new swap file in the VM's home directory - the same location as the .vmx configuration file - on a datastore that is accessible to the destination host. This behavior allows vMotion to complete successfully without requiring the original swap file to be accessible or transferred.

BThe swap fileis copied to the destination host.

The swap file is not copied from the source to the destination host's local storage during vMotion; a new swap file is instead created at the destination in the VM's home directory on an accessible datastore.

CThe vMotion will fail.

vMotion does not fail when the swap file is inaccessible to the destination host; vSphere handles this scenario automatically by creating a new swap file alongside the VM configuration file.

DThe swap file is replicated to a datastore accessible by both hosts.

vSphere does not replicate the existing swap file to a mutually accessible datastore; it creates a new swap file at the destination in the VM's configuration file directory on any datastore accessible to the destination host.

Concept tested: vMotion behavior when VM swap file is inaccessible

Source: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vcenterhost.doc/GUID-0540DF43-9963-4AF9-A4DB-254414DC00DA.html

Topics

#vMotion#swap file placement#VM migration#storage inaccessibility

Community Discussion

No community discussion yet for this question.

Full 2V0-622 Practice