Using Ceph with qemu-kvm manually
Install Ceph
Create a Ceph cluster according to: https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html/container_guide/deploying-red-hat-ceph-storage-in-containers
Installing ceph credentials to /etc/ceph
Make sure that all required ceph credentials are in /etc/ceph. In this case, I copied them directly from /etc/ceph on one of my monitor nodes.
Creating a pool
1 2 |
|
Downloading and customizing RHEL qcow2
Download the RHEL qcow2 from https://access.redhat.com, e.g.: https://access.redhat.com/downloads/content/69/ver=/rhel---7/7.7/x86_64/product-software
Install libguestfs-tools:
1 |
|
Change the root password of the image:
1 2 3 |
|
Converting and uploading image into Ceph pool
1 |
|
Booting a VM from the raw Ceph image with QEMU-KVM
Start a VM that directly uses the uploaded image from the Ceph pool:
1 |
|
To get out of qemu-kvm, type CTRL-a x
You should be able to log into the image with credentials: root
/ password
Note: With the RHEL cloud image, the screen will show grub, then go blank for a while. This is normal, just wait for a few seconds.
Booting a VM from the raw Ceph image with libvirt
See: https://blog.modest-destiny.com/posts/kvm-libvirt-add-ceph-rbd-pool/
1 2 3 4 5 6 7 |
|