GParted (Gnome Partition Editor) is a free tool designed to manage hard disks partitions.
Here is an image of the situation with GParted: When I try to resize 'Yosemite Erase' (the hard disk) it says that the minimum and maximum space that it can take up are the same, 19.20GB, which is what it currently is. Now I have loaded a GParted ISO onto the VM, and have been trying to use that to resize the hard disk but this is also to no avail. I've also tried using Disk Utility from OS X. GParted will not let me increase the OS X partition size (although it will let me decrease it). I want to use this to increase the OS X partition space. I booted from a USB and used GParted to shrink the Ubuntu partition leaving me with about 100G of free space.