VMware: Add second disk to a Windows virtual machine

If make use of virtual machines as much as I do, then you will be in need of more storage space and at the same time running out of space. One way to expand the storage capacity of a virtual machine is to add a second virtual disk.

For this tutorial I will be adding a 50GB virtual hard disk to a Windows Server 2003 virtual machine. The instructions should apply to all versions of VMware Workstations and VMware Player, the instructions will also work with all versions of Windows.

ADD THE SECOND DISK

Start VMware Workstation and select the virtual machine you wish to add the second disk. Click on Edit virtual machine settings.


Click on image to enlarge

A new window will open. Click on Add button at the bottom.


Click on image to enlarge

Now the Add Hardware Wizard window will present you with several options. Click on Hard Disk and then click on Next.

vmware_3

Select Create a new virtual disk and then on Next.

vmware_4

Usually, VMware Workstation will suggest a type of virtual disk. In this case the suggested type is SCSI (Recommended) and click on Next.

vmware_5

Choose the size of the virtual disk you wish to create in GB. My preference is to choose to Store virtual disk as a single file and click on Next.

vmware_6

Now just tell it where to store the new disk file and click on Finish. I would recommend going with the default, keep all files in the same place.

vmware_7

Again you are presented with an overview of the system configuration. Notice how the new second disk, click on Save to preserve the changes.


Click on image to enlarge

INITIALIZE THE NEW DISK

If you boot the virtual machine the new virtual disk will not appear under windows. You have to make use of a Windows utility called compmgmt.msc which will allow us to manage(initialize, format) the new disk.

You will need administrative privileges

Click on Start > Run and type compmgmt.msc and then hit OK.

This will bring a new window, click on Next to continue.

win

Here you are being asked which disk you want to initialize. The C disk is know as disk 0, using logic we know that our new disk will be known as disk 1. Check Disk 1 and click on Next

win_2

Select the disk you want to convert. Of course, we want to convert Disk 1. Check on Disk 1 and click on Next.

win_3

Now the wizard is giving you an overview of whats about to be done to the disk. If you are OK with the changes click Finish.

win_4

We still have some work to do before we can use that new disk. Now right click on the unallocated volume(Disk 1) and select New volume….

win_5

Click Next on the New Volume Wizard.

win_6

Select the volume type. In this case Simple and click on Next.

win_7

In this screen you are being asked to select the disk and disk size. I want to use all of the available space, just click on Next to continue.

win_8

Just accept the default disk letter and click on Next.

win_10

Now this is important. You are being asked whether you want to format the disk with NTFS and the volume label. Don’t be lazy like me, give the Volume Label a proper name. Then just hit Next.

win_9

Again you are being presented with an overview of whats about to be done with the disk. If you agree, click on Finish.

win_11

The new disk will now be formatted, allow for some time.

win_12

After the formatting is done you can close the window and go to Start > My Computer and you should be able to see the new disk with the assigned letter E.

win_13

Thank you for reading my tutorial, feel free to comment.


Updated on 11/14/2010 by L.Ventura

