-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathubuntu24-x86_64-minimal-ptl-pv-raw.yml
More file actions
360 lines (348 loc) · 10.4 KB
/
ubuntu24-x86_64-minimal-ptl-pv-raw.yml
File metadata and controls
360 lines (348 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
# AI-searchable metadata for template discovery
metadata:
description: "Ubuntu 24.04 minimal PTL PV desktop image in raw format for Intel PTL development and validation"
use_cases:
- "PTL platform validation"
- "Intel GPU and NPU enablement"
- "desktop development"
- "raw image deployment"
keywords:
- ptl
- pv
- ubuntu
- raw
- desktop
- intel
- gpu
- npu
image:
name: minimal-desktop-ubuntu-ptl-pv
version: "24.04"
target:
os: ubuntu
dist: ubuntu24
arch: x86_64
imageType: raw
# Disk layout and output artifact definition
disk:
# Human friendly name logged by builders
name: minimal-desktop-ubuntu-ptl-pv
artifacts:
# Request conversion to raw
- type: raw
compression: gz
size: 16GiB
# GPT partition table per installer spec
partitionTableType: gpt
partitions:
# EFI system partition for bootloaders
- id: EFI
name: EFI
type: esp
# GPT type GUID for EFI system partition
typeUUID: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
fsType: vfat
# Builder expects explicit MiB offsets
start: 1MiB
end: 1025MiB
mountPoint: /boot/efi
mountOptions: defaults
flags:
- boot
- esp
# Root filesystem
- id: ROOT
name: ROOT
type: linux-root-amd64
# Standard Linux root filesystem GUID for x86_64
typeUUID: 4f68bce3-e8cd-4db1-96e7-fbcaf984b709
fsType: ext4
start: 1025MiB
end: "0"
mountPoint: /
mountOptions: defaults
flags: []
# Additional package repositories for this image
packageRepositories:
# Intel overlay repository (aligned with installer script)
- codename: "noble"
url: "https://download.01.org/intel-linux-overlay/ubuntu"
pkey: "https://download.01.org/intel-linux-overlay/ubuntu/E6FA98203588250569758E97D176E3162086EE4C.gpg"
component: "multimedia main non-free"
priority: 2000
systemConfig:
name: minimal
description: Minimal desktop ubuntu image for PTL
bootloader:
bootType: efi
provider: grub
immutability:
enabled: false # default is true
packages:
- bsdutils
- cloud-utils
- debianutils
- diffutils
- findutils
- grep
- grub-efi-amd64-signed
- gzip
- ibus-table-cangjie-big
- ibus-table-cangjie3
- ibus-table-cangjie5
- init
- language-pack-en
- language-pack-en-base
- language-pack-gnome-en
- language-pack-gnome-en-base
- libattr1
- libchewing3
- libchewing3-data
- libm17n-0
- libmarisa0
- libopencc-data
- libopencc1.1
- libotf1
- libpinyin-data
- libpinyin15
- linux-base
- m17n-db
- mawk
- ncurses-base
- ncurses-bin
- python3-netifaces
- shim-signed
- ubuntu-desktop-minimal
- ubuntu-minimal
- ubuntu-standard
- ubuntu-wallpapers
- wbritish
- gdm3
- systemd
- openssh-server
- systemd-resolved
- util-linux
- udev
- initramfs-tools
- grub2-common
- grub-pc-bin
- grub-efi-amd64
- grub-efi-amd64-bin
- efibootmgr
# PTL network stack
- libbpf1
- curl
- wget
- cron
- ethtool
- iproute2
- libtbb12
# PTL packages
- libigfxcmrt-dev
- libigfxcmrt7
- vim
- nano
- ocl-icd-libopencl1
- net-tools
- gir1.2-gst-plugins-bad-1.0
- gir1.2-gst-plugins-base-1.0
- gir1.2-gstreamer-1.0
- gir1.2-gst-rtsp-server-1.0
- gstreamer1.0-alsa
- gstreamer1.0-gl
- gstreamer1.0-gtk3
- gstreamer1.0-opencv
- gstreamer1.0-plugins-bad
- gstreamer1.0-plugins-bad-apps
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-base-apps
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-ugly
- gstreamer1.0-pulseaudio
- gstreamer1.0-qt5
- gstreamer1.0-rtsp
- gstreamer1.0-tools
- gstreamer1.0-x
- intel-media-va-driver-non-free
- libdrm-amdgpu1
- libdrm-common
- libdrm-dev
- libdrm-intel1
- libdrm-nouveau2
- libdrm-radeon1
- libdrm-tests
- libdrm2
- libgstrtspserver-1.0-dev
- libgstrtspserver-1.0-0
- libgstreamer-gl1.0-0
- libgstreamer-opencv1.0-0
- libgstreamer-plugins-bad1.0-0
- libgstreamer-plugins-bad1.0-dev
- libgstreamer-plugins-base1.0-0
- libgstreamer-plugins-base1.0-dev
- libgstreamer-plugins-good1.0-0
- libgstreamer-plugins-good1.0-dev
- libgstreamer1.0-0
- libgstreamer1.0-dev
- libigdgmm-dev
- libigdgmm12
- libmfx-gen1.2
- libtpms-dev
- libtpms0
- libva-dev
- libva-drm2
- libva-glx2
- libva-wayland2
- libva-x11-2
- libva2
- libwayland-bin
- libwayland-client0
- libwayland-cursor0
- libwayland-dev
- libwayland-doc
- libwayland-egl-backend-dev
- libwayland-egl1
- libwayland-server0
- libxatracker2
- linux-firmware
- mesa-utils
- mesa-va-drivers
- mesa-vdpau-drivers
- mesa-vulkan-drivers
- libvpl-dev
- libvpl-tools
- libmfx-gen-dev
- onevpl-tools
- ovmf
- ovmf-ia32
- qemu-block-extra
- qemu-guest-agent
- qemu-system
- qemu-system-arm
- qemu-system-common
- qemu-system-data
- qemu-system-gui
- qemu-system-mips
- qemu-system-misc
- qemu-system-ppc
- qemu-system-s390x
- qemu-system-sparc
- qemu-system-x86
- qemu-user
- qemu-user-binfmt
- qemu-utils
- va-driver-all
- vainfo
- weston
- xserver-xorg-core
- libvirt0
- libvirt-clients
- libvirt-daemon
- libvirt-daemon-config-network
- libvirt-daemon-config-nwfilter
- libvirt-daemon-driver-lxc
- libvirt-daemon-driver-qemu
- libvirt-daemon-driver-storage-gluster
- libvirt-daemon-driver-storage-iscsi-direct
- libvirt-daemon-driver-storage-rbd
- libvirt-daemon-driver-storage-zfs
- libvirt-daemon-driver-vbox
- libvirt-daemon-driver-xen
- libvirt-daemon-system
- libvirt-daemon-system-systemd
- libvirt-dev
- libvirt-doc
- libvirt-login-shell
- libvirt-sanlock
- libvirt-wireshark
- libnss-libvirt
- swtpm
- swtpm-tools
- bmap-tools
- adb
- autoconf
- automake
- libtool
- cmake
- g++
- gcc
- git
- intel-gpu-tools
- libssl3
- libssl-dev
- make
- mosquitto
- mosquitto-clients
- build-essential
- apt-transport-https
- default-jre
- docker-compose
- ffmpeg
- git-lfs
- gnuplot
- lbzip2
- libglew-dev
- libglm-dev
- libsdl2-dev
- mc
- openssl
- pciutils
- python3-pandas
- python3-pip
- python3-seaborn
- terminator
- wmctrl
- wayland-protocols
- gdbserver
- iperf3
- msr-tools
- powertop
- linuxptp
- lsscsi
- tpm2-tools
- tpm2-abrmd
- binutils
- cifs-utils
- i2c-tools
- xdotool
- gnupg
- lsb-release
- qemu-system-modules-opengl
- socat
- virt-viewer
- spice-client-gtk
- rpm
# additional packages
- tcpdump
- usb-modeswitch
- fwupd
- clinfo
additionalFiles:
- local: ../additionalfiles/ptl/01-network-manager-all.yaml
final: /etc/netplan/01-network-manager-all.yaml
- local: ../additionalfiles/ptl/50-cloud-init.yaml
final: /etc/netplan/50-cloud-init.yaml
kernel:
version: "6.17"
cmdline: "xe.max_vfs=7 xe.force_probe=* modprobe.blacklist=i915 udmabuf.list_limit=8192 console=tty0 console=ttyS0,115200n8"
enableExtraModules: "intel_vpu uas"
packages:
- linux-image-generic-hwe-24.04
- linux-headers-generic-hwe-24.04
configurations:
# Install Intel Graphics Compiler and compute runtime packages for PTL
- cmd: "mkdir -p /tmp/gpu-packages"
- cmd: "wget https://github.com/intel/intel-graphics-compiler/releases/download/v2.20.3/intel-igc-core-2_2.20.3+19972_amd64.deb -O /tmp/gpu-packages/intel-igc-core-2_2.20.3+19972_amd64.deb --no-check-certificate 2>&1 || echo 'Warning: intel-igc-core-2 download failed'"
- cmd: "wget https://github.com/intel/intel-graphics-compiler/releases/download/v2.20.3/intel-igc-opencl-2_2.20.3+19972_amd64.deb -O /tmp/gpu-packages/intel-igc-opencl-2_2.20.3+19972_amd64.deb --no-check-certificate 2>&1 || echo 'Warning: intel-igc-opencl-2 download failed'"
- cmd: "wget https://github.com/intel/compute-runtime/releases/download/25.40.35563.4/intel-ocloc_25.40.35563.4-0_amd64.deb -O /tmp/gpu-packages/intel-ocloc_25.40.35563.4-0_amd64.deb --no-check-certificate 2>&1 || echo 'Warning: intel-ocloc download failed'"
- cmd: "wget https://github.com/intel/compute-runtime/releases/download/25.40.35563.4/intel-opencl-icd_25.40.35563.4-0_amd64.deb -O /tmp/gpu-packages/intel-opencl-icd_25.40.35563.4-0_amd64.deb --no-check-certificate 2>&1 || echo 'Warning: intel-opencl-icd download failed'"
- cmd: "wget https://github.com/intel/compute-runtime/releases/download/25.40.35563.4/libze-intel-gpu1_25.40.35563.4-0_amd64.deb -O /tmp/gpu-packages/libze-intel-gpu1_25.40.35563.4-0_amd64.deb --no-check-certificate 2>&1 || echo 'Warning: libze-intel-gpu1 download failed'"
- cmd: "wget https://github.com/oneapi-src/level-zero/releases/download/v1.22.4/level-zero_1.22.4+u24.04_amd64.deb -O /tmp/gpu-packages/level-zero_1.22.4+u24.04_amd64.deb --no-check-certificate 2>&1 || echo 'Warning: level-zero download failed'"
- cmd: "wget https://github.com/oneapi-src/level-zero/releases/download/v1.22.4/level-zero-devel_1.22.4+u24.04_amd64.deb -O /tmp/gpu-packages/level-zero-devel_1.22.4+u24.04_amd64.deb --no-check-certificate 2>&1 || echo 'Warning: level-zero-devel download failed'"
- cmd: "find /tmp/gpu-packages -maxdepth 1 -type f -name '*.deb' | xargs -r dpkg -i 2>&1 || echo 'GPU packages: some installs had issues, attempting apt-get --fix-broken-install'; apt-get install -y --fix-broken-install 2>&1 || true"
# Install NPU driver for PTL
- cmd: "dpkg --purge --force-remove-reinstreq intel-driver-compiler-npu intel-fw-npu intel-level-zero-npu intel-level-zero-npu-dbgsym 2>/dev/null || true"
- cmd: "mkdir -p /tmp/npu-driver"
- cmd: "cd /tmp/npu-driver && wget https://github.com/intel/linux-npu-driver/releases/download/v1.28.0/linux-npu-driver-v1.28.0.20251218-20347000698-ubuntu2404.tar.gz -O /tmp/npu-driver/linux-npu-driver-v1.28.0.20251218-20347000698-ubuntu2404.tar.gz --no-check-certificate"
- cmd: "cd /tmp/npu-driver && tar -xf linux-npu-driver-v1.28.0.20251218-20347000698-ubuntu2404.tar.gz"
- cmd: "find /tmp/npu-driver -name '*.deb' -print0 | xargs -0 dpkg -i"