BUG: Proxmox VE can't hande odd sized disk images

clipcarl

New Member
Jul 1, 2008
17
0
1
Proxmox VE doesn't like it if an disk image for a KVM virtual machine is not an exact (integral) number of megabytes.

/usr/share/perl5/PVE/Config.pm line 331 is

if ($line =~ m/^(\d+):([a-z]+):(\d+):(\S+):(\S+):(\S+):(\d+):(\d+):(\d+):(\d+):(\d+):(\d+):$/) {

and should be

if ($line =~ m/^(\d+):([a-z]+):(\d+):(\S+):(\S+):(\S+):(\d+):(\d+):([0-9.]+):([0-9.]+):(\d+):(\d+):$/) {


This causes at least one minor issue where when creating new VMs it does not properly suggest the next available unused VMID.

Proxmox VE itself creates disk images that are an integral number of megabytes but the problem occurs with disk images that are comverted from VMWare.
 
we will check this. thanks.