Wednesday, February 20, 2008

Expanding a VMWare Virtual Disk

My primary OS is Linux but I have VMWare machines with Windows and other OSes, for testing of tools and softwares.

I keep a basic installation of the Windows OS (XP, Server, etc) in a VMWare machine and keep it updated and patched. Whenever I need to do a software evaluation, I simply use a copy of the basic installation. In this way, I don't spend time re-installing the basic OS for every test.



Today I was in the need to install various softwares which require several GB more than what I have pre-allocated in my basic installations. (I still does not understand what is with so many software coded for Windows the it requires to be installed on "C:". I have always found that so absurd!!! But that is not what I am talking about here.)

So, bottom line, I need to expand the Virtual Disk. After a short search I found that it is actually quite easy. Since I know I will be doing it again in the future I want to have it documented here:
  1. Stop the virtual machine
  2. Identify your virtual disk. Lets call it "mydisk.vmdk"
  3. VMWares have the Virtual Disk manager tool, so lets expand the disk to 20 GB. For that, you will have to do "vmware-vdiskmanager -x 20Gb mydisk.vmdk"
  4. You will see a progress indication showing you that it is doing what you ask.
  5. Once it finish you will need to make the host OS (in this case Windows) to recognize the new capacity of the Virtual Disk
  6. The easiest way to do this is to load the Virtual Disk as a secondary in another Windows VM
  7. Boot the Windows machine a run "diskpart" Windows utility
  8. Here, you can do "list disk" to see the actual disks assigned to your virtual machine
  9. Now identify your new volume "list volume" and select the proper one "select volume=#"
  10. Finally extend it executing the "extend" command
  11. Shutdown the VM and remove the disk.
  12. Boot the VM with the new extended hard disk.
  13. Done.
Following these simple steps you will be able to expand or decrease the size of a virtual hard disk of a VMWare Windows machine. A similar procedure is used with other OS except that you must identify the proper partition manager tool or third party tool.

A more detailed explanation is available here.

9 comments:

  1. Thanks for sharing the method of expanding a VMWare Virtual Disk with your readers.It was much needed as I have been searching the method since last few week but didn't find any authentic one.

    ReplyDelete
  2. Great content! Super high-quality! Keep it up
    business directory

    ReplyDelete
  3. "Welcome to We Buy Houses Miami, the Official Cash Home Buyer of Miami, Florida, and surrounding areas.

    We provide home sellers with a cash option to purchase their property quickly—with NO Repairs, and NO Fees or Commissions.

    Simply go to our website or call us at (305) 704-7174 to get a no-obligation cash home offer sent to you. It’s free and confidential.

    Avoiding foreclosure? Facing divorce? Moving? Upside down in your mortgage? Liens? It doesn’t matter whether you live in it, you’re renting it out, it’s vacant, or not even habitable. We help owners who have inherited an unwanted property, own a vacant house, are behind on payments, owe liens, downsized, and can’t sell… even if the house needs repairs that you can’t pay for… and yes, even if the house is fire damaged or has bad rental tenants.

    Basically, if you have a property and need to sell it… we’d like to make you a fair cash offer and close on it when you’re ready to sell.

    Just contact us today to get started!

    ReplyDelete
  4. I have been using virtual disk for sometime didn't know this was a thing. Thanks for sharing this information.
    buy logo online

    ReplyDelete
  5. I am very happy after visiting your website with very useful information. I am from one of the digital marketing agency... To visit my agency click on link Visitdigitalguru

    ReplyDelete
  6. Thanks for sharing informative content…Find noida software company to know more and Contact us on given no.…

    ReplyDelete
  7. This content material is written very well. Your use of formatting when making your factors makes your observations very clear and clean to apprehend. Thank you.


    law dissertation Writing Service

    ReplyDelete
  8. Hi

    I was recently researching about notary services in Dubai, I was writing and came across this page on your website.

    I think that they would help anyone in the future looking for more information about notary services in Dubai

    My website is providing services about notary in Dubai Notary services Dubai - Certified true copy attestation services Dubai



    Thanks for your time.

    ReplyDelete
  9. This blog is helpful for others as well. Thanks for sharing every single detail that how you are going to Expanding a VMWare Virtual Disk. Now its time to get the services of Custom Soap Boxes, click for more information.

    ReplyDelete