troubleshooting Question

How to shrink a vmare ESXI machine vmdk file

Avatar of bobtreu
bobtreuFlag for United States of America asked on
LinuxVMware
9 Comments5 Solutions4988 ViewsLast Modified:
I am new to using ESXI.   I have a virtual machine that has a vmdk file that is 30 gigs, yet the machine itself is only 20 gigs.  Of the 20 gigs, I am using only 14Gigs.

I want to be able to create a new vm that uses only 15 or 20 gigs of disk, and import this one, or shrink the vmdk file to the 20 gig size it should be.


[root@vs5 ~]# df -h
  Filesystem            Size  Used Avail Use% Mounted on
  /dev/sda3              19G   14G  3.9G  78% /
  /dev/sda1             896M   23M  828M   3% /boot
  none                  1.1G     0  1.1G   0% /dev/shm

I am comfortable, but not expert, at working from the "unsupported" virtual host command prompt.

Can someone tell me what to do?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 5 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 5 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros