VMware

This Question is Answered

1 "helpful" answer available (6 pts)
4 Replies Last post: Jun 26, 2009 12:02 PM by helmers  

Insufficient space in a virtual hard disk of type 'growable' -- how to expand? posted: Jun 20, 2009 12:06 PM

Click to view helmers's profile Novice 7 posts since
Jun 20, 2009
My system
  • VMWare Fusion 2.0.4
  • Virtual machine with Ubuntu 9.04 Desktop
Situation

My vm has one virtual disk of type growable.The size of the *.vmdk file on the file system is around 4.7 GB. In the vm I'm trying to install Oracle Database. Oracle requires 1.5GB of free space on the hard disk. When I try to install Oracle, it complains that there's insufficient disk space. True, "df -h" on the Ubuntu vm tells me:

  • /dev/sda1 6.6G 5.3G 986M 85% /

So I have to expand my virtual disk size. I tried it using vmware-vdiskmanager:

  • $ vmware-vdiskmanager -x 8GB Ubuntu-9_04-Desktop.vmdk

This should add at least a few GB to my disk.

Problem

However when vmware-vdiskmanager has finished expanding, and I restart my vm, "df -h" still tells me exactly the same thing:

  • /dev/sda1 6.6G 5.3G 986M 85% /

So the expansion has had not effect on the available space inside my vm. I tried to expand from the Settings > Hard disks panel; same effect... Since Oracle won't install if there's not at least 1.5GB available, I'm stuck.

Questions
  1. What's should be the effect of expanding a virtual disk of type 'growable'?
  2. When I look in my vm's Settings > Hard disks I see that my growable disk has a size of 8G, but the size of the *.vmdk file is only 4.7GB, and the same value is shown when I lookup the disk size inside my virtual machine. So what exactly does it mean that VMWare tells me that my growable disk has size 8GB? Is this an upper limit or something? (Some extra info that might be related to my problem: this disk was converted a while ago from a preallocated disk to a growable disk).
  3. Most important question: How can I increase the available disk space of 986M inside my virtual hard disk to something larger than 1.5GB? I assume this can be achieved by converting my hard disk to type 'preallocated' but I don't really want to do this because after the installation a lot of space will free up again inside the vm, and I don't want to convert it back to 'growable' to be able to shrink it again...
Click to view WoodyZ's profile Guru 10,128 posts since
Apr 22, 2004
helmers wrote: I guess I'll have to find out how to allocate the new space on my expanded virtual disk to the partition under Ubuntu...

You can use GParted Live as mentioned in Resizing Virtual Disks With Step by Step Instructions although if using Fusion 2.x you will need to modify (manually edit) the target Virtual Machine's .vmx configuration file by making sure the following parameters and values exist in order for the mouse to work properly while booting from GParted Live under Fusion 2.x.
usb:0.deviceType = "mouse"
usb:0.present = "FALSE"
mouse.vusb.enable = "FALSE"

Information of the location of the .vmx configuration file can be found in A Beginner's Guide to VMware Fusion and or Information Gathering for VMware Fusion.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities