Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Customize the installation of the specified system with Cobbler

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "customizing the installation of designated systems with Cobbler". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Environment:

CentOS Linux release 7.6.1810

VMware Workstation Pro 14

Create a new VM virtual machine

The MAC address is 00:50:56:3E:F0:C6

When installing the system using Cobbler, specify the IP address, image, gateway, hostname and other information of the system.

[root@localhost kickstarts] # pwd/var/lib/cobbler/kickstarts [root@Jaking kickstarts] # cobbler system add\-- name=Jaking-custom\-- mac=00:50:56:3E:F0:C6\-- profile=CentOS-7.6-x86_64\-- ip-address=192.168.1.163\-- subnet=255.255.255.0\-gateway=192.168.1.1\-- interface=eth0\-- static=1\-- hostname=Jaking-custom\-- name-servers= "192.168.1.1" \-kickstart=/var/lib/cobbler/kickstarts/CentOS7.ks

View system list

[root@Jaking kickstarts] # cobbler system list Jaking-custom

Synchronize Cobbler configuration

[root@Jaking kickstarts] # systemctl restart cobblerd [root@Jaking kickstarts] # cobbler sync

Check the DHCP configuration and find that the DHCP server has joined the corresponding relationship between IP and MAC.

[root@Jaking kickstarts] # cat / etc/dhcp/dhcpd.conf# * # Cobbler managed dhcpd.conf file# generated from cobbler dhcp.conf template (Sat Jan 4 10:52:04 2020) # Do NOT make changes to / etc/dhcpd.conf. Instead, make your changes# in / etc/cobbler/dhcp.template, as / etc/dhcpd.conf will be# overwritten.# * ddns-update-style interim;allow booting;allow bootp;ignore client-updates;set vendorclass = option vendor-class-identifier Option pxe-system-type code 93 = unsigned integer 16tern subnet 192.168.1.0 netmask 255.255.255.0 {option routers 192.168.1.1; option domain-name-servers 114.114.114; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.1.100 192.168.1.254; default-lease-time 21600 Max-lease-time 43200; next-server 192.168.1.7; class "pxeclients" {match if substring (option vendor-class-identifier, 0,9) = "PXEClient"; if option pxe-system-type = 00:02 {filename "ia64/elilo.efi" } else if option pxe-system-type = 00:06 {filename "grub/grub-x86.efi";} else if option pxe-system-type = 00:07 {filename "grub/grub-x86_64.efi";} else if option pxe-system-type = 00:09 {filename "grub/grub-x86_64.efi" } else {filename "pxelinux.0";} # group for Cobbler DHCP tag: defaultgroup {host generic1 {hardware ethernet 00V 50V 56V 3E V F0V C6; fixed-address 192.168.1.163; option host-name "Jaking-custom"; option subnet-mask 255.255.255.0; option routers 192.168.1.1 Filename "/ pxelinux.0"; next-server 192.168.1.7;}} # more of the above custom configuration

Power on and automatically install the designated system

Direct installation does not need to wait, and network-related parameters have been set in advance.

Enter root 123456 (the password defined by the server) to log in to the system:

The system with MAC address 00:50:56:3E:F0:C6 obtained the specified IP 192.168.1.163

This is the end of the content of "customizing and installing the specified system with Cobbler". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report