Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Apple Software > Windows on the Mac
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Aug 15, 2008, 01:50 PM   #1
theapplefreak
macrumors regular
 
Join Date: Aug 2008
Expanding the hard drive space on VMWare Fusion

As you can see in the title, I want to know how to expand the hard drive space on VMWare Fusion. I've installed Windows XP Professional on VMWare and I put a hard drive space of 5 GB which was really small and I want to expand it to 10GB. I've read some ways of doing them, but they are long and complicated. Need help
Thanks
theapplefreak is offline   Reply With Quote
Old Aug 15, 2008, 01:55 PM   #2
Dmac77
macrumors 68000
 
Dmac77's Avatar
 
Join Date: Jan 2008
Location: Ravencrest, or here. And people say I'm a nerd.
Quote:
Originally Posted by theapplefreak View Post
As you can see in the title, I want to know how to expand the hard drive space on VMWare Fusion. I've installed Windows XP Professional on VMWare and I put a hard drive space of 5 GB which was really small and I want to expand it to 10GB. I've read some ways of doing them, but they are long and complicated. Need help
Thanks
Is this a complete VM install of XP? Or is VMWare looking at a bootcamp partition for XP? I can help you more if I know that Info.

Don
__________________
flickr
Dmac77 is offline   Reply With Quote
Old Aug 15, 2008, 02:00 PM   #3
theapplefreak
Thread Starter
macrumors regular
 
Join Date: Aug 2008
Quote:
Originally Posted by Dmac77 View Post
Is this a complete VM install of XP? Or is VMWare looking at a bootcamp partition for XP? I can help you more if I know that Info.

Don
Yes. Its a complete VM install of XP.
__________________
Apple 1st Generation Macbook, 2.0 GHz Intel Core Duo, Upgraded to 300GB HD and 2GB RAM. 20" Cinema Display. 8GB No Service iPhone
My Youtube Channel-Subscribe!
theapplefreak is offline   Reply With Quote
Old Aug 15, 2008, 02:01 PM   #4
sapporobaby
macrumors newbie
 
Join Date: Sep 2007
Complicated for sure

Quote:
Originally Posted by theapplefreak View Post
As you can see in the title, I want to know how to expand the hard drive space on VMWare Fusion. I've installed Windows XP Professional on VMWare and I put a hard drive space of 5 GB which was really small and I want to expand it to 10GB. I've read some ways of doing them, but they are long and complicated. Need help
Thanks
There is no easy way to do it. It can be done but it is complicated. The fastest and easiest way is to start over from scratch and do a new install. I too have this problem but I am too lazy to go through the hassle.
sapporobaby is offline   Reply With Quote
Old Aug 15, 2008, 02:03 PM   #5
Dmac77
macrumors 68000
 
Dmac77's Avatar
 
Join Date: Jan 2008
Location: Ravencrest, or here. And people say I'm a nerd.
Ok, there should be a button that says preferences on the VMWare window, click that, and then from there, click the HDD button on the left hand side. There should be an option to expand the HDD size in that panel, that's how it is on my iMac at least. If it's not there, I'm at a loss.

EDIT: Just found this article there is a PDF attachment at the bottom of the first post, that might be helpful. http://communities.vmware.com/message/690626#690626

Don
__________________
flickr
Dmac77 is offline   Reply With Quote
Old Aug 15, 2008, 02:06 PM   #6
theapplefreak
Thread Starter
macrumors regular
 
Join Date: Aug 2008
Quote:
Originally Posted by Dmac77 View Post
Ok, there should be a button that says preferences on the VMWare window, click that, and then from there, click the HDD button on the left hand side. There should be an option to expand the HDD size in that panel, that's how it is on my iMac at least. If it's not there, I'm at a loss.

Don
There is no preference button on the VMWare Window. But I have clicked on the virtual machine and clicked settings. I looked at the left hand side and went to Hard Drive, but its all grayed out
__________________
Apple 1st Generation Macbook, 2.0 GHz Intel Core Duo, Upgraded to 300GB HD and 2GB RAM. 20" Cinema Display. 8GB No Service iPhone
My Youtube Channel-Subscribe!
theapplefreak is offline   Reply With Quote
Old Aug 15, 2008, 02:08 PM   #7
Dmac77
macrumors 68000
 
Dmac77's Avatar
 
Join Date: Jan 2008
Location: Ravencrest, or here. And people say I'm a nerd.
Quote:
Originally Posted by sapporobaby View Post
There is no easy way to do it. It can be done but it is complicated. The fastest and easiest way is to start over from scratch and do a new install. I too have this problem but I am too lazy to go through the hassle.
I was able to do it from a pref. pane in VMWare. Why am I always different

