About Releases Build & Install Configure Blog
Build & Install Overview Install xvpappliance VM Build from Tarball Build from Source RPM Install from Binary RPM Build an xvpappliance

Building from Source RPMs

If you are using a Red Hat based Linux distribution (Red Hat Enterprise Linux, CentOS or Fedora), or a SUSE based distribution (SUSE Linux Enterprise or openSUSE), the RPM source package for xvp will allow you to build 3 binary RPMs: for xvp, xvpconsole and xvpweb. On Red Hat based distributions, it will also allow you to build xvpappliance. The binary xvp package you build includes the xvp and xvpviewer executables and manual pages, an init script to stop, start and manage xvp, and a logrotate script.

As a prerequisite, you must first install the curl-devel and libxml2-devel RPMs.

Then you need to build and install libxenserver as an RPM. If you've already installed libxenserver when installing a previous release of xvp, you can skip this step.

  1. Download libxenserver-6.2.0-1-src.tar.bz2 from the Citrix Community Web Site. Please note that earlier versions of libxenserver are incompatible with xvp versions 1.14.0 and later.

  2. Download the Makefile patch and the RPM spec file for libxenserver using the links in the Releases section above.

  3. If using a Red Hat based Linux, e.g. CentOS 5, then as root, copy libxenserver-6.2.0-1-src.tar.bz2 and the Makefile patch into /usr/src/redhat/SOURCES, and the RPM spec file into /usr/src/redhat/SPECS. If using a SUSE based Linux, the SOURCES and SPECS subdirectories are under /usr/src/packages instead: substitute this in the instructions below.

    Note: Recent Red Hat releases, e.g. Fedora 12 and later and RHEL 6 and later, use the directory /root/buildroot instead of /usr/src/redhat. If /usr/src/redhat doesn't exist, type as root:

        mkdir -p /root/buildroot/SOURCES /root/buildroot/SPECS
    

    and substitute /root/buildroot for /usr/src/redhat in the instructions below.

  4. Run as root:

        cd /usr/src/redhat/SOURCES
        tar xjf libxenserver-6.2.0-1-src.tar.bz2
        mv libxenserver libxenserver-6.2.0
        tar cjf libxenserver-6.2.0-1-src.tar.bz2 libxenserver-6.2.0
        rm -rf libxenserver-6.2.0
        cd ..
        rpmbuild -bb SPECS/libxenserver.spec
    
  5. This will create 3 RPM files under /usr/src/redhat/RPMS. Install the libxenserver and libxenserver-devel ones (you can ignore the libxenserver-debuginfo one), using rpm -ivh filename filename.

You can now build and install xvp from RPM.

  1. Download xvp-1.16.0-1.src.rpm using the link in the Releases section above, into a temporary directory.

  2. As root, in the same directory, run:

        rpmbuild --rebuild xvp-1.16.0-1.src.rpm
    
  3. This will create several RPM files under /usr/src/redhat/RPMS. Install the xvp one (you can ignore the xvp-debuginfo one), using rpm -ivh filename, unless you have a previous version already installed, in which case you should upgrade using rpm -Uvh filename.

    If you are upgrading from a version prior to 1.2.0, any previous version of xvp already running will be left running, and in this case you should also run service xvp restart. This is done automatically if upgrading from 1.2.0 or later.

  4. To be able to use the web interface, install the xvpweb RPM on the same computer. The web files are then in the directory /var/www/html/xvpweb (Red Hat) or /srv/www/htdocs/xvpweb (SUSE).

  5. If you wish to use the supplied Java viewer on Linux, without using the web interface, install the xvpviewer RPM on the relevant client machines.

  6. To turn a Red Hat based system into a self-contained appliance, install the xvpappliance RPM as well as xvp and xvpweb. There is no need to install xvpviewer.

Now proceed to configure your system.