Monday, September 03, 2007

How to increase the VMWare (preallocated) disk space.

I have started using ubuntu 7.04 (Feisty Fawn) recently. But for some of our office work, I needed older version of ubuntu(6.06). And for that I used VMWare.

Initially I allocated 6GB space to ubuntu 6.06 virtual machine, which I found that is not sufficient for my work. So decided to increase it to 10GB. And after some search in google found a way to increase VMWare disks spaces. Following blog entry is to record the steps which I followed and it might be useful for others also.

I initially tried to increase ubuntu6.06 virtual machine disk size using the following commands:
$cd /var/lib/vmware/Virtual Machines/Ubuntu6.04
$vmware-vdiskmanager -x 10Gb Ubuntu6.04.vmdk

It gave the following errors:
Using log file /tmp/vmware-msubramanian/vdiskmanager.log
This disk is part of a snapshot chain in '/var/lib/vmware/Virtual Machines/Ubuntu6.04/Ubuntu6.04.vmx'.
The selected operation can only be executed on a disk with no snapshots.

I found I have snapshots of ubuntu6.06 vmware disk.

Used the following method to remove the snapshots:
In the VMWare menu, used the Remove Snapshot option,
VM --> Remove Snapshot .. ( This is done while the Virtual machine is switched off)

Again tried using vmware-vdiskmanager it worked.

$vmware-vdiskmanager -x 10Gb Ubuntu6.04.vmdk
Using log file /tmp/vmware-msubramanian/vdiskmanager.log
Grow: 100% done.
The old geometry C/H/S of the disk is: 783/255/63
The new geometry C/H/S of the disk is: 1305/255/63
Disk expansion completed successfully.

WARNING: If the virtual disk is partitioned, you must use a third-party
utility in the virtual machine to expand the size of the
partitions. For more information, see:
http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1647
$

6 comments:

Rams said...

Why not just create an additional virtual disk, and format it ? I did just a couple of weeks back.

Tarun Gupta said...

I read your blog and thought I could tell you about something else which would be useful for seeing maps and directions in India.

I am writing to tell you about MapmyIndia.com, a free interactive maps and directions portal for all India. See the map of connaught place, new delhi, get directions in mumbai from nariman point to juhu airport, and find nearby ATMs in kormangala, bangalore.

As a company and individual enthusiasts, we dream only of solving the problem of reliable directions and navigation for India. For your blog specifically, you can map enable it by using our youtube-style embeddable maps, and links to specific searches (of maps, directions, local and eLocation) on MapmyIndia.

Do give us feedback, suggestions, or get involved yourself by mailing me back at tarun@mapmyindia.com or marketing@mapmyindia.com.

And if you find the different services useful, we would be grateful to you for writing and telling your readers about us.

Warm Regards,
Tarun Gupta
The MapmyIndia Team
For directions in India, just search print and go with MapmyIndia.com

Tamil Payapulla said...

For modest opinions,check my blog
www.tamilpayapulla.blogspot.com

Vijay Kumar said...

Thanks Mugs..

It worked for me also. Landed here while browsing for the solution.

Thanks again...

Vaibhavi said...

Hi all,

I am working for a software integrator company. My projects includes working on Java and Ruby on Rails and Ajax. I think Web Services is really cool. We also recently have to now work on REST and they are talking about mashups and Struts. Can anyone tell me if there are some good training or conferences so that me and my team members can get to speed with these technologies. Learning from books is not my cup of tea, even not when I was doing engineering ;)

All the help that group members can provide in this regard is much appreciated.

Thanks,
Vaibhavi

anaz said...

Hi Vaibhavi,

There are several online resources available that you just google for. If any of your team like to read then quality books from wiley and oreilly cover such technologies in detail.

I also highly recommend you could attend the upcoming Great Indian Developer Summit (http://www.developersummit.com) that is covering Java, Agile, REST, JAX-RS, mashups, .NET, Rich Web, JPA, SOA, rich user experiences, Spring, Groovy and more. They have most of the creators of these technologies as speakers. My team is attending this summit 22-25 apr at IISc campus where we are attending the web conference on April 23 and java on April 24. We have been able to get very good discounts. Maybe all those who are interested from your group can sign up together and get a good bargain from them. what say? I also attended last year's conference and had a really cool time.

In Hyderabad there is Sun Tech Days with some sun speakers.

Thanks,
Anaz