EDIT: To OP, you may be better of just doing a reinstall, and then contact M$FT, and telling them that you put in a new graphics card, they will give you a new key.

Don
__________________
flickr
Dmac77 is offline   Reply With Quote
Old Aug 15, 2008, 02:11 PM   #8
sapporobaby
macrumors newbie
 
Join Date: Sep 2007
Quote:
Originally Posted by Dmac77 View Post
I was able to do it from a pref. pane in VMWare. Why am I always different

EDIT: To OP, you may be better of just doing a reinstall, and then contact M$FT, and telling them that you put in a new graphics card, they will give you a new key.

Don
Your solution will not work as you can not easily change a partition size once it is set. It says this on the VMWare site. Choices are: reinstall or do it the hard way which could lead to more problems and ultimately a reinstall.
sapporobaby is offline   Reply With Quote
Old Aug 15, 2008, 02:12 PM   #9
theapplefreak
Thread Starter
macrumors regular
 
Join Date: Aug 2008
Quote:
Originally Posted by sapporobaby View Post
There is no easy way to do it. It can be done but it is complicated. The fastest and easiest way is to start over from scratch and do a new install. I too have this problem but I am too lazy to go through the hassle.
Ok. I guess thats the easiest way. By the way. What is the recommended hard drive size for the Virtual Machine?
__________________
Apple 1st Generation Macbook, 2.0 GHz Intel Core Duo, Upgraded to 300GB HD and 2GB RAM. 20" Cinema Display. 8GB No Service iPhone
My Youtube Channel-Subscribe!
theapplefreak is offline   Reply With Quote
Old Aug 15, 2008, 02:18 PM   #10
mrwizardno2
macrumors 6502a
 
Join Date: Jun 2007
Quote:
Originally Posted by sapporobaby View Post
There is no easy way to do it. It can be done but it is complicated. The fastest and easiest way is to start over from scratch and do a new install. I too have this problem but I am too lazy to go through the hassle.
Far from it. it's much easier to just expand the disk. Sure, you have to do it via terminal, but it takes almost no time at all.

you'll need to use Terminal to run a command line utility called vmware-vdiskmanager in /Library/Application\ Support/VMWare\ Fusion/. You pass it a switch, a value, and your vmdk file and it does the rest. It can't resize the partition on the disk, but it can make the disk larger.

So if you wanted to make XP.vmdk a 20 gigabyte disk, you'd execute this "./vmware-vdiskmanager -x 20 /path/to/XP.vmdk"

When I get home, I'll make you a guide. You need this in a hurry? Or do you have a couple of hours?
__________________
2.4GHz SR MacBook Pro / Matte / 4 GB ram
mrwizardno2 is offline   Reply With Quote
Old Aug 15, 2008, 02:22 PM   #11
sapporobaby
macrumors newbie
 
Join Date: Sep 2007
Quote:
Originally Posted by mrwizardno2 View Post
Far from it. it's much easier to just expand the disk. Sure, you have to do it via terminal, but it takes almost no time at all.

you'll need to use Terminal to run a command line utility called vmware-vdiskmanager in /Library/Application\ Support/VMWare\ Fusion/. You pass it a switch, a value, and your vmdk file and it does the rest. It can't resize the partition on the disk, but it can make the disk larger.

So if you wanted to make XP.vmdk a 20 gigabyte disk, you'd execute this "./vmware-vdiskmanager -x 20 /path/to/XP.vmdk"
I read this technique on several VMware sites and they said this is possible but there is an inherent danger. Considering that you are very comfortable with this, you might be able to do this rather easily but not many are comfortable with using the Terminal app.

Can you post that guide here so others can have a look at it?
sapporobaby is offline   Reply With Quote
Old Aug 15, 2008, 02:26 PM   #12
mrwizardno2
macrumors 6502a
 
Join Date: Jun 2007
Quote:
Originally Posted by sapporobaby View Post
I read this technique on several VMware sites and they said this is possible but there is an inherent danger. Considering that you are very comfortable with this, you might be able to do this rather easily but not many are comfortable with using the Terminal app.
the only danger I can think of would be corruption of the disk image. in that case a quick copy would provide you with a cheap, effective backup.

there really is no reason to be afraid of using terminal. it's just a different interface to the same things you interact with via the UI. And if you're logged on as a normal user, and attempt to follow the directions given - there should be no problems. Now, go typing random junk in there, yeah - that might be an issue. but if you are determined, intelligent, and patient - you should have nothing to fear. I'll whip the guide up when I get home after work.
__________________
2.4GHz SR MacBook Pro / Matte / 4 GB ram
mrwizardno2 is offline   Reply With Quote
Old Aug 15, 2008, 02:55 PM   #13
sapporobaby
macrumors newbie
 
