Windows

How to Extend VMware Windows 7 virtual disk

How to Extend VMware Windows 7 virtual disk

If you have ever spun up a Windows 7 workstation in VMware and get everything loaded and start using it only to find that you didn’t provision enough storage up front, you may be thinking you will need to delete the virtual disk, create a new one, reload Windows, and then reload all other applications, right? ย Not so fast! ย We can actually do this using a couple of tools. ย One is already built into VMware. ย There are two steps to this. ย You first have to resize the actual virtual disk to include the new size that you are needing. ย Next, we have to actually extend our Windows partition to include the new size.

Think about it this way – you have to enlarge the container first, and then we can increase the size of what we need in there. ย So the first step, increasing that container size, is what we do in VMware.

  • Make sure the VM is powered off
  • Make sure you don’t have any snapshots as you can’t extend the disk with snapshots
  • Edit the settings of your virtual machine and then go to the properties of the Hard Disk
The shot below is afterย we increased the disk….up to 50GB

gpart10

Taking a look above, you can change the size of the disk by simply changing the “Provisioned size”. ย That is the easy or least time consuming piece. ย We now need to “extend” the Windows partition so that it actually sees the extra space. ย There are a number of utilities that you can use to do this. ย However, we use a SystemRescueCD which already has all the tools you will need to manage your partitions including one called GPART. ย Simply download their ISO and burn this to a disk.

Once you get the disk burned and boot from the rescue CD, launch GPART and take a look at your partitions.

gpart8

After booting….on some systems you will come to a terminal screen in which you will need to type the startxย command to boot the GUI

gpart9

After booting into the linux GUI, navigate to System >> GParted

gpart11

 

Navigate to ย See below, we have the unallocated space that is available.

gpart1

Select the partition you want to extend and then right click and select Resize

gpart2

Type in the amount of space you want to add in the New size (MiB) ย Take a look just above the fields

gpart3

 

gpart4

 

gpart5

 

gpart6

 

gpart7

 

After the above operation completes, Windows will be extended to fit the entire area of your disk including the extra size that came from extending the virtual disk.

 

 

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.