Skip to content

Commit be5c1d2

Browse files
committed
Ubuntu Guide clean-up
1 parent af5e681 commit be5c1d2

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

_posts/2024-12-11-Cobbler-v3.3.7-Ubuntu-Deployment-Guide.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ chmod u+x /var/lib/cobbler/triggers/sync/post/fix-ubuntu-systems-GRUB_PXE.sh
307307

308308
> Cobbler is normally a dynamic and responsive app that implements many options, parameters, and configurations on-demand through `edit|add|remove|etc...` actions, not requiring a `cobbler sync` to commit most changes. However, it is recommended to run `cobbler sync` after any changes to a *(Ubuntu)* Cobbler Distro/Profile/System when using Cobbler sync-triggers in this manner, unless you're absolutely certain otherwise.
309309
>
310-
> **TIP** Cobbler recommends writing triggers as Python modules and has a lot of good info in their [docs](https://cobbler.readthedocs.io/en/latest/user-guide/extending-cobbler.html#about), but I have only written bash scripts that slowly but surely accomplish my needs.
310+
> **TIP:** Cobbler recommends writing triggers as Python modules and has a lot of good info in their [docs](https://cobbler.readthedocs.io/en/latest/user-guide/extending-cobbler.html#about), but I have only written bash scripts that slowly but surely accomplish my needs.
311311
312312
Download the latest 3 releases of Ubuntu Server LTS
313313

@@ -358,23 +358,20 @@ Create a new Cobbler System to install Ubuntu 20.04 automatically based on the s
358358
NAME="Ubuntu20-auto" && cobbler system add --name $NAME --profile Ubuntu20-casper-x86_64 --kernel-options "root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://10.0.0.10/cblr/pub/cloud-init/Ubuntu20/ubuntu-20.04.6-live-server-amd64.iso autoinstall cloud-config-url=http://10.0.0.10/cblr/svc/op/autoinstall/system/$NAME" --mac-address "aa:bb:cc:dd:ee:ff" --static true --ip-address "10.0.0.20" --netmask "255.255.255.0" --gateway "10.0.0.1" --name-servers "10.0.0.1 1.1.1.1 10.0.0.10" --hostname "Ubuntu20" --netboot-enabled true && NAME=""
359359
```
360360

361-
> Alternatively, configure the Cobbler System kernel-options to run as a MANUAL installation:
361+
> Alternatively, configure the Cobbler System kernel-options to run as a **manual** installation:
362362
>
363363
> ```shell
364364
> cobbler system add --name Ubuntu20 --profile Ubuntu20-casper-x86_64 --kernel-options 'root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://10.0.0.10/cblr/pub/cloud-init/Ubuntu20/ubuntu-20.04.6-live-server-amd64.iso autoinstall cloud-config-url=/dev/null' --mac-address "aa:bb:cc:dd:ee:ff"
365365
> ```
366366
367-
Restart and sync up Cobbler
367+
Finally, sync up Cobbler, then the **PXE Client** VM can be powered on and should automatically boot to PXE and install Ubuntu 20.04 to the VM HDD using the "Ubuntu20_cloud-init_user-data" *cloud-init* template created above.
368+
369+
- The resulting system will have the `root` super-user account disabled, and will only be accessible with the `ubuntu` user specified in the *cloud-init* config file.
368370
369371
```shell
370-
systemctl restart cobblerd && sleep 10
371372
cobbler sync
372373
```
373374
374-
The **PXE Client** VM can now be powered on, and should automatically boot to PXE and install Ubuntu 20.04 to the VM HDD using the "Ubuntu20_cloud-init_user-data" preseed template created above.
375-
376-
- The resulting system will have the `root` super-user account disabled, and will only be accessible with the `ubuntu` user specified in the *cloud-init* config file.
377-
378375
## Ubuntu 22.04 PXE Deployment
379376

380377
Take similar steps as above to import and automatically deploy Ubuntu 22.04 LTS Server over PXE, using the original `cloud-init_user-data` autoinstall template created above.
@@ -393,7 +390,6 @@ cobbler profile edit --name Ubuntu22-casper-x86_64 --autoinstall cloud-init_user
393390

394391
NAME="Ubuntu22-auto" && cobbler system add --name $NAME --profile Ubuntu22-casper-x86_64 --kernel-options "root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://10.0.0.10/cblr/pub/cloud-init/Ubuntu22/ubuntu-22.04.5-live-server-amd64.iso autoinstall cloud-config-url=http://10.0.0.10/cblr/svc/op/autoinstall/system/$NAME" --mac-address "aa:bb:cc:dd:ee:ff" --static true --ip-address "10.0.0.22" --netmask "255.255.255.0" --gateway "10.0.0.1" --name-servers "10.0.0.1 1.1.1.1 10.0.0.10" --hostname "Ubuntu22" --netboot-enabled true && NAME=""
395392

396-
systemctl restart cobblerd && sleep 10
397393
cobbler sync
398394
```
399395

@@ -437,7 +433,6 @@ First, modify `/var/lib/cobbler/distro_signatures.json` to suppport Ubuntu 24.04
437433
Sync up Cobbler in order to apply the changes
438434

439435
```shell
440-
systemctl restart cobblerd && sleep 10
441436
cobbler sync
442437
```
443438

@@ -457,7 +452,6 @@ cobbler profile edit --name Ubuntu24-casper-x86_64 --autoinstall cloud-init_user
457452

458453
NAME="Ubuntu24-auto" && cobbler system add --name $NAME --profile Ubuntu24-casper-x86_64 --kernel-options "root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://10.0.0.10/cblr/pub/cloud-init/Ubuntu24/ubuntu-24.04.1-live-server-amd64.iso autoinstall cloud-config-url=http://10.0.0.10/cblr/svc/op/autoinstall/system/$NAME" --mac-address "aa:bb:cc:dd:ee:ff" --static true --ip-address "10.0.0.24" --netmask "255.255.255.0" --gateway "10.0.0.1" --name-servers "10.0.0.1 1.1.1.1 10.0.0.10" --hostname "Ubuntu24" --netboot-enabled true && NAME=""
459454

460-
systemctl restart cobblerd && sleep 10
461455
cobbler sync
462456
```
463457

0 commit comments

Comments
 (0)