How to Integrate External Ceph Storage with Proxmox VE

Posted by

Please ensure you have a Ceph cluster.

If you have limited resources, you can follow this guide: “How to Set Up a Ceph Cluster on a Single Node”

If you want to install on Proxmox VE single node, you can follow this guide: “Proxmox + Ceph: Single Node Installation for Test Lab or Home Setup”

If you want to install ceph cluster using CLI, you can follow this guide: “How to Set Up a Multi-Node Ceph Cluster Using the Command Line”

If you want to install ceph cluster using GUI, you can follow this guide: “How to Set Up a Multi-Node Ceph Cluster Using the Dashboard GUI”

To integrate external Ceph storage, especially RBD (RADOS Block Device) into Proxmox, follow the steps below.

– Create user and Permission

ceph auth add client.proxmox osd 'profile rbd' mon 'profile rbd'
ceph auth get client.proxmox

Note: Above command will create an account with name proxmox (client.proxmox). Please adjust with your need

Below is the result of the above command

[root@ceph-singlenode ~]# ceph auth add client.proxmox osd 'profile rbd' mon 'profile rbd'
added key for client.proxmox

[root@ceph-singlenode ~]# ceph auth get client.proxmox 
[client.proxmox]
        key = AQAsngdouXBsNRAAs+RP7F8w/Og3qh/SRo0ehg==
        caps mon = "profile rbd"
        caps osd = "profile rbd"

The result from the ceph auth get client.proxmox command will be used when adding RBD storage in Proxmox

– Integrating with Proxmox

Select Datacenter | Storage | Add | RBD

Note:

ID : Name for storage. Example cephstorage
Pool : The name of the Pool that has been created on Ceph. If you follow this blog to create a ceph cluster, please see“# Test by creating a pool” section
Monitor(s) : IP address of ceph monitor. If you have more than one monitor (multi monitor), separate with comma for every monitor IPs (ex : 192.168.1.51,192.168.1.52,192.168.1.53)
User name : The user that has been created from the above command
Keyring : Fill with the result from ceph auth get command above

Clik Add

You can see ceph RBD mounted on Proxmox like follow

When create a new VM (KVM), you can choose ceph RBD as Storage VM

Good Luck 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.