43 Responses to “VMware: Add second disk to a Windows virtual machine”

  1. sridhar says:

    This article was clear in telling how to add a new partition to my VM.

  2. zig says:

    Thanks! This is very helpful.

  3. Rahail says:

    Thanks a million. you know I deleted my windows server 2008 one million times to add a virtual disk to configure backup… I didn’t knew I had to add a hard disk using the windows quota management.. Thanks a lot for this guide. you rock

  4. Nithya says:

    Good article!Thanks

  5. Romita says:

    Thanks for the tutorial, works perfect dude :D

  6. Daniel Kim says:

    There is also a quick/dirty way to do this by editing the .vmx and .vmdk files of your virtual machine. The virtualmachine.vmx file is plain text, and can be edited using Notepad or Wordpad (It displays badly in Notepad, possibly because it uses linefeeds instead of CR/LF at the end of lines. Open once with Wordpad and save it, and it will display fine in Notepad).

    Your disk image files are referenced in the lines that refer to “IDE0:0″ or “SCSI0:0″. Copy these lines and change 0:0 to 0:1 to refer to a second drive. Also change the name of the drivename.vmdk file that holds the disk image to refer to a different image file.

    If you have a drivename.vmdk image file, you can copy it with a different filename, creating a new drive image (including all the data that was there) to match your new .vmx entry. Next, edit the .vmdk file with Wordpad. The file’s header contains plain text data about the disk image and its architecture. Just change the filename reference to match the new name of the .vmdk file.

    Now your virtual machine will think it has a new drive connected to it. You may still have to use Windows Disk Management to re-format the new drive.

    So, a bit roundabout and unnecessary, but it does teach alot about how VMware handles its configurations.

  7. Tony Hadley says:

    Thanks for the post. Very clear and detailed instructions. You saved me a lot of time.

  8. Jor-el Schellingerhoudt says:

    Finallly i understand how to add secondary disk to vmware Thank you!

  9. Thiru says:

    Thank you very much. Its really very helpful topic.

  10. kayode says:

    thank you very much. at last i understand how to add second disk to vmware.

  11. rhyno says:

    Nice, very informative. Thank you

  12. Username * Edited says:

    thank you!
    it’s help me!

  13. EM says:

    The article was very clear and applying the steps was a piece of cake

  14. Robert says:

    I followed your instructions but I end up with a drive that is unavailable in WS2003. The drive letter shows up but it shows no size. When I try to open/explore I get “H: refers to a location that is unavailable. …” I have tried several other configurations and cannot get the disk to be usable. Any thoughts?

  15. chandra says:

    thank you…save me ton of time…

  16. Claudia Milena says:

    Buenos Dias:
    Solicito le favor me indiques en que lugar pudiera descargar una maquina virtual de linux para ejecutarla en VMware.
    Mil gracias por la ayuda que me puedas brindar.
    Claudia Milena

  17. twiTiger says:

    Thanks a lot! That was very helpful.

  18. Eric says:

    Ahh the joy of finding a clear concise walkthrough with screenshots. A rare gem amonst so many partial and poorly explained forum comments. Thanks so much for posting for the good of al VMware humanity!

  19. Sanjay says:

    Hi,i have installed windows server 2k3 in a disk space of 150GB,when the machine installed it makes a single drive itself,but i want a 100 GB drive on the same,so pls help me how to make a partation of 100 GB from the 150 GB drive.

    Many thanx in advance

    Sanjay

  20. Aneesh says:

    Thankyou very much for this information … it was very helpful and easy to follow.

  21. Sunil says:

    It’s helpful info.

  22. Dilip says:

    Nice tip and thanks for the screenshot. It helped me! Cheers.

  23. Thangam says:

    Its really very helpful topic,Thanks

  24. miniksharp says:

    Other than add more virtual disks, we can also increase existing VMware virtual disk size for capacity expansion.

    http://www.partition-magic.org/vmware/increase-disk-size-vmware.html

  25. LC says:

    Thanks a lot. It is very clear and helpful information.

  26. Great tutorial. New to VMWare and this was just what I needed. Thanks!

  27. shiva says:

    It’s very clear and worked for me

  28. Thanks.
    That was an excellent and easy to follow explanation.
    I appreciate that.
    Steph

  29. Gregory Boon says:

    Thanks! After finding all the posts about altering the vmx file and that failing, you let me know to use the correct tool and let me get the job done.

    Diskmgtmt.msc is a shortcut to the option in compmgmt too.

  30. Joe says:

    I found this helpful – years after you wrote it.

  31. shilpa says:

    Thnaku so much..

  32. aiman says:

    Great way it’s done the job i need
    thanks ^^

  33. Ryde27 says:

    Hello

    I have successfully created a new Hard Disk in the Virtual machine settings. But under the Disk Managerment It didnt launch the ” Initialize and Convert Disk Wizard ” which the unallocated new disk is not seen in the disk management. does anyone has an idea how can I resolved this?

    Thanks

  34. Raviraj says:

    Superb…it helps a lot

  35. yogesh says:

    thanks .very helpful

  36. sanjay mondal says:

    yaa this is to good thank you very much

  37. Ancient Flavor says:

    Great…. Thanks.

  38. GiGi says:

    Thanks! It worked.

  39. Sammy says:

    Thanks big !

  40. haythem says:

    thanks

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>