Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Can't increase the hard disk in a virtual machine using VMware-vdiskmanager.exe

Posted on 2008-10-09
2
2,234 Views
Last Modified: 2012-05-05
I'm running a virtual machine in VMware server and the hard drive is out of space. I need to to increase the hard drive space, but I keep getting the error "The system cannot find the file specified" when I run the command (C:\Program Files (x86)\VMware\VMware Server>vmware-vdiskmanager.exe -x <50Gb> "D:\Virtual Machines\Windows Server 2003 Standard Edition\Windows Server 2003 Stan
dard Edition-flat.vmdk")
0
Comment
Question by:esitech
2 Comments
 
LVL 42

Expert Comment

by:paulsolov
ID: 22684057
Even if you expand the disk size it will not increase the volume unless you use diskpart or another utility.  To make it easy you can always use the vmware converter which will resize the partition on the fly.  Shut down the virtual machine, use the converter to convert and resize to a different location.  Once completed delete the original copy and copy the resized version to the new location
0
 
LVL 8

Accepted Solution

by:
aldanch earned 500 total points
ID: 22748862
Using VMware Converter to expand your drive is an easier process, but if you just want to expand your existing VM I recommend doing the following:

To extend the vmdk file, I would use the VMware DiskManager utility located here: http://petruska.stardock.net/Software/VMware.html

Note: If you're having issues with the vmware-vdiskmanager tool, try reinstalling or repairing VMware Server installation. Maybe upgrade to version 1.0.7 or version 2 (Web GUI)

To extend the partition to the unallocated space, I would download Ubuntu 8.04 located here: http://www.ubuntu.com/getubuntu/download

The process takes anywhere from 10-15 minutes

Boot into the LiveCD (choose Try Ubuntu without any change to your computer - first option)
Go to System, Administration, Partition Editor (GParted)
Extend the partition to include the unallocated space by selection your drive (ie /dev/sda1), clicking Resize/Move, and then dragging the right arrow all the way to the right
Apply the changes and wait for GParted to complete the merging
Once completed, click the Power icon on the top right corner of the desktop and choose Restart
When Ubuntu prompts you, Press Enter to complete the restart process
When your VM restarts into Windows, it may run chkdsk on your newly expanded drive, just let it run (takes a few seconds)
Log into your Windows VM and wait for Windows to recognize your newly expanded drive
Restart your Windows VM when prompted to by Windows
When your VM reboots, log into the desktop and verify that the unallocated space has been merged into your drive (run diskmgmt.msc at Start > Run)
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Provisioning vcpu for VM (cisco virl) 4 65
How do I use a wireless dongle on a VMWare host? 22 65
VMware 6.5:  USB devices 16 123
Remove Disconnected ESX Hosts 3 53
When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question