Configuration file 'nodes/proxmox01/qemu-server/101.conf' does not exist

mhayhurst

Well-Known Member
Jul 21, 2016
108
5
58
43
Hello everyone,

I'm trying to import a VHDX file which was converted to RAW into a Ceph pool (cephfs_vm) but receive the following error:

Code:
root@proxmox01:/mnt/pve/cephfs# qm importdisk 101 ./vm-101-disk-0 cephfs_vm
Configuration file 'nodes/proxmox01/qemu-server/101.conf' does not exist

That Ceph pool does exist:

Code:
root@proxmox01:/mnt/pve/cephfs# pveceph lspools
Name                       size   min_size     pg_num     %-used                 used
cephfs_data                   3          2        533       0.11        1653106999296
cephfs_metadata               3          2        133       0.00            170066385
cephfs_vm                     3          2        533       0.01          97702052877
scbench                       3          2        128       0.01          96674709504

Code:
root@proxmox01:/mnt/pve/cephfs# pvesm status
Name             Type     Status           Total            Used       Available        %
cephfs         cephfs     active      5328375808      1129889792      4198486016   21.21%
cephfs_vm         rbd     active      4230178355        31688499      4198489856    0.75%
local             dir   disabled               0               0               0      N/A
local-lvm     lvmthin   disabled               0               0               0      N/A
scbench           rbd     active      4229959424        31469568      4198489856    0.74%


And that VM (101) is in the cephfs_vm pool:

Code:
root@proxmox01:/mnt/pve/cephfs# rbd list cephfs_vm
vm-100-disk-0
vm-100-disk-1
vm-101-disk-0
vm-102-disk-0
vm-102-disk-1
vm-104-disk-0


There are no config files in the qemu-server directory either:

Code:
root@proxmox01:/mnt/pve/cephfs# ls -alh /etc/pve/qemu-server/
total 0
drwxr-xr-x 2 root www-data 0 Jul 23 12:45 .
drwxr-xr-x 2 root www-data 0 Jul 23 12:45 ..

Where are the VM config files on a Ceph setup or am I going about this the wrong way?
 
Hi,
you have to create a config for this VM before you can import a disk.
The vm-100-disk-0 must be a leftover from a former existing VM.
 
Hi,
you have to create a config for this VM before you can import a disk.
The vm-100-disk-0 must be a leftover from a former existing VM.

Hi Wolfgang,

It's actually VM 101 (vm-101-disk-0) I'm working with...vm-100-disk-0 is attached to another VM that is irrelevant. I created VM 101 and by default vm-101-disk-0 was created in the cephfs_vm pool. I'm now trying to import a converted VHDX file of the same name (vm-101-disk-0) to overwrite the current VM 101 disk. Am I able to use the config that was created as a result of creating VM 101 because I cannot find it anywhere?
 
I'm now trying to import a converted VHDX file of the same name (vm-101-disk-0) to overwrite the current VM 101 disk
You create a new disk at the import process, with the name "vm-101-disk-1" and you have to remove "vm-101-disk-0" manual.

root@proxmox01:/mnt/pve/cephfs# qm importdisk 101 ./vm-101-disk-0 cephfs_vm
Configuration file 'nodes/proxmox01/qemu-server/101.conf' does not exist
But if you get this error, the VM config of VM 101 is not on this node or does not exists.
Maybe you have the config on another node?
This means you see the VM in the GUI on another node.
 
You create a new disk at the import process, with the name "vm-101-disk-1" and you have to remove "vm-101-disk-0" manual.

I removed the disk from VM 101 through the UI and then executed:
Code:
rbd rm cephfs_vm/vm-101-disk-0
which seems to have done the
trick!


But if you get this error, the VM config of VM 101 is not on this node or does not exists.
Maybe you have the config on another node?
This means you see the VM in the GUI on another node.

Doh! You were correct! I was copying the VHDX from an external USB drive plugged into Proxmox1 but VM 101 was sitting on Proxmox4. I thought since everything was in the Ceph pool (and clustered) the config files would be accessible from any node but thanks for pointing that out! I'm currently importing the disk so we will see how that goes.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!