Skip to content

Commit 223a4c6

Browse files
committed
add ptl pv template
1 parent 6a3d08f commit 223a4c6

File tree

1 file changed

+358
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)