212 comments on “Adding a new disk to a VMWare Virtual Machine in Linux

  1. Dude, Matt, thanks so much! Fantastic tutorial, great screen shot help, breaking down the commands so that I could understand exactly what is happening and why is so helpful!

  2. I stumbled on this while searching for “adding a second virtual drive to VMWare machine”. I am using VMWare player, and set up a Windows XP virtual machine using EasyVMX.com (thanks, EasyVMX!).

    I decided I wanted more disk space, and so I looked at the .vmx file to see how disk drives are defined.

    They seem to be identified by the *.vmdk filename. I copied the *.vmdk files from the virtual machine files that were produced by EasyVMX, from before I installed Windows on the virtual machine, and renamed them VMDK2*.vmdk

    I then edited the VMDK2.vmdk file, which is a plain text definition file, and changed all references to the original file names to the new one.

    I backed up my VM’s *.vmx file, then edited it to replicate the IDE0:0 section, except that I changed the reference to IDE0:1, and changed the .vmdk filename references to the VMDK2.vmdk filename references

    Then, I crossed my fingers and ran the VMX.

    Windows opened fine, and my original stuff is still there, but no second hard drive showed up. I realized that I needed to use Windows Disk Management to initialize the disk. Sure enough, it is listed as an unallocated volume or some such obscure name. I had Windows initialize it, created a partition and formatted it. Now it shows up fine.

    So, no need for VMWare Server to do this, just some judicious text editing.

  3. Thanks so much! 😀 Great tutorial!
    Regards from Poland

  4. HI
    Could somebody explain me ideal way of installing Linux on Virtual Machine Workstation 6.

    I will be installing Oracle Applications on Linux, which will occupy around 175 GB, so how much of space i need to allocate in the Virtual machine HDD.

    I have about 200 GB in my D:/ drive, can i create my Virtual Machine on this D:\ so that when i install Linux on the Virtual Machine , i can allocate 200 GB to the Virtual HDD and install Oracle ora ny other program on Linux Later.

    I am novice to Linux and Virtual machine, Please help me out. Thanks

  5. Matt

    Two years on and it’s still helping people – just what I needed so many thanks

    Simon

  6. great and simple instruction. VMware should copy it to its own manual.

  7. Thanks man. Following your instructions was very straight forward and it worked as expected!

  8. This is the best tutorial I’ve ever seen! Simple means genius. Thank you!

  9. Thanks for the tutorial very important i’m brazilian guy.

    translation: Muito obrigado pelo tutorial muito importante

  10. Great document yet simple… very helpful, Thanks a Bunch.

    Rahman Khaleel

  11. Thank You SOOOO much. Struggled with this for hours till I found this page….and pictures!! Great job. Thanks for sharing the knowledge.

    (now I can look clever) .. 😉

  12. This article is very helpful. Appreciate your help. I have been looking for this for while.

  13. Matt,

    Wow. FINALLY, a linux tutorial that ACTUALLY WORKS AND MAKES SENSE for those of us who might not be Linux gurus!

    This helped tremendously with a Virtual Appliance I needed to tweak to my own liking!

    HDA (Hassle Free Download Appliance) vmware.com

  14. Nice work. Thank you. I do have a question though, is it possible to have a running image see the newly assigned disk without rebooting?

    Again, thank you.

  15. Well written, esp. when you explain WHY you used the commands that you did. Now all I have to do is add this new disk to LVM.

    Thanks again.

  16. Thanks a lot dude.

    It helped me out in such a beautiful way.

    Good work!!!

  17. Still working in ’09 with redhat 5 and vmware workstation 6.5.2

Leave a Reply

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