Importing a Ceph disk

dpearceFL

Active Member
Jun 1, 2020
94
3
28
65
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?
 

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!