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