Skip to content

Instantly share code, notes, and snippets.

@scyto
Last active October 1, 2024 08:09
Show Gist options
  • Save scyto/941b24efd1ac0bf9b3cd30c3fb1e5341 to your computer and use it in GitHub Desktop.
Save scyto/941b24efd1ac0bf9b3cd30c3fb1e5341 to your computer and use it in GitHub Desktop.

Configuring CephFS to store ISOs for VMs and Templates for Containers

This gist assume you have setup Ceph as per earlier gist in this sequence

I found it annoying to upload ISO to each node in the cluster, download CT templates to each node.
I thought setting up cedph for these would be a great idea (and it is).

this gist is part of this series

create cephfs pools

  1. In the gui navigate to Datcenter > node name > ceph
  2. Click cephfs node
  3. In Metadata Server area click create and create a meta data server on all 3 pve nodes
  4. Next click Create CephFS and give it a name like ISOs-Templates
  5. Ensure add as storage is CHECKED
  6. click create

set storage use

  1. Click Datacenter > storage
  2. Select ISOs-Templates
    1. Edit the content section to remove VZDump Backup file and snippets
  3. edit backup settings as you prefer and click ok

image

add ISOs or CT templates

  1. on any node navigate to ISOs-Temples disk in the left pane and select it
  2. now select ISO images in right pane and click upload
  3. upload an ISO
  4. now select CT Templates
  5. click template
  6. choose debian-12-standard and click download

check it worked

  1. now click on ISOs-Templates disk on any other node and you will see the file is visible on all nodes
  2. do same for VT Templates
@MDsza
Copy link

MDsza commented Jan 31, 2024

Thank you so much! Helped me a lot with my HA-Cluster (3 ZimaBoards 832).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment