Yes. You can change that simply to edit your VM configuration.Hello all,
I just P2V a server and i noticed that the size of the disk is displayed as KB and MB and not GB.
View attachment 74489
can i change that to GB?
nano /etc/pve/qemu-server/129.conf
scsi0: local-lvm:vm-123-disk-1,discard=on,iothread=1,size=35G,ssd=1
nd change a line like this (for example) to GB -> size=35G
Yes exactly, I always make it a bit bigger.As for now i don't remember the exact size of the original disk, but can i change in the config and setting like 932GB? Will it still work?
Yes exactly, that's the reason. Just use full GB sizes. e.g. 44GB, 51GB, 2TB, etc.i just tried to create another vm with a decimal disk and it show as KB and not GB, maybe the problem is the decimal value?
I will modify the config file then.Yes exactly, I always make it a bit bigger.
qm rescan --vmid <ID>
will update the sizes in the configuration to their actual values again. Simply editing the configuration is just lying to yourself qm disk resize
for that.disk=3.5G (3584.2MB)
--then you can comprehend the difference between human numbering and logical, and adjust accordingly. I also just think the displayed size and the increment size must be in parity - or else dumb users like me (I own the title!) will screw it up as above!feel free to open a feature request on the bugtracker (after checking none exists already): https://bugzilla.proxmox.com/Can I make a friendly suggestion to have an option in the GUI to change the display size?
I appreciate that KB/MB is more granular but in my opinion it opens users up to user error when performing actions like resizing disks if they have to convert between the two. I also think having to manually change the config file size is both too manual (I assume it also doesn't change if the disk size does, so you're just asking for it to mismatch and cause issues) and too easy to screw up.
For example; just now I wanted to resize a default Ubuntu setup from 3584M to 80GB. I assumed (yes, I know what they say about assuming!) that the resize option would be in the same format as the displayed size, so I pulled up a converter to work out 80 GB logical as MB, minus 3584, to get to 80 GB. (78,336 if you're curious!) Instead, I created an 80,000 GB disk! Now naturally that wasn't going to work, but since you can't reduce disk sizes, only increase them, I had to restart from scratch. Not a big deal as it was a new VM but rather annoying, and can you imagine if that was a well established VM?
If the display size can be adjusted--and bonus points if you can display it with a rounded and then full size number, e.g.disk=3.5G (3584.2MB)
--then you can comprehend the difference between human numbering and logical, and adjust accordingly. I also just think the displayed size and the increment size must be in parity - or else dumb users like me (I own the title!) will screw it up as above!
Anyway thanks for your consideration regardless and for all the help in general in forums and docs. You're appreciated, Proxmox team!
Thanks Fiona and apologies for the delay in saying as much!! Help and consideration like this is always greatly appreciated!Hi,
feel free to open a feature request on the bugtracker (after checking none exists already): https://bugzilla.proxmox.com/
IMHO, it would be good to improve the resize dialog to display old and new size and be able to select the increment unit there:
EDIT: opened two issues now:
https://bugzilla.proxmox.com/show_bug.cgi?id=5871
https://bugzilla.proxmox.com/show_bug.cgi?id=5872