"Image" consuming all of my storage

Shazam77

New Member
Sep 14, 2025
3
0
1
Hi All,

BRAND new to proxmox with very minimal VM and Linux experience. I'm trying to spin up a KVM server from a qcow2 file that I have in local/var/lib/vz/images and I am running into issues. I've created the VM:

qm config 868
agent: enabled=1
bios: seabios
boot: order=virtio0
cores: 4
cpu: host
hotplug: disk,network,usb,cpu
machine: q35
memory: 8000
meta: creation-qemu=10.0.2,ctime=1763028249
name: palo-Broker-VM-kvm
net0: virtio=BC:24:11:FC:EA:27,bridge=vmbr0,tag=1
net1: virtio=BC:24:11:AD:C9:23,bridge=vmbr0,tag=100
net2: virtio=BC:24:11:30:85:FE,bridge=vmbr0,tag=250
net3: virtio=BC:24:11:39:D8:EF,bridge=vmbr0,tag=20
numa: 0
ostype: l26
scsihw: virtio-scsi-pci
serial0: socket
smbios1: uuid=784fac9d-f96b-4224-8244-0e93b1bfbaee
sockets: 1
unused0: Image:vm-868-disk-0
vmgenid: dcbfb1a9-640b-4b46-a10f-16379154da07

when I issue the command qm importdisk 868 "filename.qcow2" images --format qcow2 and I get the error message "filename.qcow2": non-existent or non-regular file

The file is definately in the folder, and when I extend the path in the command to qm importdisk 868 broker-vm-28.0.100.qcow2 /var/lib/vz/images/ --format qcow2 i get the error

storage: invalid format - storage ID '/var/lib/vz/images/' contains illegal characters

help!!
 
Hi!

The file is definately in the folder, and when I extend the path in the command to qm importdisk 868 broker-vm-28.0.100.qcow2 /var/lib/vz/images/ --format qcow2 i get the error

storage: invalid format - storage ID '/var/lib/vz/images/' contains illegal characters
Proxmox VE abstracts away paths with storages, so that users can store VM images, backups, etc. on various storage types (e.g. ext4, zfs, LVM, RBD, iSCSI, etc.). There's a help command to show you the correct command line usage of the command:

Code:
qm help importdisk
USAGE: qm disk import <vmid> <source> <storage> [OPTIONS]

  Import an external disk image as an unused disk in a VM. The
   image format has to be supported by qemu-img(1).

  <vmid>     <integer> (100 - 999999999)
             The (unique) ID of the VM.

  <source>   <string>
             Path to the disk image to import

  <storage>  <storage ID>
             Target storage ID
            
[...]

On standard installations with e.g. ext4, the storage local is setup to the path /var/lib/vz/. So if you want to import the image /var/lib/vz/broker-vm-28.0.100.qcow2 as a disk to the VM 868 and place it on the storage local, the correct command would be qm importdisk 868 /var/lib/vz/broker-vm-28.0.100.qcow2 local --format qcow2.