Solved

Windows 2008 R2 VM on ESXi host needs to extend C drive.  What are the steps in VM and OS?

Posted on 2014-01-02
10
754 Views
Last Modified: 2014-01-03
Hello EE,
I have a VM that is Windows 2008 with a 30GB C: drive and this is just too small.
I need to extend it and I'm thinking I likely need to turn it off and extend the C: drive in the VM Settings?  I"ve never done it so am wondering if somebody has step by step instructions and then when I boot up what to do in the OS?
0
Comment
Question by:bergquistcompany
  • 3
  • 3
  • 3
  • +1
10 Comments
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39752849
You do not need to power off this machine.perform the following steps...

-on the VM Edit Settings
-click on the hard drive and change the value from 30 to X GB (X being the size you want to have the drive)
-apply the settings
-login to the windows machine
-open diskmgmt.msc (disk management)
-beside the C drive you should see "unallocated space"
-right click the C drive and click extend
-click next to confirm
-the drive will extend

You can verify this is disk management and also under windows explorer as well.

Will.
0
 

Accepted Solution

by:
BoscoLopez earned 250 total points
ID: 39752860
Step 1 - With vSphere Client

1.- Open vSphere Client and click on the Windows 2008 R2 VM to select.
2.- Click Right mouse and click to "Edit Properties" on the VM.
3.- At Hardware tab you can see your Virtual disk, click.
4.- With you Virtual Disk "Hard disk 1" (for example), selected, on the right side of the windows, you will see the current size and you will be able to resize this up to the maximum size that the datastore has available*.

*You can make this change with the virtual machine up and running, causing no harm to the system or the apps.

Step 2 At Windows System

1.- Go to -> Computer Management (Start -> Administrative tools)
2.- Storage -> Disk Management
3.- Assuming you just have one disk with name "Disk 0" and you should see that there is now "unallocated" disk-space.
4.- Right-click on the allocated piece of the disk and click "Extend Volume"**
** Allocated piece of the disk equal to "(C:) 30.00 GB NTFS on your case.
5.- You will use the "Extend Volume Wizard" to first select the disk that you want to extend (on the left - Available side) and the clicking "Add" to move it to the right "Selected side) -> Cick Next.
6.- It should onlye take a few seconds and you will see that the disk has been extended to the full size of the vSphere virtual machine disk.
0
 
LVL 119
ID: 39753243
see my EE Article, Step by Step Tutorial Instructions with Screenshots

HOW TO:  Resize a VMware (VMDK) Virtual Disk
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:bergquistcompany
ID: 39753683
it is greyed out though (see attached)
Capture.JPG
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39753688
There may be locked files on the drive, which is why it is greyed out. In this case you will need to power down the VM and then from there make your changes in vSphere to the VM. Boot the VM up and perform the windows extend using disk management.

Will.
0
 
LVL 119

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 250 total points
ID: 39753691
@Spec01 it's not locked! you will notice from screenshot, VM is running on a snapshot!

That's because, extending a disk with a snapshot is not supported!

Remove the Snapshot *CAREFULLY*

HOW TO: VMware Snapshots :- Be Patient

Did you know it had a snapshot?

you may want to check size etc before hitting DELETE ALL!

As an aside, from the screenshot, this looks like a P2Ved VM, you could tidy up and remove the devices not in use. and you may not require 4 vCPUs!
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39753700
Ahhh, missed that one. Good catch Andrew!
0
 

Author Comment

by:bergquistcompany
ID: 39753728
My bad I was going to make a snapshot before doing this but I'll remove and try again.
0
 
LVL 119
ID: 39753740
Make sure you have a FULL BACKUP, not a snapshot, as a backup, before you mangle your partitions! (as per my Article!)
0
 

Author Closing Comment

by:bergquistcompany
ID: 39754130
Thanks for the excellent guidance!
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VMware 6.5:  USB devices 16 58
host cache 3 33
Cleaning up a desktop after leaving a domain 3 25
How to find computer SID in windows server 2008 r2 3 40
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

772 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