Here the Server environment is used UbuntuServer12.041, install the required software package # apt-getinstallsystem-config-kickstartdhcp3-servertftpd-hpatftp-hpadebmrror installation configuration VNC, and open an account remote connection up, VNC configuration omitted # system-config-kickstart pop-up
The Server environment used here is
Ubuntu Server 12.04
1. Install the required software package
# Apt-get install system-config-kickstart dhcp3-server tftpd-hpa tftp-hpa debmrror
Install and configure VNC, and connect to the Remote Account. The VNC configuration is omitted.
# System-config-kickstart
The above graphic interface configuration window is displayed. After the configuration is complete, save the file to/var/www/ubuntu/and run the command ks. cfg to lay the foundation for future service provision.
Of course, you can also directly write the Kikcstart file by yourself.
2. Configure the DHCP service
- Root @ node1 :~ # Vim/etc/dhcp/dhcpd. conf
- Subnet 1.0.0.0 netmask 255.0.0.0 {
- Range 1.1.1.210 1.1.1.253;
- Option routers 1.1.1.254;
- Option domain-name-servers 8.8.8.8;
- Default-lease-time 600;
- Max-lease-time 7200;
- Next-server 1.1.1.1;
- Filename "pxelinux.0"; // note the file name. The value is 0.
- }
Be sure to pay attention to the file name specified above. If an error is written, the following error will occur:
Run the following command to start the dhcpd service:
# Dhcpd to start the dhcp service, if there is a script, you can also use the script to start/etc/init. d/dhcp3-server start
You can view logs through/var/log/syslog.
- Jul 18 00:48:34 node1 dhcpd: DHCPOFFER on 1.1.1.210 to 00: 0c: 29: 31: 95: 8f (node20) via eth0
- Jul 18 00:48:34 node1 dhcpd: DHCPREQUEST for 1.1.1.210 (1.1.1.1) from 00: 0c: 29: 31: 95: 8f (node20) via eth0
- Jul 18 00:48:34 node1 dhcpd: DHCPACK on 1.1.1.210 to 00: 0c: 29: 31: 95: 8f (node20) via eth0
- Jul 18 00:50:03 node1 dhcpd: DHCPREQUEST for 1.1.1.210 from 00: 0c: 29: 31: 95: 8f (node20) via eth0