Increasing Virtual Machine Disk Size
Yesterday I posted a tutorial on how to create virtual machines. I wrote about how vms can be handy tools especially to us developers who sometimes need two or more OSes at once. I also wrote about how virtual machines mimic real physical machines in many ways. One of those ways is how virtual machines have limited disk sizes. When you buy a real computer you choose a hard disk size and that’s all you get until you upgrade. If you purchase the VMWare Workstation tool you will have the ability to resize your virtual hard disk but if you created a vm using free tools like I did there was no way to increase the disk size. That is until now.
Say whaaaaaat?
Yup, yesterday after posting my tutorial I installed Visual Studio on my Xp vm and, since I had two disk drives, I thought I would be smart and tell VS to install itself on the larger drive. Well little did I know that VS has a mind of it’s own and it installed only part of the application on the the larger drive. The other, and larger, part of the application was installed on the smaller drive (yikes). So here I was with a new vm with only one application installed and already I was running into disk issues.
So that got me off on a quest for a free tool that would allow me to increase the size of my vm’s disk drive. And lo and behold I found it where I least expected: at the VMWare site. It turns out that VMWare has a tool called VMWare Converter that will allow you to not only convert vms created with VMWare Workstation but also third party tools–YES!!
Of course, as is procedure at VMWare, you have to register before downloading the tool but having your name on a mailing list is a small price to pay for this tool. Once you download and install you run the tool and it gives you a nice welcome screen as in Figure 1.

Figure 1
If you click on the Next button a couple of times it will take you to the Source Type window. Here you will want to select Other from the drop down list.

Figure 2
Click on the Next button and that will take you to the window where you can select the virtual machine you want to convert. Here you can either type the name if you know the path or just click on the Browse button and navigate to the vm location.

Figure 3
Click on the Next button and the converter will start to crunch on your existing vm to extract all the data. When it’s done, you will go to the Source Data window. Here you must make sure to place a check mark next to all the listed hard drives and this is the most important window of all because here is where you can select a new size for your hard drive.

Figure 4
Select the drop down list next to the hard drive you want to expand and select the option to specify the size in GB. Now you can type in the new desired size. The original disk in this example was 4.7 GB and I increased it to 10GB. Click on the Next button twice and you will be taken to a window where you can specify the destination type (Figure 5).

Figure 5
Select Other from the drop down list and then click the Next button. Now you will come to a window where you can specify the name of the new virtual machine. Remember that this is a converter tool. It will leave your original virtual machine intact but it will create a new one based on your specifications and it will even copy all of the data from the old vm to the new one. Cool huh?

Figure 6
Click on the Next button and an Virtual Machine Options will appear. Here you can specify how you want the new hard drive(s) to be persisted on the host machine. It’s true that if you select to have the drive created at this point in the process it will have better performance. You can also get better performance by having the hard disk divided into 2 GB blocks. For my purposes, I chose to leave it as is.

Figure 7
Click the Next button and you will see a window for Network options. Here I just selected the default.

Figure 8
Click Next for the Customization window. Here I put a check mark next to Install VMWare Tools. You’ll need those in order to cut and paste from your virtual machine to other virtual machines or the host. I also put a check mark next to the option to Remove all Restore checkpoints but that’s not necessary.

Figure 9
Now if you click Next and then Finish the converter will go to work on your new creation. Note that this might take some time. On my laptop, which has 4 GB of ram and a Core Duo 2 processor, it took about 30 minutes to churn out the new vm. Still, that’s time worth the wait since you will now be able to upgrade all those old vms with smaller drives. Of course your are limited by the available space on your real physical drive but this is a really neat tool that will have lots of vmers smiling for a while.

January 27th, 2009 at 4:00 pm
Great! Thank you very much!
I always wanted to write in my site something like that. Can I take part of your post to my site?
Of course, I will add backlink?
Regards, Reader
January 31st, 2009 at 1:42 am
embeddedman.com - cool sitename man)))
January 31st, 2009 at 8:41 am
Thank you. Keep visiting and look me up on Twitter
January 31st, 2009 at 8:43 am
Yes, you may backlink to material on my blog.
January 31st, 2009 at 12:06 pm
Hello I think your post “ing Virtual Machine Disk Size - Embedded Man” it´s really great. Hope some another good post to read on this blog in the future. Take care.
February 1st, 2009 at 3:47 am
embeddedman.com - great domain name for blog like this)))
February 3rd, 2009 at 3:44 pm
embeddedman.com - cooooolest domain name)))
————————
sponsor: http://reilly6qn.far-cry-far-cry-2.ru
February 4th, 2009 at 6:08 am
yo, embeddedman.com great name for site)))
————————
ads: http://hyundai-hyundai-accent.ru
February 5th, 2009 at 9:49 pm
Thanks. I had to look for a while to get that name but I think it works. Keep reading.
December 20th, 2009 at 2:04 pm
thx for this article. nice blog and some helpful informations….well done
April 15th, 2010 at 8:10 pm
Has anyone ever used a Samsung hard drive? I’m checking out sites trying to get some input. I was going to get a Seagate as I know they have a good rep, but I found a great deal on a Samsung.
April 16th, 2010 at 6:36 pm
My former boss used seagate exclusive ly. I guess they have a better track record.
April 27th, 2010 at 1:49 pm
Great blog guys, lovin it.
May 2nd, 2010 at 10:03 am
Glad you like it. You can follow me on Twitter to get updates as well.