ESX Swap File Size Best Practice

VMware SWAP FileESXi Swap File & VMFS Partitions (Revised on 5-18-12)

Due to the changes with ESXi 5.0, please see the following links at VMware for current specifications on partitioning new installations of ESXi 5.0, or when upgrading to ESXi 5.0 from another version of ESXi.

Another useful VMinstall post on the SWAP file topic can be found at: VMware SWAP File Best Practice

Related ESXi Partition Sizing Post:

I also found a great post on VirtuallyGhetto where William breaks down how to manually create VMFS 5 partition in ESXi 5. His post has step by step instructions and great screen shots. Read more…



Revised on 1-3-09:

The original post was only for ESX 3.0.x. VMware has redesigned the volume structure for ESX 3.5.x to include the larger volumes. The large SWAP volume is only standard on clean installs of 3.5.x, upgrades of  previous versions will have the smaller volumes. Best practice for upgrading ESX is to do a clean install to remove old version limitations.

Then when running the installation make the following changes and additons to the default volumes:

  • /boot     |  ext3  |  250 MB
  • /swap     | swap  | 2000 MB (largest accessible size) Once this is changed you must increase service console memory in VirtualCenter 2:1 (swap:ram)
  • /               | ext3  | 5120 MB
  • /var        | ext3  | 1024 MB (core files)
  • /var/log | ext 3  | 1024 MB  (logfiles)
  • /tmp       | ext3   | 1024 MB (where updates get downloaded to)
  • /opt        | ext3  | 2048 MB  (where HA log go)
  • / home  | ext3 |  1024 MB  (user files)


ESX Custom Partition Sizes (original post)

Do a custom installation of ESX and make your swap partition 1024 MB instead of the default 542 MB. Later you will need the room when you have to increase your service console memory from 272 MB to 512 (800 MB Max) to keep your systems from crashing when you access them from within a service console window.

Cool Bonus Video by Eric Sloof: Configure ESXi Host Swapping to a Solid-State Disk


Please share your expertise on this topic with us…


WAIT! Before You Go... Join Other Go-Getters

Enter your name & email address below to get started.

5 Responses to “ESX Swap File Size Best Practice”
  1. Roffarrolve
  2. Eugene

We're listening. Go ahead and share your ideas?

vSphere 6
8 Updates That Make vSphere 6 Better – Keith Barker
25 VMware Interview Questions: Tough & Technical (Download)
VMware jobs in Phoenix
VMware Jobs in Phoenix Arizona (Comparing Opportunities)
DevOps training
10 Reasons VMware Admins Should Boost OpenStack Skills
DevOps Tools
DevOps Toolchain: Download 3 Free Tools Used By Pros (Ansible, Git, Jenkins)
MSDevOps Guide
Microsoft DevOps: 25+ Power-Packed Windows SysAdmin Skills (NEW Guide!)
continuous integration tools
DevOps Training Courses That Will Give You The Edge (Perfect For Beginners Who Want Skills That Are Noticed By Google & Facebook…)
Why DevOps Fails: How To Get Back On Track
Why DevOps Fails: How To Get Back On Track
Click here to learn how to Optimize WordPress Speed
WordPress Speed Optimization: Part 4 – VPS Case Study To Make Rank Higher In Google Through Faster Hosting & High Availability @ Lower Cost
Best Hosting for WordPress
Case Study: Best VPS For Easy WordPress Migration
cloudways review updated
Cloudways Review: 12 Pros & Cons From My Deep Dive Testing (VPS Series: Part 2)
ServerPilot Review: Installing WordPress On DigitalOcean (VPS Series: Part 1)
Storage Engineer Skills
Why Storage Engineer Skills Are HOT! (Can You Say Big Data?)
Rise of the Robots
I’m Amazed After Reading Rise of the Robots – Best Jobs In 2017 (You won’t Guess what’s going on!)
top virtual reality jobs
30+ Awesome Virtual Reality Jobs That Take You From Boring To Amazing! (Must Read…)
Thinking Like Seth Godin
How To STOP A 300% Salary Loss Because YOU Think Like A SysAdmin: Start Thinking Like Seth Godin (Read Now!)
3 Open Source Storage Software Alternatives For Beginners
shades of devops
Free DevOps eBook Project (Read It Now!)
How to install Genymotion
How To Install Genymotion for Beginners (Includes Google Play)
20 Questions VMware Newbies Want Answered (Free Career Guide)