File tree 2 files changed +19
-11
lines changed 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 35
35
```
36
36
packer build \
37
37
-var kubernetes_version=1.32 \
38
- -var source_ami_id=ami-0f114867066b78822
38
+ -var source_ami_id=ami-0f114867066b78822 \
39
+ amazon-ebs.pkr.hcl
39
40
```
40
41
41
42
Arbitrary additional tags can be added to the AMI by specifying a JSON
@@ -44,7 +45,8 @@ map of tags as the `tags` variable, e.g.:
44
45
```
45
46
packer build \
46
47
-var kubernetes_version=1.32 \
47
- -var 'tags={"mykey": "myvalue", "myotherkey": "myothervalue"}'
48
+ -var 'tags={"mykey": "myvalue", "myotherkey": "myothervalue"}' \
49
+ amazon-ebs.pkr.hcl
48
50
```
49
51
50
52
## Using AMIs
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
# This script must be run as the root user.
3
3
4
- set -x
4
+ set -ex
5
5
6
- # Download and build the igb_uio driver, and load it into the kernel.
7
- yum install -y " kernel-devel-$( uname -r) "
6
+ yum install -y \
7
+ " kernel-devel-$( uname -r) " \
8
+ git
8
9
9
- mkdir igb_uio
10
- curl https://git.dpdk.org/dpdk-kmods/snapshot/dpdk-kmods-e721c733cd24206399bebb8f0751b0387c4c1595.tar.gz | tar -xz -C igb_uio --strip-components 1
11
- make -C igb_uio/linux/igb_uio
12
- cp igb_uio/linux/igb_uio/igb_uio.ko " /lib/modules/$( uname -r) /kernel/drivers/uio"
10
+ # Download and build the igb_uio driver, and load it into the kernel.
11
+ git clone git://dpdk.org/dpdk-kmods
12
+ cd dpdk-kmods
13
+ git switch e721c733cd24206399bebb8f0751b0387c4c1595 --detach
14
+ make -C linux/igb_uio
15
+ cp linux/igb_uio/igb_uio.ko " /lib/modules/$( uname -r) /kernel/drivers/uio"
13
16
depmod " $( uname -r) "
14
- rm -rf igb_uio
17
+ cd ../
18
+ rm -rf dpdk-kmods
15
19
16
20
# Download a much newer version of TuneD that available from the
17
21
# Amazon Linux 2 repositories. This fixes several issues with the old
@@ -37,7 +41,9 @@ mkdir tuned
37
41
curl -L https://github.com/redhat-performance/tuned/archive/refs/tags/v2.20.0.tar.gz | tar -xz -C tuned --strip-components 1
38
42
# N.B. The 'desktop-file-install' action is expected to fail. This doesn't
39
43
# affect the installation of the tuned service.
40
- make -C tuned PYTHON=/usr/bin/python2 install
44
+ if ! make -C tuned PYTHON=/usr/bin/python2 install; then
45
+ echo " desktop-file-install failure is expected. Continuing with installation..."
46
+ fi
41
47
rm -rf tuned
42
48
43
49
# Set up the sysctls.
You can’t perform that action at this time.
0 commit comments