Join Date: Sep 2007
Quote:
Originally Posted by mrwizardno2 View Post
the only danger I can think of would be corruption of the disk image. in that case a quick copy would provide you with a cheap, effective backup.

there really is no reason to be afraid of using terminal. it's just a different interface to the same things you interact with via the UI. And if you're logged on as a normal user, and attempt to follow the directions given - there should be no problems. Now, go typing random junk in there, yeah - that might be an issue. but if you are determined, intelligent, and patient - you should have nothing to fear. I'll whip the guide up when I get home after work.
You are the man. Appreciate it.
sapporobaby is offline   Reply With Quote
Old Aug 15, 2008, 04:30 PM   #14
mrwizardno2
macrumors 6502a
 
Join Date: Jun 2007
As promised, here is a somewhat simple how-to on how to expand VMWare disk images the non-gui way... and also the gui way for Beta 2.2 users.

First off we need to know where we store our virtual machines, and what the disk image is called. Likely these will be in your Documents folder under Virtual Machines. Here's my path to my example machine. I'll explain the various commands as we go.

/Users/jimmie/Documents/Virtual Machines.localized/xpexample1.vmwarevm

These paths are case sensitive. If you're unfamiliar with terminal, here's how to get there.

When you first fire up terminal, you'll see something roughly like this


Terminal should startup in your user directory, /Users/%username%. You can verify this by using the 'pwd' command, From here you want to find the path of the disk image you'll be working on. To list directories and files, the command you type is 'LS' but in lower case. To change to a directory, you use 'cd' and where you want to go. Notice how the prompt changes to show your current directory.




A secret when switching directories or completing various commands is using the tab key. Try typing 'cd Docu' and then hitting tab. It will autocomplete the path for you, and you can just hit enter. This works great for tricky paths that have spaces or special characters. Otherwise, you will have to escape them with a backslash '\'. Alright. Down to business.

I wasn't really sure how to edit disks with snapshots or multiple vmdk's, but from initial observations, it looks like you make the change to your root disk and the utility does all the rest of the work. My example is set to split the disk in 2 gigabyte chunks, so I have quite a few "chunks". So if you have a disk called xpexample.vmdk and several others that are xpexample-sNNN.vmdk, we will target the one without the numbers (N).



The full path to the file I want to modify is /Documents/Virtual\ Machines.localized/xpexample1.vmwarevm/xpexample1.vmdk.

Now, let's change to the directory containing the disk utility. My particular version of VMWare's utility is installed in /Library/Application\ Support/VMware\ Fusion/

change to the directory by typing 'cd /Library/Application\ Support/VMware\ Fusion/' Remember to use your tab key! If it won't autocomplete, it's likely because of capitalization or an error. Back up a few characters and try again.

Inside this directory, you will see many files, the one we are interested in is the vmware-vdiskmanager.


If you run it without any options, it will spell out a help file that shows you exactly how to use it. To run the script, you will use './' This tells bash that you want to run the executable in the current folder.




So, we can see in example 4 above to expand a disk, we use the flag/option/switch (whatever you prefer to call it), -x, to expand disk images. You will need to know the full path (remember the one we found earlier?) to your disk image.

Type it just like it looks in the example (remember to execute it with './') and substitute your desired disk size and your path to your disk image. Use your tab key for autocompleting the path!




In my case, I now have a 100 gigabyte disk.


In Fusion beta 2, you should be able to resize partitions by simply using the GUI that's built into the program, if you installed the utility it prompted you to when you installed beta 2. I can't remember what it was called right now, I'll look it up later.

You can either drag the slider, or just type whichever number you wish into the size box and hit enter. The save button will 'un-grey' and let you make the changes:




Whichever way you can achieve the same results. The GUI way is by far the better choice for those not comfortable in terminal, but the command line offers its own set of advantages with its multitude of options and power.
__________________
2.4GHz SR MacBook Pro / Matte / 4 GB ram

Last edited by mrwizardno2 : Aug 15, 2008 at 09:12 PM. Reason: finished adding screen shots
mrwizardno2 is offline   Reply With Quote
Old Aug 23, 2008, 08:04 PM   #15
Douge
macrumors newbie
 
Join Date: Jul 2007
Location: Princeton
The terminal window method isn't working for me because I'm apparantly not specifying the diskname or some other argument. Any help?

Macintosh-187:VMware Fusion Doug$ ./vmware-vdiskmanager -x 18GB /Users/Doug/Documents/Virtual Machines.localized/Windows Vista.vmwarevm/Windows Vista.vmdk
Diskname or some other argument is missing.
VMware Virtual Disk Manager - build 94249.
Douge is offline   Reply With Quote
Old Aug 26, 2008, 07:08 AM   #16
mrwizardno2
macrumors 6502a
 
