brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: click the Capacity field to grow a VM vdisk in Unraid

Unraid
~/tips/tip-unraid-expand-vm-vdisk

100G

Give a VM that ran out of space a bigger disk without rebuilding it.

A VM disk always feels big enough on day one. When it fills up, you don’t need to rebuild anything: Unraid can grow the vdisk from the VMs tab.

Stop the VM first. On the VMs tab, click the VM’s name to expand its details, then click the value in the Capacity field of the vdisk you want to grow. It becomes editable. Type the new size and press Enter, for example:

100G

That only grows the virtual disk. The guest still sees the old partition, so after starting the VM you extend it from inside. On Windows that’s Disk Management, right-click C: and Extend Volume. On a Linux VM with LVM, the docs show this sequence, with device names to adjust for your setup:

sudo fdisk /dev/vda
sudo pvresize /dev/vda3
sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

Windows has one known snag. The recovery partition often sits right behind C: and blocks Extend Volume. The docs handle that with diskpart and delete partition override on the recovery partition, which is permanent. Make a backup or a VM snapshot before that step, and skip it entirely if the free space is already next to C:.

The caveat is that this only goes one way. The GUI can’t shrink a vdisk, so pick a sensible size instead of doubling it out of panic.

Further reading: Unraid docs: VM setup, Unraid docs: Windows on a VM

More Unraid tips Change the RAID profile of a Unraid BTRFS pool with Balance Replace a disk in a redundant Unraid pool from the Main tab Test every Unraid drive with the DiskSpeed container See the XML behind a VM with the inline XML view in Unraid 7 Choose where a new VM's disk image is created with Unraid's storage override All Unraid tips (77) All topics

Link