X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=INSTALL.XenServer;h=35d2cc66f52e53f3985c02b891596f8afabb64b7;hb=97658708f8479f5316010a9bcc845f753cc6e38f;hp=9d9012b862851a2c77d52e4f7c749a3bd5ca77ff;hpb=29d935d631c522c5e5915d6c0cb9a8af3a1f2390;p=sliver-openvswitch.git diff --git a/INSTALL.XenServer b/INSTALL.XenServer index 9d9012b86..35d2cc66f 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,25 @@ 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 Xen Kernel, + e.g. kernel-xen or kernel-NAME-xen. By convention, the name + starts with "kernel-" and ends with "-xen". + This can be obtained by executing + 'rpm -q --queryformat "%{Name}" kernel.*xen' + with the "kernel-" stripped out using sed 's/kernel-//' + e.g. kernel-NAME-xen => NAME-xen + + is the output of: + rpm -q --queryformat "%{Version}-%{Release}" kernel.*xen-devel + e.g. 2.6.32.12-0.7.1.xs5.6.100.323.170596 + + 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 -------------------------------------