Custom disk names make it easier to identify disk purposes in multi-VM and multi-disk environments. To use custom disk names instead of the default vm-100-disk-0 format for your virtual machines on Proxmox, use this command from the Proxmox shell: pvesm alloc <storage-name> <vm-id> vm-<vm-id>-<disk-name> <disk-size>, where:

  • <storage-name> is the storage device name where the disk will be created, for example, local-lvm
  • <vm-id> is the virtual machine ID number, for example, 100
  • <disk-name> is the desired disk name, for example, customer_database
  • <disk-size> is the disk size with units, for example, 100G

Note: The disk name must follow the format vm-<vm-id>-<disk-name>, as Proxmox internally relies on this naming scheme.

root@proxmox:~# pvesm alloc local-lvm 103 vm-103-test 1G
  Logical volume "vm-103-test" created.
  Logical volume pve/vm-103-test changed.
successfully created 'local-lvm:vm-103-test'

Next, for the newly created disk to show up in the Proxmox UI, execute qm disk rescan from the shell.

root@proxmox:~# qm disk rescan
rescan volumes...
VM 103 add unreferenced volume 'local-lvm:vm-103-test' as 'unused0' to config

Finally, from the Proxmox UI:

  • Navigate to VM → Hardware
  • Double-click on Unused Disk N: <storage-name>:vm-<vm-id>-<disk-name>
  • Set disk properties and press Add.

Tested with Proxmox Virtual Environment 9.0.3.