You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2024-12-11-Cobbler-v3.3.7-Ubuntu-Deployment-Guide.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,6 @@ Create the new Cobbler template and snippets necessary to generate the `cloud-in
41
41
{% for line in lines %}{{ line | prepend: " " }}
42
42
{% endfor %}
43
43
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
-
46
44
-`/var/lib/cobbler/snippets/cloud-init_hostname`
47
45
48
46
{% capture file %}{% include cloud-init_hostname.txt path="_includes/cloud-init_hostname.txt" %}{% endcapture %}
> 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
-
111
107
Edit the kernel options for the new Cobbler Distro to install Ubuntu automatically by default:
> More info on these configs in the **Tips & Troubleshooting** section below.
124
120
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.
126
122
127
123
```shell
128
124
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
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:
> 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
149
150
cobbler sync
150
151
```
151
152
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
+
152
155
## Ubuntu 22.04 PXE Deployment
153
156
154
157
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.
> 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.
0 commit comments