VMware Cloud Community
zeml
Contributor
Contributor

Storing swap files in different location with VMs

Hi, guys!

I wanna store swap files in shared storege.

I set this setting in host settings. Then make vMotion of VM to another host. Swap file change its location to shared storage but its capacity became equal ZERO KB...

No reboots, no power-off power-on operations of VM help...

Any ideas why this file don't have the size like RAM capacity??

Thanks

Reply
0 Kudos
3 Replies
Texiwill
Leadership
Leadership

Hello,

Moved to the Virtual Machine and Guest OS forum... You can do this per VM but it still requires a restart of the VM to make happen. I personally would make the change then on the next patch/update of the VM ensure the restart happens. Note this is different than a reboot.


Best regards,
Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009, 2010

Now Available: 'VMware vSphere(TM) and Virtual Infrastructure Security'[/url]

Also available 'VMWare ESX Server in the Enterprise'[/url]

Blogging: The Virtualization Practice[/url]|Blue Gears[/url]|TechTarget[/url]|Network World[/url]

Podcast: Virtualization Security Round Table Podcast[/url]|Twitter: Texiwll[/url]

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
Reply
0 Kudos
zeml
Contributor
Contributor

If I have hundreds of VMs? I dont want to edit settings of each VM. I edit just a host setting and it should be enough.

I restarted my VMs several times - but no luck....swap files are still = 0 kb

Reply
0 Kudos
Texiwill
Leadership
Leadership

Hello,

Restart or a Reset not a reboot, correct? What happens with a complete power down/power up?

The Host setting affects HA, etc. and can be used as well... One way that may work is to actually do a SVMotion to move the VM from one LUN to another. The .vswp file may end up in the correct location. I have never tried this.

Some things are still per VM not per Host....

Do you have reservations in use for Memory? If you fully reserve the memory the .vswp file can be 0 bytes as it will never use it.


Best regards,
Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009, 2010

Now Available: 'VMware vSphere(TM) and Virtual Infrastructure Security'[/url]

Also available 'VMWare ESX Server in the Enterprise'[/url]

Blogging: The Virtualization Practice[/url]|Blue Gears[/url]|TechTarget[/url]|Network World[/url]

Podcast: Virtualization Security Round Table Podcast[/url]|Twitter: Texiwll[/url]

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
Reply
0 Kudos