2V0-622D · Question #93
An administrator is attempting to power on a virtual machine with 32GB of memory. The operation fails with the following error: - Could not power on VM : No space left on device - Checking the space o
The correct answer is A. Set a 2GB memory reservation on the VM.. The power-on failure occurs because ESXi cannot create the required VM swap file on the datastore; setting a memory reservation reduces the swap file size to fit within the available free space.
Question
An administrator is attempting to power on a virtual machine with 32GB of memory. The operation fails with the following error:
- Could not power on VM : No space left on device
- Checking the space on the virtual machine's datastore, there is 30GB
free. Which action would allow the VM to power on?
Options
- ASet a 2GB memory reservation on the VM.
- BMount the virtual disk from the affected VM on to another virtual machine and free up space from
- CEnable vSphere HD admission control on the cluster in which the VM resides.
- DSet a 2GB memory limit on the VM.
How the community answered
(15 responses)- A80% (12)
- B13% (2)
- C7% (1)
Why each option
The power-on failure occurs because ESXi cannot create the required VM swap file on the datastore; setting a memory reservation reduces the swap file size to fit within the available free space.
When a VM powers on, ESXi creates a .vswp swap file sized at (configured memory - memory reservation); with 32 GB RAM and zero reservation, a 32 GB swap file is required but only 30 GB is free. Setting a 2 GB reservation reduces the required swap file to 30 GB, exactly matching the available space and allowing the VM to power on successfully.
Mounting the vmdk on another VM and freeing space on that VM's files would not increase the free space on the original datastore where the swap file needs to be created.
vSphere HA admission control manages cluster-level failover capacity reservations and has no effect on the per-VM swap file that must be created at power-on time.
A memory limit caps runtime memory consumption but does not reduce the size of the swap file that ESXi must allocate at power-on, so the 'no space left on device' error would persist.
Concept tested: VM memory reservation effect on swap file sizing at power-on
Source: https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-6DC4A7E4-8973-4DD0-B44B-74B79B9DC4AC.html
Topics
Community Discussion
No community discussion yet for this question.