Specifications
3. Restart xend:service and xend restart.
Sequence 2: Exporting a shared storage via NFS
For this lab procedure, you will configure NFS and use it to export a shared storage.
1. Edit /etc/exports and include the line: /xen *(rw,sync,no_root_squash)/
2. Save /etc/exports and restart the NFS server. Make sure that the NFS server starts by
default:service nfs startchkconfig nfs on.
3. After starting the NFS server on host1, we can then mount it on host2:mount host1:/xen
.
4. Now start the Xen guest on host1 and select fc6-pv1 (or fc6-pv2 from Lab 1):
xm create -c fc6-pv1
Sequence 3: Installing the Xen guest streaming server
For this lab step, you will install a streaming server, gnump3d, for our demonstration purposes.
You will select gnump3d because it supports OGG vorbis files and is easy to install, configure,
and modify.
1. Download gnump3d-2.9.9.9.tar.bz2 tarball from http://www.gnump3d.org/ . Unpack
the tarball and in the gnump3d-2.9.9.9/ directory, compile, and install the gnump3d
application:tar xvjf gnump3d-2.9.9.9.tar.bz2cd gnump3d-2.9.9.9/make install
2. Create a /home/mp3 directory and copy TruthHappens.ogg from Red Hat's Truth Happens
page to mkdir /home/mp3wget -c http://www.redhat.com/v/ogg/TruthHappens.ogg
3. Start the streaming server by typing
command:gnump3d
4. On either one of the two Xen hosts, start running the Movie Player. If it is not installed, then
install the totem and iso-codecs rpms before running the Movie Player. Click Applications,
then Sound & Video, and finally Movie Player.
Appendix B. Lab 2
112