Skip to content

Commit b314bd6

Browse files
committed
Ubuntu guide edit
1 parent c6de98d commit b314bd6

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ Create the new Cobbler template and snippets necessary to generate the `cloud-in
4141
{% for line in lines %}{{ line | prepend: " " }}
4242
{% endfor %}
4343

44-
> the `fallback: offline` option under the apt configuration will use the live CD (.iso file) as the source to install Ubuntu from if there is an issue connecting to a remote repo mirror, and imposes higher system RAM requirements for the PXE client, since the entire CD is loaded into memory before performing installs.
45-
4644
- `/var/lib/cobbler/snippets/cloud-init_hostname`
4745

4846
{% capture file %}{% include cloud-init_hostname.txt path="_includes/cloud-init_hostname.txt" %}{% endcapture %}
@@ -106,12 +104,10 @@ mkdir -p /var/www/cobbler/pub/cloud-init/Ubuntu20
106104
cp ~/Downloads/ubuntu-20.04.6-live-server-amd64.iso /var/www/cobbler/pub/cloud-init/Ubuntu20/.
107105
```
108106

109-
> the PXE Client will not install Ubuntu from the local mirror @ `/var/www/cobbler/distro_mirror`, and since the `fallback: ofline-install` option was not available for Ubuntu 20.04 `cloud-init`, this distro **requires an internet connection** to install, as detailed in this guide.
110-
111107
Edit the kernel options for the new Cobbler Distro to install Ubuntu automatically by default:
112108

113109
```shell
114-
cobbler distro edit --name 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/profile/Ubuntu20-casper-x86_64'
110+
NAME="Ubuntu20-casper-x86_64" && cobbler distro edit --name $NAME --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/profile/$NAME" && unset NAME
115111
```
116112

117113
> alternatively, use the following kernel-options to **install Ubuntu manually** via PXE network boot
@@ -122,17 +118,22 @@ cobbler distro edit --name Ubuntu20-casper-x86_64 --kernel-options 'root=/dev/ra
122118
>
123119
> More info on these configs in the **Tips & Troubleshooting** section below.
124120
125-
create a new autoinstall (`cloud-init`) template from the `cloud-init_user_data` file created above, and configure it as the autoinstallation template for the Ubuntu 20.04 Cobbler PROFILE
121+
Since the PXE client will install the OS from the internet, create a new autoinstall (`cloud-init`) template from the file created above, changing the `apt` uri.
126122
127123
```shell
128124
sed -z 's, uri: http://$http_server/cblr/links/$distro\n# uri: http://us.archive.ubuntu.com/ubuntu,# uri: http://$http_server/cblr/links/$distro\n uri: http://us.archive.ubuntu.com/ubuntu,' /var/lib/cobbler/templates/cloud-init_user-data | tee /var/lib/cobbler/templates/Ubuntu20_cloud-init_user-data
125+
```
126+
127+
Then configure it as the autoinstallation template for the Ubuntu 20.04 Cobbler Profile
128+
129+
```shell
129130
cobbler profile edit --name Ubuntu20-casper-x86_64 --autoinstall Ubuntu20_cloud-init_user-data
130131
```
131132

132-
Create a new Cobbler System to install Ubuntu 20.04 automatically based on the system's (PXE client's) MAC address, replacing the *"aa:bb:cc:dd:ee:ff"* with the MAC address of your PXE client, and being sure not to use a duplicate MAC or IP addresse of any other Cobbler System as well as setting the kernel-options to match the Cobbler System's name:
133+
Create a new Cobbler System to install Ubuntu 20.04 automatically based on the system's (PXE client's) MAC address, replacing the *"aa:bb:cc:dd:ee:ff"* with the MAC address of your PXE client, and being sure not to use a duplicate MAC or IP addresse of any other Cobbler System:
133134

134135
```shell
135-
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=""
136+
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 && unset NAME
136137
```
137138

138139
> Alternatively, configure the Cobbler System kernel-options to run as a **manual** installation:
@@ -149,6 +150,8 @@ Finally, sync up Cobbler, then the **PXE Client** VM can be powered on and shoul
149150
cobbler sync
150151
```
151152
153+
> the PXE Client will not install Ubuntu from the local mirror @ `/var/www/cobbler/distro_mirror`, and since the `fallback: ofline-install` option was not available for Ubuntu 20.04 `cloud-init`, this distro **requires an internet connection** to install, as detailed in this guide.
154+
152155
## Ubuntu 22.04 PXE Deployment
153156

154157
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.
@@ -170,7 +173,7 @@ NAME="Ubuntu22-auto" && cobbler system add --name $NAME --profile Ubuntu22-caspe
170173
cobbler sync
171174
```
172175

173-
> Again, the PXE Client is not installing via the local repo @ `/var/www/cobbler/distro_mirror`, but now that the `fallback: offline-install` option is available with Ubuntu 22.04 `cloud-init`, the installer will NOT require and internet connection to install, instead installing using the live server installer (.iso file) available on Cobbler's public HTTP share.
176+
> Again, the PXE Client is not installing via the local repo @ `/var/www/cobbler/distro_mirror`, but now that the `fallback: offline-install` option is available with Ubuntu 22.04 `cloud-init`, the installer will NOT require and internet connection to install, instead installing using the live server installer (.iso file) available on Cobbler's public HTTP share and specified in the kernel options.
174177
175178
## Ubuntu 24.04 PXE Deployment
176179

0 commit comments

Comments
 (0)