Cobbler本机使用VM装机配置方法

一、需要在本地VM虚拟机上安装好Cobbler服务

安装服务及配置方法参见链接:https://www.cnblogs.com/cyleon/p/11460061.html

二、本地配置VM网络

网络适配器 --> 网络连接 --> 桥接模式(复制物理网络连接状态)

 三、配置cobbler主机的IP,服务的IP以及dhcp的IP

# 修改本地IP地址
[root@cobbler ~]# ifconfig eth0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.25.15 netmask 255.255.255.0 broadcast 192.168.25.255 inet6 fe80::20c:29ff:fef6:5998 prefixlen 64 scopeid 0x20<link> ether 00:0c:29:f6:59:98 txqueuelen 1000 (Ethernet) RX packets 537020 bytes 44218405 (42.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1996013 bytes 3004167768 (2.7 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# 修改cobbler服务IP地址 [root@cobbler
~]# for i in 70 98 ;do awk "NR==$i" /etc/cobbler/settings ;done next_server: 192.168.25.15 server: 192.168.25.15 # 修改线上环境的IP地址 [root@cobbler ~]# sed -n '21,28p' /etc/cobbler/dhcp.template subnet 192.168.25.0 netmask 255.255.255.0 { option routers 192.168.25.1; option domain-name-servers 114.114.114.114; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.25.100 192.168.25.254; default-lease-time 21600; max-lease-time 43200; next-server $next_server; [root@cobbler ~]# systemctl restart cobbler [root@cobbler ~]# cobbler sync

四、本地网卡指定固定的IP地址

 

 接上交换机,启动需要安装系统的服务器即可进行安装。

posted @ 2019-09-05 13:22  林中龙虾  阅读(439)  评论(0编辑  收藏  举报