praveshupadhyay
Contributor
Contributor

How to provide RAM from another Datastore....?

Dear All,

When I try to provide the RAM to my Linux OS, It creates an equivalent file of size as the RAM, in the Data Store where vm's folder is located. Can I Provide RAM from some other Data Store?

Thanks to every one...

Regards

Pravesh   

0 Kudos
5 Replies
arturka
Expert
Expert

Hi

Dear All,

When I try to provide the RAM to my Linux OS, It creates an equivalent file of size as the RAM, in the Data Store where vm's folder is located.

The vswp file will be always created  in a folder where vmx file is located.

Can I Provide RAM from some other Data Store?

Could you clarify question, please ?

VCDX77 My blog - http://vmwaremine.com
0 Kudos
a_p_
Leadership
Leadership

You can define another datastore/location for snapshots and the swapfile by adding "workingDir=..:" to the VM's configuration (.vmx) file. see http://kb.vmware.com/kb/1002929

If you are running a single host and have sufficient free physical memory/RAM you can also set the memory reservation in the VM's properties to the amount of the configured RAM. The VM' swap file size equals the configured memory minus reserved memory.

André

0 Kudos
arturka
Expert
Expert

André Pett wrote:

You can define another datastore/location for snapshots and the swapfile by adding "workingDir=..:" to the VM's configuration (.vmx) file. see http://kb.vmware.com/kb/1002929

thanks Andre, I didn't know those options

VCDX77 My blog - http://vmwaremine.com
0 Kudos
Satyavmware
VMware Employee
VMware Employee

Can you find all the different methods to configure your VM swap/RAM from another Datastore @ http://kb.vmware.com/kb/1004082 .

~Satya

"Award points if the answer Helps you"

0 Kudos
S_Grimbuhler
Enthusiast
Enthusiast

HI

just to clarify: the vswp is not used as RAM while the VMkernel has enough physical RAM. This file is created at VM startup, but it's used by the kernek to swap the VM memory if : 1) physical ram is scarce 2) balloon driver didn't retrive enough VM RAM (or is not installed).

But you can :

- move the file for a particular VM (edit settings of VM - Options - swapfile location) this is better than changing all the working directory, because working directory is used by snapshot too.

- move all vswp files for a particular ESX (configuration - virtual machine swapfile location) be carefull, VMotion can take longer because having to move the vswp according this parameter.

- move all vswp files at the Cluster level (edit settings - swapfile location)

hope it helps.

Stéphane Grimbuhler

Senior Virtualization & Storage consultant (VCP / VCAP-DCA)

VMware Instructor (VCI)

My Blog : www.virtualgeek.ch

Grimbuhler Stéphane (VCP, VCAP-DCA, VCI) www.virtualgeek.ch (My virtualization blog)
0 Kudos