Hi,
I want to provision multiple virtual machine from a single clone. Let's say a customer wants to buy a 50 GB vm, I'd like to clone a standard 8GB centos VM and then customize the disk size. The process works quite smoothly but when it comes to resizing the disk the final vm OS doesn't sees the new disk size as described here http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100407...
What can you suggest? Shall i create a multiple template each one of a different size, let's say 5,10,20,30,50 etcGB and provision those templates or is there any better way to do this?
Thanks.
T
Hi T,
So the disk is resized on the VM but not seen in the OS. What method are you using to extend the partition?
Just extending the disk will not suffice as the partition table and filesystem needs to be extended.
You could either use something like parted and resize2fs to extend the partition and filesystem respectively, or if you are using LVM then could add the free space as another PV, add the PV to the VG, extend the LV and resize the filesystem.
I've often found RHEL hosts don't pick up new disks/extensions when you run partprobe and need a reboot to see the changes.
Dave
Hi!
as mentioned, you have to modify the partitions inside the guest. To trigger that, you could use the VIX-API Plugin (or the new integration if you are on vSphere 5). Find some examples on my download page: http://www.vcoportal.de/downloads/ (you need the VIX plugin installed...)
The discussion: http://communities.vmware.com/message/1637885?tstart=0
For the version 5: see all the discussions the other days here in the communities...
http://communities.vmware.com/thread/330416
Regards,
Joerg
