X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=INSTALL.XenServer;h=1e3f35ab9cc4b4c3002aeb54e4ce6c08ac4149d5;hb=refs%2Fheads%2Fbranch-1.5;hp=9d9012b862851a2c77d52e4f7c749a3bd5ca77ff;hpb=be55976089659d082834aae58acd1173f10004e7;p=sliver-openvswitch.git diff --git a/INSTALL.XenServer b/INSTALL.XenServer index 9d9012b86..1e3f35ab9 100644 --- a/INSTALL.XenServer +++ b/INSTALL.XenServer @@ -23,12 +23,16 @@ Once you have a distribution tarball, copy it into /usr/src/redhat/SOURCES inside the VM. Then execute the following: VERSION= - XENKERNEL= + KERNEL_NAME= + KERNEL_VERSION= + KERNEL_FLAVOR= cd /tmp tar xfz /usr/src/redhat/SOURCES/openvswitch-$VERSION.tar.gz rpmbuild \ -D "openvswitch_version $VERSION" \ - -D "xen_version $XENKERNEL" \ + -D "kernel_name $KERNEL_NAME" \ + -D "kernel_version $KERNEL_VERSION" \ + -D "kernel_flavor $KERNEL_FLAVOR" \ -bb openvswitch-$VERSION/xenserver/openvswitch-xen.spec where: @@ -36,13 +40,21 @@ where: is the version number that appears in the name of the Open vSwitch tarball, e.g. 0.90.0. - is the version number of the Xen kernel, - e.g. 2.6.32.12-0.7.1.xs5.6.100.307.170586xen. This version number - appears as the name of a directory in /lib/modules inside the VM. - It always ends in "xen". + is the name of the XenServer kernel package, + e.g. kernel-xen or kernel-NAME-xen, without the "kernel-" prefix. + + is the output of: + rpm -q --queryformat "%{Version}-%{Release}" , + e.g. 2.6.32.12-0.7.1.xs5.6.100.323.170596, where is + the name of the -devel package corresponding to . + + is either "xen" or "kdump". + The "xen" flavor is the main running kernel flavor and the "kdump" flavor is + the crashdump kernel flavor. Commonly, one would specify "xen" here. Three RPMs will be output into /usr/src/redhat/RPMS/i386, whose names begin -with "openvswitch", "openvswitch-modules-xen", and "openvswitch-debuginfo". +with "openvswitch", "openvswitch-modules-xen" (if building for kernel_flavor=xen), +and "openvswitch-debuginfo". Installing Open vSwitch for XenServer -------------------------------------