Importing a Ceph disk

dpearceFL

Well-Known Member
Jun 1, 2020
115
9
58
66
Doing this all on the command line to create a VM on a Ceph storage. Hoping this is a simple fix.
  1. qm create ...
  2. qemu-img create rbd:Ceph/vm-998-disk-0 41G
    Formatting 'rbd:Ceph/vm-998-disk-0', fmt=raw size=44023414784
When I run the following command, I get this error:
Bash:
# qm disk import 998 rbd:Ceph/vm-998-disk-0 Ceph
rbd:Ceph/vm-998-disk-0: non-existent or non-regular file

What am I doing wrong?
 
Last edited:
Also tried " pvesm alloc Ceph 998 vm-998-disk-0 41G" to create the disk but got the same error on import.
 
Bash:
# pvesm status
Name             Type     Status           Total            Used       Available        %
Ceph              rbd     active      5006524009       609706089      4396817920   12.18%
PBS               pbs     active       791542968        64958192       686303176    8.21%
local             dir     active        38344064         4106644        32257416   10.71%
local-lvm     lvmthin     active        51109888               0        51109888    0.00%
truenas           nfs     active     35013597184       583536640     34430060544    1.67%
 
  1. qemu-img create rbd:Ceph/vm-998-disk-0 41G
does that really create an image on your "Ceph" storage or just a file with that name? qemu-img has not concept of Proxmox VE storage names.

The qm disk import command expects a file to import from.

Overall, what do you want to achieve?