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.
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)- A96% (25)
- C4% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.