Hi
I was wondering if you could increase the size of a VM's hard drive while the VM is still powered on?
Its not greyed out so im assuming you can?
If so is there any draw backs, I would normally power off the VM then change it.
Thanks
Mike
defrogger,
Yes you can, no power off or reboot required. There are no drawbacks, but there are a couple of caveats. First, it must be Windows 2000 SP4 (you may need the DiskPart.exe from here) or newer and second, it cannot be the OS boot drive.
For example, if it's your drive D:\, then you can use the vClient to edit the Hard Disk 2 virtual disk with the new size. Login to Windows and open a cmd prompt.
C:\Windows\System32> diskpart
DISKPART> list volume
DISKPART> select volume X ( X is number of the volume with the new capacity )
DISKPART> extend
DISKPART> exit
Check Disk Management to verify the new capacity.
This KB article has a step-by-step video:
Jonathan
Please award points if this is helpful.
defrogger,
Yes you can, no power off or reboot required. There are no drawbacks, but there are a couple of caveats. First, it must be Windows 2000 SP4 (you may need the DiskPart.exe from here) or newer and second, it cannot be the OS boot drive.
For example, if it's your drive D:\, then you can use the vClient to edit the Hard Disk 2 virtual disk with the new size. Login to Windows and open a cmd prompt.
C:\Windows\System32> diskpart
DISKPART> list volume
DISKPART> select volume X ( X is number of the volume with the new capacity )
DISKPART> extend
DISKPART> exit
Check Disk Management to verify the new capacity.
This KB article has a step-by-step video:
Jonathan
Please award points if this is helpful.
If it IS the boot drive, then you can still resize it, you'll just need to go through a different process. Probably the easiest is to resize the vdisk, then attach it to another VM (running the same OS) and apply the diskpart commands to make the formatted partition fill the drive. IF the VM is Server 2008 or Windows 7, then you don't even need to do that. Just reboot and have the partition fill the rest of the drive. If I recall correctly, you can do that from the Storage Manager/Disk Managment console (within the VM)... This is new to Windows 7 and Server 2008...
Network Administrator
VMware VCP4
Consider awarding points for "helpful" and/or "correct" answers.
Good point golddiggie,
I didn't mention the Boot OS option because the question was "Change Hard Drive size while on".
Do you have a link with the changed behavior for resizing volumes in Windows 7/ 2008? That would be pretty handy.
Thanks,
Jonathan
Windows 2008 can now be done on the fly without a reboot.
http://www.petri.co.il/expanding-boot-volumes-for-server-2008-vm.htm
If you found this or any other post helpful please consider the use of the Helpful/Correct buttons to award points
>If it IS the boot drive, then you can still resize it, you'll just need to go through a different process.
Dell ExtPart can extend boot partition online.
---
MCSA, MCTS Hyper-V, VCP 3/4, VMware vExpert
Thanks for the Replies everyone, definitly helpful
Mike
Here's a couple of blog posts that show how to do it using both Dell's ExtPart utility as well as the native functionality in Windows 2008.
Windows 2008:
Dell ExtPart: