Proxmox: Increase VM Disk Size, Then Grow the Partition and FS
Running out of space inside a virtual machine is one of the most common Proxmox chores, and the fix is not a single click. When you increase a VM disk size in Proxmox, the host makes the virtual disk bigger, but the guest operating system still sees its old partition and filesystem layout. You need a short second stage inside the VM before the space is usable.
This guide walks through both stages with the exact commands for the common Linux layouts (plain ext4, XFS and LVM), plus notes for Windows guests and LXC containers. Commands were checked against the Proxmox VE 9.3 documentation and the relevant Linux manual pages as of December 2026.
Before you start: back up and identify the disk
Growing a disk is low risk when done correctly, but partition editing is exactly the kind of task where a typo can wipe data. Take a backup first. In the Proxmox GUI, select the VM, open Backup and run Backup now to a storage that is not the one you’re about to change. A snapshot is not a substitute: it lives on the same storage as the disk it protects.
Next, find out three things:
- The disk’s bus name and number. In the VM’s Hardware tab you’ll see entries such as
scsi0,virtio0orsata0. You need this exact name for the command line. - Free space on the backing storage. Under Datacenter > Storage (or the node’s storage list), confirm the pool or volume group has room for the extra gigabytes. Thin-provisioned storage will accept a resize it can’t actually back if the pool later fills up, so check real free space, not just the number you’re allowed to type.
- The guest’s current layout. Inside the VM, run
lsblk -fanddf -h. Note which partition holds the filesystem you want to grow, whether it sits on LVM, and what filesystem type it uses.
Step 1: Grow the virtual disk on the Proxmox host
Using the web interface
Select the VM, then go to Hardware > Hard Disk > Disk Action > Resize. Enter the amount to add in GiB (the dialog asks for the increment, not the final size) and confirm. The operation is quick on most storage types because no data is copied.
Using the command line
On the Proxmox host shell, the documented syntax is:
qm resize <vmid> <disk> <size>
qm resize is an alias for qm disk resize. To add 20 GiB to disk scsi0 of VM 100:
qm resize 100 scsi0 +20G
The plus sign matters. According to the qm manual, a value with + is added to the current size, while a value without it is treated as the new absolute size. Writing qm resize 100 scsi0 20G on a 32 GiB disk would be a request to shrink, which Proxmox refuses. Using the relative form avoids that confusion.
Step 2: Confirm the guest sees the new size
The Proxmox wiki notes that Linux guests with VirtIO block disks detect the new size online with kernel 3.6 or newer, and VirtIO SCSI disks with kernel 3.7 or newer. Any currently supported distribution clears that bar. Check from inside the VM:
lsblk
sudo dmesg | grep -i "capacity change"
lsblk should now show the larger disk size, while the partition below it is unchanged. If the disk still shows the old size, a reboot of the guest will make it re-read the device. Windows guests need up-to-date VirtIO drivers to notice online.
Step 3: Grow the partition inside the guest
The new space is unallocated at the end of the disk. The partition you want to grow must be the last one, directly in front of that free space. If something else sits in between (a swap partition is the usual culprit on older Debian-style layouts), you’ll need the offline method described later.
Option A: growpart (simplest)
growpart extends one partition to fill the available space. On Debian and Ubuntu it’s part of the cloud-guest-utils package. Note the space between disk and partition number:
sudo apt install cloud-guest-utils
sudo growpart /dev/sda 2
Here /dev/sda is the disk and 2 is the partition number. On a VirtIO block disk the device is usually /dev/vda instead.
Option B: parted
The Proxmox wiki demonstrates the same step with parted. Open the disk with sudo parted /dev/sda, run print, and if parted warns that not all the space is used on a GPT disk, answer Fix. Then run resizepart 2 100% (replace 2 with your partition number) and quit. On an old MBR layout with an extended partition, the wiki says to resize the extended partition first and the logical partition inside it second.
Step 4: Grow the filesystem (exact commands per layout)
After the partition grows, the filesystem inside it still has its old size. Pick the row matching your lsblk -f output:
| Layout | Command (filesystem can stay mounted) | Notes |
|---|---|---|
| ext4 directly on a partition | sudo resize2fs /dev/sda2 |
Takes the device name. Online growth works on ext3/ext4 per the resize2fs manual. |
| XFS directly on a partition | sudo xfs_growfs / |
Takes the mount point (or device) of a mounted XFS filesystem. XFS can grow but not shrink. |
| LVM (ext4 or XFS inside) | sudo pvresize /dev/sda3 then sudo lvresize --extents +100%FREE --resizefs /dev/VG/LV |
--resizefs grows the filesystem in the same step. |
Worked example: LVM-based Linux VM
Suppose lsblk shows a 32 GiB disk sda that you’ve just grown to 52 GiB, with partition sda3 holding an LVM physical volume and the root logical volume inside it:
sudo growpart /dev/sda 3
sudo pvresize /dev/sda3
sudo lvdisplay
sudo lvresize --extents +100%FREE --resizefs /dev/VGNAME/root
df -h /
lvdisplay prints the exact volume group and logical volume path; substitute it for /dev/VGNAME/root. The Proxmox wiki notes that this works with ext4 and XFS while the filesystem is mounted. If you only want part of the space, replace --extents +100%FREE with a fixed size such as --size +10G and keep the remainder in the volume group for later.
The arithmetic is straightforward: after a 32 GiB disk receives +20G, the guest has roughly 20 GiB of unallocated space; growpart hands it to sda3, pvresize hands it to the volume group, and lvresize hands it to the root volume. df -h / should then report about 20 GiB more, minus a small amount of filesystem metadata.
Windows guests and LXC containers
Windows
Once Windows sees the larger disk, open Disk Management as an administrator, right-click the volume in front of the unallocated space and choose Extend Volume. The Proxmox wiki points out a Windows quirk: if the extra space doesn’t appear, Fast Startup may be preventing a full re-scan. Run shutdown -s -t 0 from a command prompt for a normal full shutdown, start the VM again, and the space should show up.
A recovery partition sitting after the C: drive blocks Extend Volume in the same way a Linux swap partition does. In that case, use an offline partition tool as described below, and read its warnings about Windows partitions.
LXC containers
Containers don’t have a partition table of their own to edit. Their root disk and mount points are resized with pct resize, which the pct manual describes as “Resize a container mount point”. For example, to add 8 GiB to container 105’s root disk:
pct resize 105 rootfs +8G
In the GUI, the equivalent action is on the container’s Resources tab after selecting the disk. Check df -h inside the container afterward to confirm the new size.
When the partition isn’t at the end: the offline method
If another partition sits between your filesystem and the free space, online tools can’t simply extend it. The Proxmox wiki recommends booting the VM from a live ISO that includes GParted, attached as a CD-ROM with boot order changed to boot from it first. From there you can move or delete and recreate the blocking partition (for swap, remember to re-enable it and update /etc/fstab if its UUID changes), then grow your data partition.
Two caveats from the wiki: GParted and most similar tools don’t handle LVM or Windows dynamic disks, and GParted shows extra warnings for some Windows operations. For an LVM guest stuck behind another partition, a cleaner route is often to add a second virtual disk, make it a new physical volume with pvcreate, add it with vgextend, and then grow the logical volume.
Troubleshooting a disk resize
- lsblk shows the old disk size. Reboot the guest, or check that the resize ran against the right VM ID and disk name.
qm config <vmid>on the host shows each disk's configured size. - growpart says "NOCHANGE". The partition already ends at the last usable sector, or the free space isn't directly behind it. Re-run
lsblkand confirm you passed the correct partition number. - parted warns about the GPT backup header. That's expected after a disk grows: the backup GPT is still at the old end. Answer
Fix, as the Proxmox wiki shows. - resize2fs reports "Bad magic number". You pointed it at the wrong device, often a partition that holds LVM rather than ext4. Use
lsblk -fto find the filesystem's actual device. - xfs_growfs complains it's not a mounted XFS filesystem. Give it the mount point of the XFS filesystem (for example
/or/srv), and make sure the filesystem is mounted. - The storage pool filled up afterward. Thin pools can be over-committed. Free space on the pool, or move the disk to roomier storage with the VM's Disk Action > Move Storage.
Planning so you resize less often
Most resize jobs are avoidable with a little planning when you first create a VM. Keep bulky, growing data (media libraries, backups, databases) on a separate virtual disk or a network share rather than on the boot disk, so the system disk can stay small and predictable. LVM inside the guest also helps: adding a second disk to a volume group is often less fiddly than repartitioning.
If you’re still deciding how to lay out storage on a new host, our Proxmox setup guide covers storage choices at install time, and running Home Assistant OS on Proxmox discusses how much disk an appliance VM like that needs over time. For more Proxmox tutorials and comparisons, browse the Proxmox section.
Frequently asked questions
Do I need to shut down the VM to resize its disk?
Usually not. The Proxmox wiki says the qm command can resize disks online or offline, and Linux guests with VirtIO disks see the new size without a reboot on kernel 3.6 or newer. Windows guests need current VirtIO drivers.
Can I shrink a Proxmox VM disk?
Not through the Proxmox API. The qm manual states shrinking is not supported, and the wiki warns that removing space from the end of a disk will probably destroy the filesystem. Shrinking is a manual, offline job that starts inside the guest.
Why does df still show the old size after qm resize?
Because only the virtual disk grew. The partition table and filesystem inside the guest still describe the old size, so you must grow the partition and then the filesystem before df reports the new space.
What does the plus sign in qm resize mean?
With a plus sign the value is added to the current size (+10G adds 10 GiB). Without it, the value is taken as the new absolute size, per the qm manual.
Sources
- Resize disks: Proxmox VE Wiki
- qm(1) manual page: Proxmox Server Solutions
- pct(1) manual page: Proxmox Server Solutions
- growpart - extend a partition in a partition table to fill available space: Ubuntu Manpages
- cloud-guest-utils package (trixie): Debian
- resize2fs(8): man7.org
- xfs_growfs(8): man7.org
We research every guide from manufacturer documentation, government and standards bodies, and other primary sources, which are cited at the end of each article. We do not accept payment for coverage. Read our editorial policy to see how articles are researched, fact-checked and updated, or tell us if something is out of date.