Header Background
On this Page:

Overview

Connecting Croit to Proxmox is relatively simple and has 2 variations:

  1. RBD settings are changed directly on the ceph cluster.
  2. RBD settings are changed on the client side for cases where the user does not have access to make changes to the ceph cluster.

Read the note after the Procedure for case (2).

Procedure

  1. Create two RBD pools, one backed by replication and another by EC, through the croit UI. This is done by clicking on Pools and then clicking on Create. We will call the replication backed RBD as rbd and the EC backed RBD as rbd-ec. Create Replicated Pool

    Create EC Pool

    Once done, the Pools page should look like this.

    Pools Overview

  2. In the croit UI, navigate to Config → Keys. Create a new keyring (user) for Proxmox with access to the two pools.

    Create Ceph Key

  3. In Config → Keys page, select the newly created keyring and click on Download → Key. Click on Copy to have the keyring handy for adding the pools as storage on Proxmox.

    Download Ceph Key

  4. On the Proxmox side, visit Datacenter → Storage and click on Add → RBD.

    Add RBD to Proxmox

    ID: Name of the storage as it appears on Proxmox. Pool: The backing pool. Monitor(s): Space-separated list of the monitors for the ceph cluster. Username: The keyring name (proxmox in our case) Nodes: Selected nodes would have this storage available to them. Enable: Enable / Disable this storage. Content: If VMs (Disk Image) and / or Containers should be stored here. KRBD: Use the kernel RBD driver (not recommended).

    Keyring: Paste the copied keyring from step (3).

  5. Repeat the process in step (4) for the EC backed RBD if needed.

    Add EC RBD to Proxmox

  6. Now VMs (and containers too, if enabled in the Content field) can be created on this Storage. Simply choose the correct storage name during VM or CT creation.

    Create Disk

Note

Custom RBD client options

The above process assumes that the user has access to both Proxmox and Ceph. If custom RBD client options are to be set, like the ones described here: https://docs.ceph.com/en/quincy/rbd/rbd-config-ref/ then the ceph.conf has to be copied to /etc/pve/priv/ceph/<STORAGE_ID>.conf where STORAGE_ID is the same as specified in step (4) above. The ceph.conf can be obtained for modification and placement from the croit UI by navigating to Config → Key → Download → ceph.conf.