Help with Windows Server 2008 R2 - vHDD not extending after KVM extend

General support questions
Post Reply
Jbotha01
Posts: 2
Joined: 2017/05/24 08:24:52

Help with Windows Server 2008 R2 - vHDD not extending after KVM extend

Post by Jbotha01 » 2017/05/24 10:08:39

Good morning everyone!

I hope that you can assist me. I have searched the topics and there is not really a perfect fit to help me.

I have the following situation:
---------------------------------------------------------
1) CentOS 6, with KVM
2) VM Guest machines on this KVM environment
3) Quite a few Windows Server 2008 R2 Guest servers
4) shared NFS volume where the virtual VM files/images are located
5) I inherited this environment, so unfortunately I do not know how these VM guest machines were created (whether "virtio" was indeed used)
---------------------------------------------------------
My problem:
---------------
As an administrator (I have used Linux a lot in the past and have recently started re-using KVM again (in admin role).

I have to extend a D:-drive of a specific Windows Server 2008 R2 machine.

I have managed to extend the VM vHDD file perfectly with the "qemu-img resize" commant. This worked (I tried this twice). BUT - even after rebooting Windows Server 2008 R2, running Disk Management, and "Rescanning" the Disks, I do not see this additional free space. I have done this MANY times in the past with Windows Server 2012 and it worked perfectly. I have also done this in other environments with Windows Server 2008 R2.

But - in this situation. No luck.
BTW - I have been in IT for 25 years and have worked in many environments. I have Googled first and tried everything I could - other than GPARTED, or another commercial Partition Manager software. But - I am not convinced that this will work.

Please supply ALL/ANY advice?

Many thanks.
Last edited by Jbotha01 on 2017/05/24 11:40:01, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Help with Windows Server 2008 R2 - vHDD not extending after KVM extend

Post by TrevorH » 2017/05/24 10:13:56

You may need to "power off" the Windows VM to get it to see an expanded disk image.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Jbotha01
Posts: 2
Joined: 2017/05/24 08:24:52

Re: Help with Windows Server 2008 R2 - vHDD not extending after KVM extend

Post by Jbotha01 » 2017/05/24 11:05:26

Hi Trevor -

I really appreciate your feedback. Unfortunately, that did not work for me. Tried that. :(

Waiting for some more suggestions :)

Thank you.

Post Reply