Copy disk into ceph pool

Feb 6, 2025
543
230
43
Hi all, I am new to Proxmox, and working on a proof of concept setup. I've set up a couple servers, and ceph. I am working on test-migrating a VM from Virtuozzo to Proxmox.

Is there a way to copy the disk image into the ceph/rbd pool?

I can create a cephfs and access it to copy files there.

However if I create a VM I am only offered the pool or local as storage, but not cephfs.

I feel like I am missing something so would appreciate a pointer, thanks.
 
Hi @SteveITS , welcome to the forum.

The first question is - how did you create your CephFS layer? Was it on PVE native Ceph? External Ceph?

That said, in both cases you need to create a CephFS storage pool: https://pve.proxmox.com/wiki/Storage:_CephFS
You need to mark it available for Disk Image storage (and other types as required).
Once PVE is made aware of your CephFS, there will be a new drop down for VM storage.

You could also mount CephFS directly on the hypervisor and use it as simple "Directory Storage Pool".



Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Thanks. :)

CephFS was created via the PVE web GUI. There is nothing external in use.

Disk Image is not an option for its Content dropdown...? I have this in Datacenter > Storage:
1739302555717.png

Those are also the only choices when I Add a new CephFS.

Assuming it can be made to work, is there a functional difference between using a RBD pool and CephFS for VM disks? Currently it seems like I can't "see into" the pool storage and can't store disks in CephFS. I feel like I'm missing something small...
 
I get that but I can't add that Disk Image attribute to CephFS.
Turns out that is correct. According to this wiki (https://pve.proxmox.com/wiki/Storage:_CephFS) Images is not one of the supported options. Which makes sense as the CephFS is built on top of Ceph which, in your case, is more suitable for disk Image storage.

Overall, is there a way to import an existing disk image into Proxmox and use Ceph?
Yes, use "qm disk import" command:
https://pve.proxmox.com/pve-docs/qm...sk import <vmid> <source> <storage> [OPTIONS]


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Thanks! That is what I was missing. After importing the .hds file, I assigned the new disk in the boot order, and it boots.

I also see now there is an option for an existing disk, to Disk Action > Move Storage, so presumably one could attach a disk file stored in "local" and then move it into Ceph that way. (I assume, the same as "qm move disk")

While I'm here, is there a way to export the image out of Ceph? Not seeing that in the qm manual...

Ceph is throwing me slightly since Virtuozzo Storage mounts the storage as a file system by default...closer to CephFS I guess. So just trying to cover bases.