]> git.proxmox.com Git - ovs.git/blame - INSTALL.XenServer
Update documentation.
[ovs.git] / INSTALL.XenServer
CommitLineData
4b11d5e8
BP
1 How to Install Open vSwitch on Citrix XenServer
2 ===============================================
3
4This document describes how to build and install Open vSwitch on a
5Citrix XenServer 5.5.0 host. If you want to install Open vSwitch on a
6generic Linux host, see INSTALL.Linux instead.
7
8Building Open vSwitch for XenServer
9-----------------------------------
10
11The recommended build environment to build RPMs for Citrix XenServer
12is the DDK VM available from Citrix. If you are building from an Open
13vSwitch distribution tarball, this VM has all the tools that you will
14need. If you are building from an Open vSwitch Git tree, then you
15will need to first create a distribution tarball elsewhere, by running
16"./boot.sh; ./configure; make dist" in the Git tree, because the DDK
17VM does not include Autoconf or Automake that are required to
18bootstrap the Open vSwitch distribution.
19
20Once you have a distribution tarball, copy it into
21/usr/src/redhat/SOURCES inside the VM. Then execute the following:
22
23 VERSION=<Open vSwitch version>
24 XENKERNEL=<Xen kernel version>
25 cd /tmp
26 tar xfz /usr/src/redhat/SOURCES/openvswitch-$VERSION.tar.gz
27 rpmbuild \
28 -D "vswitch_version $VERSION" \
29 -D "xen_version $XENKERNEL" \
30 -bb openvswitch-$VERSION/xenserver/vswitch-xen.spec
31
32where:
33
34 <openvswitch version> is the version number that appears in the
35 name of the Open vSwitch tarball, e.g. 0.90.0.
36
37 <Xen kernel version> is the version number of the Xen kernel,
38 e.g. 2.6.18-128.1.1.el5.xs5.5.0.487.1006xen. This version number
39 appears as the name of a directory in /lib/modules inside the VM.
40 It always ends in "xen".
41
42Two RPMs will be output into /usr/src/redhat/RPMS, whose names begin
43with "vswitch" and "vswitch-debuginfo".
44
45Installing Open vSwitch for XenServer
46-------------------------------------
47
48To install Open vSwitch on a XenServer host, or to upgrade to a newer
49version, copy the "vswitch" RPM to that host with "scp", then install
50it with "rpm -U", e.g.:
51
52 scp vswitch-$VERSION-1.i386.rpm root@<host>:
53(At this point you will have to enter <host>'s root password.)
54 ssh root@<host>
55(At this point you will have to enter <host>'s root password again.)
56 rpm -U vswitch-$VERSION-1.i386.rpm
57
58To uninstall Open vSwitch from a XenServer host, remove the package:
59
60 ssh root@<host>
61(At this point you will have to enter <host>'s root password again.)
62 rpm -e vswitch
63
64After installing or uninstalling Open vSwitch, the XenServer should be
65rebooted as soon as possible.
66
67Reporting Bugs
68--------------
69
70Please report problems to ovs-bugs@openvswitch.org.