Skip to content

Commit a957c59

Browse files
committed
Add ubuntu-server 24.04 autoinstall for the NUC9v7QNX
1 parent 9963663 commit a957c59

File tree

5 files changed

+103
-0
lines changed

5 files changed

+103
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
http/
22
output-*/
33
boot-*/
4+
*.iso
5+
.DS_Store
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
NUC9V7QNX update link
2+
3+
https://www.asus.com/supportonly/nuc9v7qnx/helpdesk_bios/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
curl -LO https://releases.ubuntu.com/24.04.2/ubuntu-24.04.2-live-server-amd64.iso
2+
% shasum -a 256 ubuntu-24.04.2-live-server-amd64.iso
3+
d6dab0c3a657988501b4bd76f1297c053df710e06e0c3aece60dead24f270b4d ubuntu-24.04.2-live-server-amd64.iso
4+
5+
docker pull docker.io/boxcutter/ubuntu-autoinstall
6+
docker run -it --rm \
7+
--mount type=bind,source="$(pwd)",target=/data \
8+
docker.io/polymathrobotics/ubuntu-autoinstall \
9+
-a autoinstall.yaml \
10+
-g grub.cfg \
11+
-i \
12+
-s ubuntu-24.04.2-live-server-amd64.iso \
13+
-d ubuntu-autoinstall-NUC9v7QNX.iso
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#cloud-config
2+
autoinstall:
3+
version: 1
4+
network:
5+
network:
6+
version: 2
7+
ethernets:
8+
# Intel I219-LM interface that supports vPro/AMT pass-through
9+
eno1:
10+
dhcp4: true
11+
dhcp6: false
12+
# # Intel I210-AT standalone gigabit ethernet
13+
# enp113s0: {}
14+
# wlp4s0: {}
15+
bridges:
16+
br0:
17+
interfaces:
18+
- eno1
19+
dhcp4: true
20+
dhcp6: false
21+
parameters:
22+
stp: false
23+
storage:
24+
layout:
25+
name: lvm
26+
sizing-policy: all
27+
ssh:
28+
install-server: true
29+
allow-pw: true
30+
late-commands:
31+
# Because we're using preserve_hostname to allow manual setting
32+
# of the hostname, set an initial hostname manually
33+
- echo robot00 > /target/etc/hostname
34+
- curtin in-target -- sed -ie 's/GRUB_TIMEOUT=.*/GRUB_TIMEOUT=30/' /etc/default/grub
35+
- curtin in-target -- sed -ie 's/GRUB_TIMEOUT_STYLE=.*/GRUB_TIMEOUT=countdown/' /etc/default/grub
36+
- curtin in-target -- update-grub
37+
user-data: # cloud-init starts here
38+
preserve_hostname: true
39+
users:
40+
- name: automat
41+
uid: 63112
42+
primary_group: users
43+
groups: users
44+
shell: /bin/bash
45+
plain_text_passwd: superseekret
46+
sudo: ALL=(ALL) NOPASSWD:ALL
47+
lock_passwd: false
48+
ssh_authorized_keys:
49+
# taylor
50+
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINRK4hkcpUiaSkiLEytgwMYcKylBioXPLx1TnwJFrLPl mahowald
51+
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINy9cJcJl8oN6bRtcBc4RZq8f/T6P1AFR3YS1YRYi5YY sheila
52+
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHGTw44QBehDXY6ebitrYydyAAhDFLBSkQ59RovcVsvX joan
53+
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMWwrOVfOWfax6HR4Y+Mg01jT9No2zXHqkATnqwHuFKU emily
54+
chpasswd: {expire: false}
55+
ssh_pwauth: true
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
set timeout=30
2+
3+
loadfont unicode
4+
5+
set menu_color_normal=white/black
6+
set menu_color_highlight=black/light-gray
7+
8+
menuentry "Ubuntu Server Autoinstall" {
9+
set gfxpayload=text
10+
linux /casper/vmlinuz autoinstall ds=nocloud\;s=/cdrom/nocloud/ ---
11+
initrd /casper/initrd
12+
}
13+
menuentry "Try or Install Ubuntu Server" {
14+
set gfxpayload=keep
15+
linux /casper/vmlinuz ---
16+
initrd /casper/initrd
17+
}
18+
grub_platform
19+
if [ "$grub_platform" = "efi" ]; then
20+
menuentry 'Boot from next volume' {
21+
exit 1
22+
}
23+
menuentry 'UEFI Firmware Settings' {
24+
fwsetup
25+
}
26+
else
27+
menuentry 'Test memory' {
28+
linux16 /boot/memtest86+x64.bin
29+
}
30+
fi

0 commit comments

Comments
 (0)