Having a background as both a developer and a system administrator, I have a very big interest in virtualization tools. Recently, I have spent a fair amount of time using VMWare to house multiple testing environments that I don't have the physical hardware for. At the moment, I have only good things to say about the latest versions of the product. This post is about a mistake that I made - not a shortcoming of the product. A while ago I created a Windows XP virtual pc so that I could try out Visual Studio 2008, without messing with my Vista setup. Recently, I was forced into installing Visual Studio 2005 on that same image, in order to create a workaround to some problems I have been experiencing with Visual SourceSafe 2005. I'll write another post about that shortly.
I chose the virtual pc for the VS2005 install because I am running VS2008 on my Vista system and I had no idea what impact it would be adding VS2005 after the VS2008. I kind of chuckled to myself when the installation told me that I couldn't continue because it had calculated my free space after the install to be -1.5 GB. You see, I had created a 10GB virtual hard drive for this install back when I created it. Now, I had to increase the size of the drive to accommodate the new software. I had a suspicion that this would not be an easy feat, but as it turns out - it's not that tough.
A fellow by the name of Carl Tyler provided an excellent post on how to do this, and the comments include a lot of useful information. The first thing that you need to do is to tell VMWare to increase the size of the disk. This won't automatically make the drive bigger, but it will increase the available free space on the virtual disk. The command can be run from the VMWare installation directory and looks like this:
vmware-vdiskmanager -x 16GB xpDev1.vmdk The last two parameters identify the new size of the virtual disk and the actual name of the virtual disk file respectively. Once you do this, head on over to Knoppix and download their ISO cd image. Set VMWare to boot from the ISO by selecting VM --> Removable Devices --> CD ROM --> Edit from the start menu. Browse for the ISO, then start up your virtual machine. When asked to press a key to boot from Knoppix, I would suggest that you do it. Once Knoppix loads, click on the start icon (same location as in Windows) and select the 'System' group, then 'QTParted'. QTParted is a linux-based partition manager, a utility that Microsoft has failed to deliver with it's historical OS's. In QTParted, select the drive that represents your virtual drive. In my setup, it was /dev/hda. When it shows up in the right-hand pane, right-click on it and select resize. Then drag the sizing slider all the way to the right. Click Ok, then select 'Commit' from the file menu. Once it completes, change the mapping of your virtual CD ROM back to your physical CD ROM and reboot. Voila! The bigger partition will now be usable and all of the data will be intact.
Currently rated 4.0 by 1 people
- Currently 4/5 Stars.
- 1
- 2
- 3
- 4
- 5