VMware Communities > VMTN > Desktop Products > VMware Fusion (for the Mac) > Discussions

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
6 Replies Last post: Oct 6, 2007 5:46 PM by philleeder
Reply

Unable to Extend virtual disk in MAC OSX

Oct 6, 2007 6:47 AM

Click to view philleeder's profile Lurker philleeder 3 posts since
Oct 6, 2007

Hello,

Have an XP Pro installation running on a virtual disk under VMWare Fusion. tried to grow disk from 20GB to 100GB, using this How-to: http://communities.vmware.com/docs/DOC-1110. Operation fails with the folowing error:
Using log file /var/tmp//vmware-philleeder/vdiskmanager.log
Failed to expand the disk '/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmdk': One of the parameters supplied is invalid (1).

Here is a copy of the vmdiskmanager.log file:

Oct 06 08:26:51.613: app| Log for VMware Fusion pid=239 version=e.x.p build=build-51348 option=Release
Oct 06 08:26:51.613: app| Hostname=phil-leeders-computer.local
Oct 06 08:26:51.614: app| Failed to acquire super user privileges.
Oct 06 08:26:51.614: app| UUID: Unable to open /dev/mem: No such file or directory
Oct 06 08:26:51.614: app| Failed to acquire super user privileges.
Oct 06 08:26:51.615: app| Failed to acquire super user privileges.
Oct 06 08:26:51.616: app| Failed to acquire super user privileges.
Oct 06 08:26:52.078: app| DISKLIB-DSCPTR: Opened [0]: "Windows XP Professional.vmdk" (0x18)
Oct 06 08:26:52.078: app| DISKLIB-LINK : Opened '/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmdk' (0x18): monolithicSparse, 209715200 sectors / 102400 Mb.
Oct 06 08:26:52.078: app| DISKLIB-LIB : Opened "/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmdk" (flags 0x18). 0x1107d94
Oct 06 08:26:52.078: app| Failed to acquire super user privileges.
Oct 06 08:26:52.078: app| Scanning directory of file /Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmdk for vmx files.
Oct 06 08:26:52.078: app| baseDir = '/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/', vmx file = 'Windows XP Professional.vmx'
Oct 06 08:26:52.078: app| Search start: '/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmx', baseDiskOnly [X]
Oct 06 08:26:52.079: app| Search result: inTree [X], isCurrent [X], isLegacy [ ], states: 1
Oct 06 08:26:52.079: app| Search analysis: disk file found as part of current state.
Oct 06 08:26:52.399: app| DISKLIB-DSCPTR: Opened [0]: "Windows XP Professional.vmdk" (0)
Oct 06 08:26:52.399: app| DISKLIB-LINK : Opened '/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmdk' (0): monolithicSparse, 209715200 sectors / 102400 Mb.
Oct 06 08:26:52.399: app| DISKLIB-LIB : Opened "/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmdk" (flags 0). 0x1107e14
Oct 06 08:26:52.399: app| DISKLIB-LIB : Growing disk '/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmdk' : createType = monolithicSparse
Oct 06 08:26:52.399: app| DISKLIB-LIB : Growing disk '/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmdk' : capacity = 209715200 sectors - 100.0 Gb
Oct 06 08:26:52.399: app| DISKLIB-LIB : Growing disk '/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmdk' : new capacity = 35651584 sectors - 17.0 Gb
Oct 06 08:26:52.399: app| DISKLIB-LIB : capacity needs to be bigger than : 209715200 (35651584)
Oct 06 08:26:52.399: app| .DISKLIB-LIB : Failed to grow disk '/Users/philleeder/Documents/Virtual Machines/Windows XP Professional.vmwarevm/Windows XP Professional.vmdk' : One of the parameters supplied is invalid (1).
Oct 06 08:26:52.399: app| AIOMGR-U : stat o=1 r=204 w=2 i=0 br=13146112 bw=1024
Oct 06 08:26:52.399: app| AIOMGR-S : stat o=5 r=214 w=2 i=0 br=13185024 bw=1024

Is this a problem with the Super User priviledges? If so how do I straighten this out, and if not, can someone tell me what is happening here?

Very frustrated.......

philleeder


Reply Re: Unable to Extend virtual disk in MAC OSX Oct 6, 2007 7:00 AM
Click to view rcardona2k's profile Champion rcardona2k 5,121 posts since
Oct 20, 2005
Have you tried using vdiskmanager GUI?
Reply Re: Unable to Extend virtual disk in MAC OSX Oct 6, 2007 7:07 AM
in response to: rcardona2k
Click to view philleeder's profile Lurker philleeder 3 posts since
Oct 6, 2007

yes, using vdiskmandger gui. Results are from the log file generated by same. Also using VMXtras for moding the BOIS boot order prior to boot of XP - when the vdiskmanager GUI has been completed succesuflly. FYI: all VMWare Fusion installed OSs are powered down.

regards...

philleeder


Reply Re: Unable to Extend virtual disk in MAC OSX Oct 6, 2007 7:53 AM
in response to: philleeder
Click to view rcardona2k's profile Champion rcardona2k 5,121 posts since
Oct 20, 2005
Try running vdiskmanager as a superuser by opening Terminal, typing sudo open, then drag the icon of the GUI into the Terminal window, that should put the path to the GUI into Terminal and hit return. The command should look like:
sudo open /Users/rcardona/Desktop/vdiskmanager\ GUI\ 0.2007.06.18/vdiskmanager\ GUI.app/


If running it this way still fails, vdiskmanager gui allows you copy and paste the command it's going to run, right before clicking Go, can you copy and paste the command at the bottom of the window into your reply here?

Thanks
Reply Re: Unable to Extend virtual disk in MAC OSX Oct 6, 2007 9:32 AM
Click to view etung's profile Guru etung 11,030 posts since
Oct 15, 2006
VMware
Is this a problem with the Super User priviledges?

No, the privileges messages are bogus, ignore them. Don't run it via sudo or as root either because that'll mess up ownership of the disk.

According to the log, you have a 100 GB disk and are trying to expand it to 17 GB. This is failing because 17 < 100. Are you sure you didn't already grow the disk and didn't run gparted or are looking at the wrong disk?
Reply Re: Unable to Extend virtual disk in MAC OSX Oct 6, 2007 9:39 AM
in response to: philleeder
Click to view rcardona2k's profile Champion rcardona2k 5,121 posts since
Oct 20, 2005
Like Eric says, expanding is a two-part process. One is changing the disk capacity, the second is stretching the logical partition on the disk. The latter requires a tool like GParted, Partition Magic, DiskPart, etc.
Reply Re: Unable to Extend virtual disk in MAC OSX Oct 6, 2007 5:46 PM
in response to: rcardona2k
Click to view philleeder's profile Lurker philleeder 3 posts since
Oct 6, 2007

Thanks to all who commented and advised. Problem Solved, drive expanded as desired.

Solution: follow instructions as given in then How-to I referenced in my original post.

Caveat: Be sure you "prerpare" you Guest OS (ie. Win XP, in my case)

First rebooted XP to Safe Mode Command Prompt and ran CHKDSK /F/R/I.

Then rebooted XP and ran Defrag of drive.

Finally booted to Gparted LiveCD ISO image, and continued as instructed in the Howto. My problem was that every time I got to GParted, the resize failed with "The drive is not prepared for resizing" (or words to that affect), so I did the only things I could think of to "prepare" the drive.

Again, Thanks to all who offered assistance...

Regards...

Actions