Join Date: Jun 2007
Quote:
Originally Posted by Douge View Post
The terminal window method isn't working for me because I'm apparantly not specifying the diskname or some other argument. Any help?

Macintosh-187:VMware Fusion Doug$ ./vmware-vdiskmanager -x 18GB /Users/Doug/Documents/Virtual Machines.localized/Windows Vista.vmwarevm/Windows Vista.vmdk
Diskname or some other argument is missing.
VMware Virtual Disk Manager - build 94249.
Doug - are you escaping the spaces in the path?

I see you have /Users/Doug/Documents/Virtual Machines.localized/Windows Vista.vmwarevm/Windows Vista.vmdk. When you enter this from the command line, are you actually entering "/Users/Doug/Documents/Virtual\ Machines.localized/Windows\ Vista.vmwarevm/Windows\ Vista.vmdk" or was the lack of escape characters unintentional? It can be picky if you don't have it right.
__________________
2.4GHz SR MacBook Pro / Matte / 4 GB ram
mrwizardno2 is offline   Reply With Quote
Old Aug 28, 2008, 02:39 PM   #17
Douge
macrumors newbie
 
Join Date: Jul 2007
Location: Princeton
Windows does not recognized new size

Quote:
Originally Posted by mrwizardno2 View Post
Doug - are you escaping the spaces in the path?

I see you have /Users/Doug/Documents/Virtual Machines.localized/Windows Vista.vmwarevm/Windows Vista.vmdk. When you enter this from the command line, are you actually entering "/Users/Doug/Documents/Virtual\ Machines.localized/Windows\ Vista.vmwarevm/Windows\ Vista.vmdk" or was the lack of escape characters unintentional? It can be picky if you don't have it right.
Thanks for your help. That was the issue.

Unfortunately, I have run into another problem. Although the disk expansion went smoothly and the new expanded size of the disk appears under the settings menu in fusion, Windows Vista does not recognize the new size. How can I get Windows to "see" the additional space? Thanks in advance.
Douge is offline   Reply With Quote
Old Aug 28, 2008, 02:49 PM   #18
mrwizardno2
macrumors 6502a
 
Join Date: Jun 2007
Quote:
Originally Posted by Douge View Post
Thanks for your help. That was the issue.

Unfortunately, I have run into another problem. Although the disk expansion went smoothly and the new expanded size of the disk appears under the settings menu in fusion, Windows Vista does not recognize the new size. How can I get Windows to "see" the additional space? Thanks in advance.
Great to hear it was something simple. As for extending the partition, you will need to open the Disk Management component inside of the Computer management snapin.

Since I don't have Vista installed, I can't easily create a how-to... but I know the approximate steps. Follow this guide here http://www.petri.co.il/extend-disk-p...erver-2008.htm

If you have any problems let me know and I'll help out if I can!
__________________
2.4GHz SR MacBook Pro / Matte / 4 GB ram
mrwizardno2 is offline   Reply With Quote
Old Aug 28, 2008, 04:48 PM   #19
steveza
macrumors Demi-God
 
steveza's Avatar
 
Join Date: Feb 2008
Location: Yookay
Quote:
Originally Posted by mrwizardno2 View Post
As promised, here is a somewhat simple how-to on how to expand VMWare disk images the non-gui way... and also the gui way for Beta 2.2 users.
Nice job on the guide. I'm sure that going to help a load of people out of a tight squeeze.
steveza is offline   Reply With Quote
Old Aug 28, 2008, 04:56 PM   #20
Douge
macrumors newbie
 
Join Date: Jul 2007
Location: Princeton
Success!

Quote:
Originally Posted by mrwizardno2 View Post
Great to hear it was something simple. As for extending the partition, you will need to open the Disk Management component inside of the Computer management snapin.

Since I don't have Vista installed, I can't easily create a how-to... but I know the approximate steps. Follow this guide here http://www.petri.co.il/extend-disk-p...erver-2008.htm

If you have any problems let me know and I'll help out if I can!
Ah, perfect! It worked exactly as planned. Thanks so much for your help. I might be posting again to get your help on other things as well!
Douge is offline   Reply With Quote
Old Sep 3, 2008, 11:39 PM   #21
Majikk
macrumors newbie
 
Join Date: Sep 2008
Ahhhhhh! Thank you for the instructions it worked perfectly to go from 40GB to 60GB. I am a command line moron and your instructions were perfect.
Majikk is offline   Reply With Quote

Reply

Mac Forums > Apple Software > Windows on the Mac

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:38 AM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC