How to add hard disk to VM?

JAS38

New Member
Apr 13, 2022
6
7
1
I want to add a hard disk to a VM, but the Disk Size is wrong.

The available capacity is 4.83GB:
1650431798100.png

But the Disk Size shows 32 GiB:
1650431846900.png

I tried adjusting to 4.8 GiB:
1650431878400.png

But now the VM says 5033165K, which is larger than 4.8G.

1650431916100.png

May I need to add the drive to the VM via command line?
 

Attachments

  • 1650431751200.png
    1650431751200.png
    24 KB · Views: 14
Hi,

5033165 KiB is exactly 4.8GiB, which is what you entered in the disk size field. Note that GiB != GB. 32 GiB is the default and given that the "omv" storage is an LVM thin pool, blocks only get allocated when written. Hence, you can have more virtual storage for your VMs than actual physical storage in your machine, as long as not all VMs use their storage to the full extend at the same time.
 
...you can have more virtual storage for your VMs than actual physical storage in your machine...

What size will the guest see if I accepted the 32 GiB default? 32 GiB?
I would rather not have the guest think it has more space than it has, as this would presumably not provide accurate statistics for the guest. Nor would I get alerts to if/when the guest's drive fills up.

Is there a feature where Proxmox can automatically assign the maximum size of the guest virtual disk based on the node's LVM size (4.83 GB)?
 
Is there a feature where Proxmox can automatically assign the maximum size of the guest virtual disk based on the node's LVM size (4.83 GB)?
You can ask google "4.83 GB to GiB" and it will return the converted value: 4.498288 GiB
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!