O'Reilly logo

Getting Started with oVirt 3.3 by Alexey Lesovsky

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Package installation and iSCSI setup

We need to install the scsi-target-utils package and configure the iSCSI target on the previously created logical volume. Installation will be performed through the yum—CentOS/RHEL package manager:

# yum install –y scsi-target-utils

After installation, configure the targets. At the end of targets.conf, add the <target>-</target> section and set the targets in same way with following naming rule: [iqn.yaer-month.domain:any-name]. In the initiator option, we should specify the client IP network:

# vi /etc/tgt/targets.conf
<target iqn.2013-10.com.example:iscsi-target0>
        backing-store /dev/storage/storage
        initiator-address 10.101.15.0/24
        incominguser ovirtuser ovirtpassword
</target>

Now, we can start the tgtd ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required