zerodisk size in qm list

tincboy

Renowned Member
Apr 13, 2010
466
6
83
the `qm list` command shows 0 as disk size of all vms,
not in all cases but in more than 3 servers of mine

Any suggestion on what is the issue?
 
You can solve this problem by clicking on Hardware tab, select Hard disk and click Edit.
Check No backup, click ok.
Go back again by clicking edit and uncheck No backup.
Confirm by clicking OK button.

size.png
 
cool, I didn´t know that.
 
update!
 
Thanks, I've update and it works,
But it should be done one by one for each VM, and I've about 20 VM per server, isn't there any way to fix it at once?
 
The config files reside in /etc/pve/local/qemu-server/ on each server in the cluster. You can try a script with sed to edit the config files. Make a local copy of the .conf file and test the script there to make sure no other changes are done.
 
The config files reside in /etc/pve/local/qemu-server/ on each server in the cluster. You can try a script with sed to edit the config files. Make a local copy of the .conf file and test the script there to make sure no other changes are done.
I don't think it helps, the changes must be via GUI to have effect not in conf file
 
Ithe changes must be via GUI to have effect

The plan is to add a 'qm rescan <VMID>' command. This command should scan
all storages for 'unused' disks, and add disk sizes. But so far it is not implemented.
 
Last edited:
The plan is to add a 'qm rescan <VMID>' command. This command should scan
all storages for 'unused' disks, and add disk sizes. But so far it is not implemented.
Please also add a command to scan all VMs at once.
 
When you want to put in stable state?
I still have this issue on latest stable release