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 NFS setup

We need to install the nfs-utils package and configure the export of a previously created filesystem. Installation will be performed through the yum—CentOS/RHEL package manager:

# yum install -y nfs-utils

Now configure exports, edit /etc/exports, and add the following lines:

# vi /etc/exports
/srv/data       10.101.0.0/16(rw,sync,no_root_squash,no_subtree_check)

The next step is to set the ownership on the exported directory and edit SELinux settings:

# chown vdsm:kvm /srv/data
# setsebool -P virt_use_nfs 1

After that, we can start services and set them to autostart:

# service rpcbind restart && chkconfig rpcbind on
# service nfs restart && chkconfig nfs on

Check exports; in the output we must see our export directory: ...

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