Importing a VM- 'config file does not exist'

Aug 24, 2021
24
2
8
57
I've been getting help from @fabian in this thread-
https://forum.proxmox.com/threads/zfs-mirror-rebuild.109411/#post-470449

But this is a new error, thus a new thread.
I've been able to get the VMs to local storage, but nothing I do will import them
Closest I can get is

qm importdisk 300 dev/zvol/rpool/data/vm-103-disk-0.raw local-zfs --format qcow2

which gives this error-

Configuration file 'nodes/pve02/qemu-server/300.conf' does not exist

So I'm stuck again, how can I import these VMs and run them please?
 
you can only import into an existing VM, so you need to create the VM '300' first. if you are on the latest PVE version, you can create + import in one go
Code:
qm create 300 ... -scsi0 local-zfs:0,import-from=/path/to/image/file,...

(... is space to add other options like NICs, ...)

or you can create it using the GUI without any disks, and then add the disks using qm importdisk