Today I noticed it is not possible in the VMM Console to expand a virtual SCSI disk while a Checkpoint is active. Well, that can be problematic while you’re in the middle of an upgrade (yeah, you should have checked that free disk space before starting your actions! 😉 ).
Luckily, it IS possible to expand your virtual disk in the Virtual Machine Manager Command Shell. Follow these steps to expand your hard drive online, while maintaining your checkpoint:
- Start Virtual Machine Manager Command Shell on your server where SCVMM is installed (or any other machine where the console is installed)
- Type and enter:
Get-SCVirtualMachine "yourvm" | Get-SCVirtualDiskDrive #where yourvm is the name of your out-of-diskspace virtual machine
- Enter the following cmdlet.
a) Replace yourvm for your actual Vmname.
b) Replace yourvm_disk_1_… for the name you retrieved in previous step.
c) Replace 80 for the disk size you want the virtual disk to be. I.e.: If the disk is 80GB now, and you need 20GB more, enter 100Get-SCVirtualMachine "yourvm" | Get-SCVirtualDiskDrive | ?{$_.VirtualHardDisk -like "yourvm_DISK_1_22A2E9D7-4DBB--B482-ED6934791BD8"} | Expand-SCVirtualDiskDrive -VirtualHardDiskSizeGB 80
- Log on to the VM, and expand your harddisk in Disk Manager (diskmgmt.msc)
Note: when you revert to your checkpoint, the disk resize action is made undone.
Aboves’ steps are verified on the following configuration:
Windows Server 2012 R2
System Center Virtual Machine Manager 2012 R2 (SCVMM 2012 R2)
Virtual Machine with Windows 10 installed. SCSI Adapter with Differencing Disk type
Did you encounter this error?
Expand-SCVirtualDiskDrive : Expanding the virtual hard disk for a VM with checkpoints is not supported. (Error ID: 850)