Hello
I was using some scripts to create virtual machines. After latest updates on pve-storage packages qm create returns error when creating machines with more than one virtual disk on local-lvm storage.
Creating a VM with a single disk works fine:
Before the pve-storage package update everything was fine.
Proxmox 5, packages up-to-date.
ii libpve-storage-perl 5.0-27 all Proxmox VE storage management library
I was using some scripts to create virtual machines. After latest updates on pve-storage packages qm create returns error when creating machines with more than one virtual disk on local-lvm storage.
Code:
# /usr/sbin/qm create 101 --name test --ostype l26 --cpu cputype=host --sockets 4 --cores 1 --numa no --memory 4096 --scsihw virtio-scsi-pci --scsi0 local-lvm:20,discard=on --scsi1 local-lvm:1,backup=no,replicate=no,discard=on --net0 virtio,bridge=vmbr0 --ide2 NFS-ISO:iso/debian-9.5.0-amd64-netinst.iso,media=cdrom --boot d --onboot yes
Using default stripesize 64.00 KiB.
Logical volume "vm-101-disk-0" created.
Use of uninitialized value $fmt in string ne at /usr/share/perl5/PVE/Storage/LvmThinPlugin.pm line 87.
Use of uninitialized value $fmt in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LvmThinPlugin.pm line 87.
Logical volume "vm-101-disk-0" successfully removed
unable to create VM 101 - unsupported format '' at /usr/share/perl5/PVE/Storage/LvmThinPlugin.pm line 87.
Creating a VM with a single disk works fine:
Code:
# /usr/sbin/qm create 101 --name test --ostype l26 --cpu cputype=host --sockets 4 --cores 1 --numa no --memory 4096 --scsihw virtio-scsi-pci --scsi0 local-lvm:20,discard=on --net0 virtio,bridge=vmbr0 --ide2 NFS-ISO:iso/debian-9.5.0-amd64-netinst.iso,media=cdrom --boot d --onboot yes
Using default stripesize 64.00 KiB.
Logical volume "vm-101-disk-0" created.
Before the pve-storage package update everything was fine.
Proxmox 5, packages up-to-date.
ii libpve-storage-perl 5.0-27 all Proxmox VE storage management library
Last edited: