Skip to content

Commit 4f7b632

Browse files
committed
Ubuntu guide fixes
1 parent b22fd03 commit 4f7b632

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ NAME="Ubuntu20-casper-x86_64" && cobbler distro edit --name $NAME --kernel-optio
127127
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.
128128
129129
```shell
130-
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
130+
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
131131
```
132132
133133
Then configure it as the autoinstallation template for the Ubuntu 20.04 Cobbler Profile
@@ -170,11 +170,11 @@ cobbler import --name Ubuntu22 --path /mnt/Ubuntu
170170
mkdir -p /var/www/cobbler/pub/cloud-init/Ubuntu22
171171
cp ~/Downloads/ubuntu-22.04.5-live-server-amd64.iso /var/www/cobbler/pub/cloud-init/Ubuntu22/.
172172

173-
cobbler distro edit --name 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/profile/Ubuntu22-casper-x86_64'
173+
NAME="Ubuntu22-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/Ubuntu22/ubuntu-22.04.5-live-server-amd64.iso autoinstall cloud-config-url=http://10.0.0.10/cblr/svc/op/autoinstall/profile/$NAME" && unset NAME
174174

175175
cobbler profile edit --name Ubuntu22-casper-x86_64 --autoinstall cloud-init_user-data
176176

177-
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=""
177+
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 && unset NAME
178178

179179
cobbler sync
180180
```
@@ -232,11 +232,11 @@ cobbler import --name Ubuntu24 --path /mnt/Ubuntu
232232
mkdir -p /var/www/cobbler/pub/cloud-init/Ubuntu24
233233
cp ~/Downloads/ubuntu-24.04.1-live-server-amd64.iso /var/www/cobbler/pub/cloud-init/Ubuntu24/.
234234

235-
cobbler distro edit --name 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/profile/Ubuntu24-casper-x86_64'
235+
NAME="Ubuntu24-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/Ubuntu24/ubuntu-24.04.1-live-server-amd64.iso autoinstall cloud-config-url=http://10.0.0.10/cblr/svc/op/autoinstall/profile/$NAME" && unset NAME
236236

237237
cobbler profile edit --name Ubuntu24-casper-x86_64 --autoinstall cloud-init_user-data
238238

239-
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=""
239+
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 && unset NAME
240240

241241
cobbler sync
242242
```
@@ -279,6 +279,8 @@ cobbler sync
279279
280280
1. Additional references:
281281
282+
- (https://github.com/cobbler/cobbler/discussions/3573)[https://github.com/cobbler/cobbler/discussions/3573]
283+
282284
- [https://github.com/cobbler/cobbler/issues/2339](https://github.com/cobbler/cobbler/issues/2339)
283285
284286
- [https://askubuntu.com/questions/1235723/automated-20-04-server-installation-using-pxe-and-live-server-image](https://askubuntu.com/questions/1235723/automated-20-04-server-installation-using-pxe-and-live-server-image)

0 commit comments

Comments
 (0)