1 ==================================
2 Manual ceph-iscsi-cli Installation
3 ==================================
7 The following packages will be used by ceph-iscsi-cli and target tools.
8 They must be installed from your Linux distribution's software repository
9 on each machine that will be a iSCSI gateway:
36 If not using a distro kernel that contains the required Ceph iSCSI patches,
37 then Linux kernel v4.17 or newer or the ceph-client ceph-iscsi-test
38 branch must be used. To get the branch run:
42 > git clone https://github.com/ceph/ceph-client.git
43 > git checkout ceph-iscsi-test
46 ceph-iscsi-test is not for production use. It should only be used
47 for proof of concept setups and testing. The kernel is only updated
48 with Ceph iSCSI patches. General security and bug fixes from upstream
51 Check your distro's docs for specific instructions on how to build a
52 kernel. The only Ceph iSCSI specific requirements are the following
53 build options must be enabled:
67 > git clone https://github.com/open-iscsi/tcmu-runner
70 Ceph iSCSI requires systemd so the following build command must be used:
74 > cmake -Dwith-glfs=false -Dwith-qcow=false -DSUPPORT_SYSTEMD=ON -DCMAKE_INSTALL_PREFIX=/usr
77 Enable and start the daemon:
81 > systemctl daemon-reload
82 > systemctl enable tcmu-runner
83 > systemctl start tcmu-runner
91 > git clone https://github.com/open-iscsi/rtslib-fb.git
93 > python setup.py install
101 > git clone https://github.com/open-iscsi/configshell-fb.git
103 > python setup.py install
111 > git clone https://github.com/open-iscsi/targetcli-fb.git
113 > python setup.py install
117 .. warning:: The ceph-iscsi tools assume they are managing all targets
118 on the system. If targets have been setup and are being managed by
119 targetcli the target service must be disabled.
127 > git clone https://github.com/ceph/ceph-iscsi-config.git
128 > cd ceph-iscsi-config
129 > python setup.py install
130 > cp usr/lib/systemd/system/rbd-target-gw.service /lib/systemd/system
132 Enable and start the daemon:
136 > systemctl daemon-reload
137 > systemctl enable rbd-target-gw
138 > systemctl start rbd-target-gw
146 > git clone https://github.com/ceph/ceph-iscsi-cli.git
148 > python setup.py install
149 > cp usr/lib/systemd/system/rbd-target-api.service /lib/systemd/system
152 Installation is complete. Proceed to the setup section in the
153 `main ceph-iscsi-cli page`_.
155 .. _`main ceph-iscsi-cli page`: ../iscsi-target-cli