Proxmox increase vm disk size ubuntu

How to Increase VM Disk Size on Ubuntu using Proxmox

Proxmox is a popular open-source virtualization platform that allows you to run virtual machines and containers on your server. If you are using Proxmox to run Ubuntu VMs, you may need to increase the disk size of your virtual machine at some point. In this guide, we will show you how to increase the disk size of a Ubuntu VM on Proxmox.

Before you can increase the disk size of a VM on Proxmox, you will need to shut down the VM. Make sure to back up any important data before proceeding with the following steps. Once you have backed up your data, follow these instructions to increase the disk size of your Ubuntu VM on Proxmox:

Step 1: Shut down the VM

Before you can resize the disk, you need to shut down the VM. To do this, simply right-click on the VM in the Proxmox web interface and select “Shutdown.” Wait for the VM to completely power off before proceeding to the next step.

Step 2: Resize the disk in Proxmox

Once the VM is shut down, right-click on the VM in the Proxmox web interface and select “Resize disk.” Enter the new size for the disk in gigabytes and click “Resize disk” to apply the changes. Proxmox will resize the disk and update the VM configuration accordingly.

Step 3: Boot up the VM

After resizing the disk, you can now boot up the VM. Right-click on the VM in the Proxmox web interface and select “Start” to power on the VM. Once the VM is powered on, you can log in and verify that the disk has been resized successfully.

Step 4: Resize the filesystem

Now that the disk size has been increased in Proxmox, you need to resize the filesystem on the VM to take advantage of the additional disk space. You can resize the filesystem using the following command:

sudo resize2fs /dev/sda1

Replace /dev/sda1 with the appropriate device name for your VM. Once you have resized the filesystem, you can check the disk usage using the df command to verify that the additional disk space is available.

Conclusion

By following the steps outlined in this guide, you can easily increase the disk size of a Ubuntu VM on Proxmox. Remember to back up your data before making any changes to your VM and always verify that the disk has been resized successfully before using the additional disk space.

Comments