2V0-622D · Question #33
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, ESXi automatically creates a new swap file alongside the VM configuration file rather than failing the migration.
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 file is 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
(31 responses)- A71% (22)
- B10% (3)
- C16% (5)
- D3% (1)
Why each option
When a VM's swap file is inaccessible to the destination host during vMotion, ESXi automatically creates a new swap file alongside the VM configuration file rather than failing the migration.
If ESXi cannot access the original swap file location on the destination host during vMotion, it falls back to creating a new swap file in the same directory as the virtual machine configuration file (.vmx). This behavior ensures the vMotion operation completes successfully and the VM continues running, avoiding unnecessary migration failures due to swap file path inaccessibility. The new swap file persists until the VM is powered off and the configuration is corrected to point to an accessible shared datastore.
ESXi does not copy the existing swap file to the destination host during vMotion - it instead creates a brand-new swap file at the destination alongside the VM configuration files.
vMotion does not fail when the swap file is inaccessible - ESXi handles this condition gracefully by creating a new swap file at the VM configuration file location on the destination.
ESXi does not replicate or move the swap file to a mutually accessible shared datastore during vMotion - the resolution is a local fallback to the VM configuration file directory.
Concept tested: vMotion behavior with inaccessible virtual machine swap files
Source: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vcenterhost.doc/GUID-E77D3652-8C9D-4B4E-B1A8-C3C3B7EA8B07.html
Topics
Community Discussion
No community discussion yet for this question.