Discussion:
[libvirt-users] Possible to resize a Windows guest's disk while online?
Andre Goree
2018-04-11 17:30:26 UTC
Permalink
I'm looking for a way to online resize a Windows disk -- i.e., be able
to resize the disk without shutting down, rebooting, or detaching the
disk.

Is this at all possible? Or am I just barking up the wrong tree? I'm
not finding a way to do this and even Amazon has a weird workaround, in
which the user must write data to the newly resized-drive in order to
recognize the new size without taking the disk or the VM offline.

[Obligatory] YAY Microsoft.
--
Andre Goree
-=-=-=-=-=-
Email - andre at drenet.net
Website - http://blog.drenet.net
PGP key - http://www.drenet.net/pubkey.html
-=-=-=-=-=-
Martin Kletzander
2018-04-17 13:56:42 UTC
Permalink
Post by Andre Goree
I'm looking for a way to online resize a Windows disk -- i.e., be able
to resize the disk without shutting down, rebooting, or detaching the
disk.
virsh blockresize $domain $disk $size

and then resize the disk in the disk managing utility inside the guest. I don't
thinkg qemu-guest-agent can do that for you.
Post by Andre Goree
Is this at all possible? Or am I just barking up the wrong tree? I'm
not finding a way to do this and even Amazon has a weird workaround, in
which the user must write data to the newly resized-drive in order to
recognize the new size without taking the disk or the VM offline.
[Obligatory] YAY Microsoft.
--
Andre Goree
-=-=-=-=-=-
Email - andre at drenet.net
Website - http://blog.drenet.net
PGP key - http://www.drenet.net/pubkey.html
-=-=-=-=-=-
_______________________________________________
libvirt-users mailing list
https://www.redhat.com/mailman/listinfo/libvirt-users
Andre Goree
2018-04-20 18:03:46 UTC
Permalink
Post by Martin Kletzander
Post by Andre Goree
I'm looking for a way to online resize a Windows disk -- i.e., be able
to resize the disk without shutting down, rebooting, or detaching the
disk.
virsh blockresize $domain $disk $size
and then resize the disk in the disk managing utility inside the guest.
I don't
thinkg qemu-guest-agent can do that for you.
Thanks, yeah this was actually more a question about the Windows guest
specifically, which I suppose should not have been answered on this list
haha.

Just thought that maybe I'm not the only one who's ever tried to resize
an RBD disk (didn't mention Ceph in my OP) while it was still attached
to a Windows Server 2016, and have that guest immediately realize the
additional disk space -- even if necessary to use Disk Management >
Action > Rescan Disks (which works on 2k8 & 2k12, but does nothing on
2k16). Frustration ensues, lel
--
Andre Goree
-=-=-=-=-=-
Email - andre at drenet.net
Website - http://blog.drenet.net
PGP key - http://www.drenet.net/pubkey.html
-=-=-=-=-=-
Continue reading on narkive:
Search results for '[libvirt-users] Possible to resize a Windows guest's disk while online?' (Questions and Answers)
14
replies
Creating a "Why we should switch to Mac" Speech. Help Please?
started 2007-10-26 15:44:14 UTC
desktops
Loading...