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-02-Cobbler-v3.3.7-Debian-Deployment-Guide.md
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,19 +22,15 @@ Starting where the [Beginner's guide](/blog/2024/Cobbler-v3.3.6-Beginners-Guide/
22
22
23
23
- Along the same lines as the [Beginner's guide](/blog/2024/Cobbler-v3.3.6-Beginners-Guide/) I prefer to locally host/mirror the base OS repo to alleviate public internet availability and bandwidth dependencies during network installations.
24
24
25
-
-using the `cobbler check` CLI command, the output recommends installing the **debmirror** package in order to manage Debian deployments and repos with Cobbler. Instead, we will simply import the Debian source installation media (.iso file) and use that as the local repo mirror to install over the network, similarly to the [Beginner's guide](/blog/2024/Cobbler-v3.3.6-Beginners-Guide/).
25
+
-This guide details 2 distinct approaches to deploying Debian with Cobbler
26
26
27
-
-This method is not the Cobbler official method, and Debian actually [recommends](https://www.debian.org/mirror/ftpmirror) using something like "apt-cacher-ng" or "squid proxy"
27
+
-The first method is *my* preferred approach since it's more similar to the [Beginner's guide](/blog/2024/Cobbler-v3.3.6-Beginners-Guide/) and generally has less requirements.
28
28
29
-
- The Main Debian repo for the latest release of Debian is about 100 GB at the time of writing, which is why this is *my* preferred method over using **debmirror**, as it only requires the data from a single Debian installer DVD (.iso file)
29
+
- This method does require a fairly complicated fix to a bug in the `debian-installer` source code, caused by the **unsigned** repo mirror (imported from the CD/DVD/ISO installation media) failing security verification (more info in the **Tips & Troubleshooting** section below).
30
30
31
-
- For completeness however, the **debmirror** method will be detailed towards the bottom of this guide, in the **Mirroring with debmirror** section.
31
+
- For completeness, the Cobbler-recommended method of using `debmirror` (seen in the output of the `cobbler check` CLI command) will be detailed towards the bottom of this guide, in the **Mirroring with debmirror** section.
32
32
33
-
- This guide provides a workaround to an issue that is encountered when installing Debian 11 & 12 over the network from an **unsigned or self-signed repo** where the PXE client (`debian-installer`) does not trust the installation source *(Since Debian developers DO NOT sign the software/repos packaged into official CD/DVD/ISO releases: [https://wiki.debian.org/SecureApt](https://wiki.debian.org/SecureApt) )*.
34
-
35
-
- This appears to be a bug in the `debian-installer` (`d-i`); more info provided in the **Tips & Troubleshooting** section below.
36
-
37
-
- This issue should not arise when mirroring an official Debian mirror using the **debmirror** method, as recommended by Cobbler
33
+
- Debian actually [recommends](https://www.debian.org/mirror/ftpmirror) using something like "apt-cacher-ng" or "squid proxy"
38
34
39
35
## Cobbler Server Prep
40
36
@@ -273,6 +269,8 @@ Now the **PXE Client** should be able to boot from a generic/random MAC address
273
269
274
270
- A bug has been filed with the Debian Bug Tracking System for this.
275
271
272
+
- Debian developers do NOT sign the software/repos packaged into official CD/DVD/ISO releases: [https://wiki.debian.org/SecureApt](https://wiki.debian.org/SecureApt)
The **PXE Client** VM can now be powered on, and should automatically boot to PXE and install Windows 10 to the VM HDD using the "autounattended.xml" answerfile template.
153
+
The **PXE Client** VM can now be powered on, and should automatically boot to PXE and install Windows 10 to the VM HDD using the "autounattended.xml" answerfile.
154
154
155
155
- See the Tips & Troubleshooting section below for a fix for an issue encountered on the PXE client during the start-net.cmd script on both VirualBox and VMWare VMs
156
156
@@ -198,13 +198,13 @@ The **PXE Client** VM can now be powered on, and should automatically boot to PX
198
198
199
199
- By default, the autoinstall file (post-install script) `/var/lib/cobbler/templates/win.ks` has no effect.
200
200
201
-
- The `autoinstall-meta` parameters *(used to specify the boot files and how to download them, answerfile and post_install templates if performing unattended install, as well as set firmware/partitioning mode)* can be configured at the `cobbler system` (or `profile`) level and given unique names to generate different files for use by diffrent profiles or systems, but neither the `answerfile.template` or `post_inst_cmd.template` files are system-level aware, they only consist of **profile-level** settings.
201
+
- The `autoinstall-meta` parameters *(used to specify the boot files and how to download them, answerfile and post_install templates for unattended installations, as well as set firmware/partitioning mode)* can be configured at the `cobbler system` (or `profile`) level and given unique names to generate different files for use by diffrent profiles or systems, but neither the `answerfile.template` or `post_inst_cmd.template` files are system-level aware, they only consist of **profile-level** settings.
202
202
203
-
- Windows is limited in the [ways to provide an Answerfile](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-setup-automation-overview#implicit-answer-file-search-order), it cannot be specified in boot/kernel parameters like many linux distros
203
+
- Only MAC address and other DHCP-related options will be used for *Windows*`cobbler system` items, in addition to the above `autoinstall-meta`parameters, which have limited functionality for Systems.
204
204
205
-
-Only MAC address and other DHCP-related options are used from *Windows*`cobbler system` items (as well as `autoinstall-meta`parameters mentioned above, which have limited functionality for Systems).
205
+
-Windows is limited in the [ways to provide an Answerfile](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-setup-automation-overview#implicit-answer-file-search-order), it cannot be specified in boot/kernel parameters like many linux distros
206
206
207
-
- This is all only *default* behavior in cobbler, and it would be possible to program additional logic into the `startnet.cmd` or `post_install.cmd`to, for instance, retrieve a diffent answerfile or post-install script based on the hostname (configuratble through DHCP) or MAC address, for instance, but that would come with additional limitations and requirements beyond the scope of this guide.
207
+
- This is all only *default* behavior in cobbler, and it would be possible to program additional logic into the `startnet.cmd` or `post_install.cmd`scripts, for instance, to retrieve a diffent answerfile or post-install script based on the hostname (configurable through DHCP) or MAC address. However, that would come with additional limitations and requirements beyond the scope of this guide.
0 commit comments