Posted by Alex Bykovskyi on August 16, 2017
Share on Facebook0Share on Google+0Share on LinkedIn1Share on Reddit8Tweet about this on Twitter0
No ratings yet.


This article describes the deployment of a Ceph cluster in one instance or as it’s called “Ceph-all-in-one”. As you may know, Ceph is a unified Software-Defined Storage system designed for great performance, reliability, and scalability. With the help of Ceph, you can build an environment with the desired size. You can start with a one-node system and there are no limits in its sizing. I will show you how to build the Ceph cluster on top of one virtual machine (or instance). You should never use such scenario in production, only for testing purposes.

The series of articles will guide you through the deployment and configuration of different Ceph cluster builds.

Virtual Machine Deployment

Before you begin, you can download our pre-deployed OVF template. In case you want to look at Ceph from the inside, proceed reading the article 😊

We are going to use Debian 8 as a base OS. You can download it here:

First, we are going to create ESXi VM with the following settings:

ESXi VM creation settings

Of course, the next step is to install the OS. You can find a detailed guide about the OS installation here:

StarWind® Ceph all-in-one Cluster: How to deploy Ceph all-in-one Cluster

Configuring the Virtual Machine and the operating system

We need to add the Virtual Disk with a desirable size to the VM. The VD is going to be used by Object Storage Daemon. I started with a small one – 16 GB.

add the Virtual Disk with a desirable size to the VM

Let’s boot the VM into the recently installed OS and log in to it using the root account. Update Debian using the following command:

Install the packages and configure NTP.

We need to add the user (the one we have created during the installation) to sudoers (where %USERNAME% is the user account you have created during the OS installation):


Now, I am going to connect to the VM via SSH, using a new account.

Configure SSH:

Generate the ssh keys for %USERNAME% user:

Leave the passphrase as blank/empty.

Edit file and remove “%USERNAME%@host” (name of the user) at the end of the string

Let’s add host ip (eth0) and a hostname to /etc/hosts

add host ip and a hostname to etc hosts

We have prepared our Virtual Machine for Ceph deployment.

Ceph Deployment

Finally, we are going to deploy the “Ceph-all-in-one” cluster. We need to create the directory “Ceph-all-in-one”:

and move to it

Installing Ceph-deploy is another important procedure:

Create new config:

Next, I am going to install Ceph and add a monitor role to the node:

(“Ceph-all-in-one” is our hostname)

(“Ceph-all-in-one” our hostname, sdb name of the disk we have added in the Virtual Machine configuration section)

Let’s change Ceph rbd pool size:


change Ceph rbd pool size

After the deployment, we can check the cluster status:

check the ceph cluster status


We have successfully deployed the “Ceph-all-in-one” cluster allowing you to look at Ceph abilities. You can create the RBD device to store your data. Also, you can add additional OSDs and configure Replicated or Erasure Coded pools, which I am going to cover in the following articles.

Related materials:

Views All Time
Views Today

Please rate this

To download the software products, please, make your choice below. An installer link and a license key will be sent to the e-mail address you’ve specified. If you consider StarWind Virtual SAN but are uncertain of the version, please check the following document Free vs. Paid. The recent build of Release Notes. A totally unrestricted NFR (Not For Resale) version of StarWind Virtual SAN is available for certain use cases. Learn more details here.

Return to all posts

The Need For Liquidity in Data Storage Infrastructure
3 Generations of My Homelabs
The following two tabs change content below.
Alex Bykovskyi
Alex Bykovskyi
Alex works as a Solutions Architect at StarWind. He has 5+ years of IT experience working with networking and storage, building highly available environments, Windows and Linux technologies, and a deep knowledge of storage virtualization.