aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra
diff options
context:
space:
mode:
authorPeter Mikus <peter.mikus@protonmail.ch>2024-10-09 06:33:03 +0200
committerPeter Mikus <peter.mikus@protonmail.ch>2024-10-09 05:54:15 +0000
commitcec3f9564304f9cef5e45d99d5ca7e016f36642b (patch)
tree44fb6d9a90bdf416a7cc7479cf88fa01b756ffe8 /fdio.infra
parent214035e2ea91ffc1b0f5e952e0ddb27ef4ee8851 (diff)
feat(pxe): Nvidia GRCoper-241014
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch> Change-Id: I41af1e40e66e5a429a274a6e7af40986273f1210
Diffstat (limited to 'fdio.infra')
-rw-r--r--fdio.infra/pxe/docker-dnsmasq/Dockerfile4
-rwxr-xr-xfdio.infra/pxe/docker-dnsmasq/etc/dnsmasq.conf12
-rw-r--r--fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-6e:a1:6b:60:97:744
-rw-r--r--fdio.infra/pxe/docker-nginx/Dockerfile12
-rw-r--r--fdio.infra/pxe/docker-nginx/html/ubuntu_noble_arm64/6e:a1:6b:60:97:74/meta-data0
-rw-r--r--fdio.infra/pxe/docker-nginx/html/ubuntu_noble_arm64/6e:a1:6b:60:97:74/user-data85
6 files changed, 107 insertions, 10 deletions
diff --git a/fdio.infra/pxe/docker-dnsmasq/Dockerfile b/fdio.infra/pxe/docker-dnsmasq/Dockerfile
index 8b2cc2bd41..7ed526507c 100644
--- a/fdio.infra/pxe/docker-dnsmasq/Dockerfile
+++ b/fdio.infra/pxe/docker-dnsmasq/Dockerfile
@@ -10,8 +10,8 @@ RUN apt update \
&& mkdir -p /var/lib/tftpboot/casper/ubuntu-noble-amd64/ \
&& mkdir -p /var/lib/tftpboot/casper/ubuntu-noble-arm64/
-ENV ISO_NOBLE_AMD64=https://releases.ubuntu.com/releases/noble/ubuntu-24.04-live-server-amd64.iso
-ENV ISO_NOBLE_ARM64=https://cdimage.ubuntu.com/releases/noble/release/ubuntu-24.04-live-server-arm64.iso
+ENV ISO_NOBLE_AMD64=https://releases.ubuntu.com/releases/noble/ubuntu-24.04.1-live-server-amd64.iso
+ENV ISO_NOBLE_ARM64=https://cdimage.ubuntu.com/releases/noble/release/ubuntu-24.04.1-live-server-arm64.iso
ENV EFI_NOBLE_AMD64=http://archive.ubuntu.com/ubuntu/dists/jammy/main/uefi/grub2-amd64/current/grubnetx64.efi.signed
ENV EFI_NOBLE_ARM64=http://ports.ubuntu.com/ubuntu-ports/dists/jammy/main/uefi/grub2-arm64/current/grubnetaa64.efi.signed
diff --git a/fdio.infra/pxe/docker-dnsmasq/etc/dnsmasq.conf b/fdio.infra/pxe/docker-dnsmasq/etc/dnsmasq.conf
index 0676560a93..44e01a547b 100755
--- a/fdio.infra/pxe/docker-dnsmasq/etc/dnsmasq.conf
+++ b/fdio.infra/pxe/docker-dnsmasq/etc/dnsmasq.conf
@@ -31,11 +31,17 @@ dhcp-option=yul1_1,option:dns-server,1.1.1.1
dhcp-option=yul1_1,option:dns-server,8.8.8.8
# DHCP ranges for yul1_2.
-dhcp-range=yul1_2,10.32.8.18,10.32.8.25,255.255.255.0,infinite
+dhcp-range=yul1_2,10.32.8.24,10.32.8.25,255.255.255.0,infinite
dhcp-option=yul1_2,option:router,10.32.8.1
dhcp-option=yul1_2,option:dns-server,1.1.1.1
dhcp-option=yul1_2,option:dns-server,8.8.8.8
+# DHCP ranges for yul1_1_ipmi.
+dhcp-range=yul1_2,10.30.50.36,10.30.50.36,255.255.255.0,infinite
+dhcp-option=yul1_2,option:router,10.30.50.1
+dhcp-option=yul1_2,option:dns-server,1.1.1.1
+dhcp-option=yul1_2,option:dns-server,8.8.8.8
+
# Hosts DHCP settings yul1_1 subnet.
dhcp-host=7c:c2:55:55:c0:74,10.30.51.21,s21-nomad,infinite # eno1 SPR
dhcp-host=7c:c2:55:55:c0:7a,10.30.51.22,s22-nomad,infinite # eno1 SPR
@@ -51,7 +57,7 @@ dhcp-host=3c:ec:ef:d9:dd:6b,10.30.51.32,s32-t31-sut1,infinite # eno2
dhcp-host=3c:ec:ef:d9:de:27,10.30.51.33,s33-t31-sut2,infinite # eno2 ICXD
dhcp-host=3c:ec:ef:d9:dd:77,10.30.51.34,s34-t32-sut1,infinite # eno2 ICXD
dhcp-host=3c:ec:ef:d9:dd:eb,10.30.51.35,s35-t32-sut2,infinite # eno2 ICXD
-dhcp-host=ac:1f:6b:ac:d7:ba,10.30.51.36,s36-t27-sut1,infinite # eno1 GRC
+dhcp-host=6e:a1:6b:60:97:74,10.30.51.36,s36-t27-sut1,infinite # eno1 GRC
dhcp-host=3c:ec:ef:b9:cc:44,10.30.51.37,s37-t27-tg1,infinite # eno1 ICX
dhcp-host=40:8d:5c:e7:b2:6e,10.30.51.38,fdio-marvell-dev,infinite # enP2p1s0v0 ARM-DEV
dhcp-host=ac:1f:6b:8a:8c:76,10.30.51.50,s50-nomad,infinite # eno1 HST
@@ -92,3 +98,5 @@ dhcp-host=a4:bf:01:55:af:5e,10.30.51.94,s94-t39-sut2,infinite # enp4s0
# Hosts DHCP settings yul1_2 subnet.
dhcp-host=3c:ec:ef:43:a3:ba,10.32.8.24,s60-t210-sut1,infinite # eno1np0 ZN2
dhcp-host=3c:ec:ef:46:34:e8,10.32.8.25,s61-t210-tg1,infinite # eno1np0 ZN2
+# Hosts DHCP settings yul1_1_ipmi subnet.
+dhcp-host=3c:6d:66:05:55:d8,10.30.50.36,s36-t27-sut1,infinite # eth1 GRC
diff --git a/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-6e:a1:6b:60:97:74 b/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-6e:a1:6b:60:97:74
new file mode 100644
index 0000000000..526c7e99f6
--- /dev/null
+++ b/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-6e:a1:6b:60:97:74
@@ -0,0 +1,4 @@
+menuentry "Install s36-t27-sut1" {
+ linux /casper/ubuntu-noble-arm64/vmlinuz ip=:::::eno1:dhcp url=http://10.30.51.24:8081/ubuntu_noble_arm64/ubuntu-24.04.1-live-server-arm64 autoinstall ds=nocloud-net\;s=http://10.30.51.24:8081/ubuntu_noble_arm64/6e:a1:6b:60:97:74/ ---
+ initrd /casper/ubuntu-noble-arm64/initrd
+} \ No newline at end of file
diff --git a/fdio.infra/pxe/docker-nginx/Dockerfile b/fdio.infra/pxe/docker-nginx/Dockerfile
index b71d4d7771..21cb3b8f08 100644
--- a/fdio.infra/pxe/docker-nginx/Dockerfile
+++ b/fdio.infra/pxe/docker-nginx/Dockerfile
@@ -6,12 +6,12 @@ LABEL Version="2.0"
RUN apt update \
&& apt install -y wget
-ENV ISO_NOBLE_AMD64=https://releases.ubuntu.com/releases/noble/ubuntu-24.04-live-server-amd64.iso
-ENV ISO_NOBLE_ARM64=https://cdimage.ubuntu.com/releases/noble/release/ubuntu-24.04-live-server-arm64.iso
+ENV ISO_NOBLE_AMD64=https://releases.ubuntu.com/releases/noble/ubuntu-24.04.1-live-server-amd64.iso
+ENV ISO_NOBLE_ARM64=https://cdimage.ubuntu.com/releases/noble/release/ubuntu-24.04.1-live-server-arm64.iso
RUN echo "Preparing ISO Pre-cache" \
- && wget $ISO_NOBLE_AMD64 -O /ubuntu-24.04-live-server-amd64.iso \
- && wget $ISO_NOBLE_ARM64 -O /ubuntu-24.04-live-server-arm64.iso
+ && wget $ISO_NOBLE_AMD64 -O /ubuntu-24.04.1-live-server-amd64.iso \
+ && wget $ISO_NOBLE_ARM64 -O /ubuntu-24.04.1-live-server-arm64.iso
FROM nginx:stable-alpine
@@ -25,7 +25,7 @@ ENV NGINX_NOBLE_ARM64=/usr/share/nginx/html/ubuntu_noble_arm64/
RUN mkdir -p $NGINX_NOBLE_AMD64 \
&& mkdir -p $NGINX_NOBLE_ARM64
-COPY --from=ubuntu_noble /ubuntu-24.04-live-server-amd64.iso $NGINX_NOBLE_AMD64/ubuntu-24.04-live-server-amd64.iso
-COPY --from=ubuntu_noble /ubuntu-24.04-live-server-arm64.iso $NGINX_NOBLE_ARM64/ubuntu-24.04-live-server-arm64.iso
+COPY --from=ubuntu_noble /ubuntu-24.04.1-live-server-amd64.iso $NGINX_NOBLE_AMD64/ubuntu-24.04.1-live-server-amd64.iso
+COPY --from=ubuntu_noble /ubuntu-24.04.1-live-server-arm64.iso $NGINX_NOBLE_ARM64/ubuntu-24.04.1-live-server-arm64.iso
COPY html/ /usr/share/nginx/html/
diff --git a/fdio.infra/pxe/docker-nginx/html/ubuntu_noble_arm64/6e:a1:6b:60:97:74/meta-data b/fdio.infra/pxe/docker-nginx/html/ubuntu_noble_arm64/6e:a1:6b:60:97:74/meta-data
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/fdio.infra/pxe/docker-nginx/html/ubuntu_noble_arm64/6e:a1:6b:60:97:74/meta-data
diff --git a/fdio.infra/pxe/docker-nginx/html/ubuntu_noble_arm64/6e:a1:6b:60:97:74/user-data b/fdio.infra/pxe/docker-nginx/html/ubuntu_noble_arm64/6e:a1:6b:60:97:74/user-data
new file mode 100644
index 0000000000..974c3b29cc
--- /dev/null
+++ b/fdio.infra/pxe/docker-nginx/html/ubuntu_noble_arm64/6e:a1:6b:60:97:74/user-data
@@ -0,0 +1,85 @@
+#cloud-config
+autoinstall:
+ version: 1
+ apt:
+ geoip: true
+ preserve_sources_list: false
+ primary:
+ - arches: [amd64, i386]
+ uri: http://ca.archive.ubuntu.com/ubuntu
+ - arches: [default]
+ uri: http://ports.ubuntu.com/ubuntu-ports
+ identity:
+ hostname: s36-t27-sut1
+ password: $6$Y62lhMGJD8YNzmJn$H4DSqjrwFp5WN3tOvIrF.g/G2duOV76zXHAmaA/RU8jfT8H8sDumLQe/Q.EmI5pjPv7dzgI8j9BQPWes7efBK0
+ realname: testuser
+ username: testuser
+ kernel:
+ package: linux-nvidia-64k-hwe-24.04
+ keyboard:
+ layout: us
+ toggle: null
+ variant: ''
+ locale: en_US.UTF-8
+ network:
+ ethernets:
+ eno1:
+ addresses: [ 10.30.51.36/24 ]
+ dhcp4: false
+ gateway4: 10.30.51.1
+ nameservers:
+ addresses: [ 1.1.1.1, 8.8.8.8 ]
+ version: 2
+ packages:
+ - python3
+ refresh-installer:
+ update: no
+ ssh:
+ allow-pw: true
+ authorized-keys: []
+ install-server: true
+ storage:
+ config:
+ - grub_device: false
+ id: disk-nvme0n1
+ path: /dev/nvme0n1
+ ptable: gpt
+ preserve: false
+ type: disk
+ wipe: superblock-recursive
+ - device: disk-nvme0n1
+ grub_device: true
+ id: partition-0
+ flag: boot
+ number: 1
+ preserve: false
+ size: 536870912
+ type: partition
+ wipe: superblock
+ - id: format-0
+ fstype: fat32
+ preserve: false
+ type: format
+ volume: partition-0
+ - device: disk-nvme0n1
+ flag: ''
+ grub_device: false
+ id: partition-1
+ number: 2
+ preserve: false
+ size: -1
+ type: partition
+ wipe: superblock
+ - fstype: ext4
+ id: format-1
+ preserve: false
+ type: format
+ volume: partition-1
+ - device: format-1
+ id: mount-1
+ path: /
+ type: mount
+ - device: format-0
+ id: mount-0
+ path: /boot/efi
+ type: mount