Due to work needs, the company has a batch of servers and needs to install SUSE 11 in large batches. 2. therefore, The suse is unattended and found to be similar to the RedHat kickstart. in suse linux, autofast is used and the installation file is no longer ks. cfg is an autoinst. xml file. this file by default install suse last step is checked, and RedHat, the ROOT directory under the anaconda-ks.cfg is similar.
1. Install the required software first.
- Zypper install-y dhcp tftp vsftpd syslinux
2. Configure the DHCP service
Here, my server IP address is 192.168.1.30.
- Vi/etc/dhcpd. conf
- Default-lease-time 14400;
- Ddns-update-style none;
- Next-server 192.168.1.30;
- Filename "pxelinux.0 ";
- Subnet 192.168.1.0 netmask 255.255.255.0 {
- Range 192.168.1.50 192.168.1.240;
- Default-lease-time 14400;
- Max-lease-time 172800;
- }
Modify the default Nic obtained by the IP address. Here we define the first Nic eth0.
- Vim/etc/sysconfig/dhcpd
- # In row 15th
- DHCPD_INTERFACE = "" changed to DHCPD_INTERFACE = "eth0"
Restart the service so that DHCP is configured.
- Service dhcpd restart
3. tftp Configuration
Create the root directory of tftp. In the/etc/xinted. d/tftp configuration file, we can see that the default directory of tftp under suse11 is/tftpboot.
The following is similar to redhat:
- Mkdir/tftpboot
- Mkdir/tftpboot/pxelinux. cfg
- Cp/media/boot/x86_64/loader/initrd/tftpboot
- Cp/media // boot/x86_64/loader/linux/tftpboot
- Cp/usr/share/syslinux/pxelinux.0/tftpboot
Create a boot file:
- Vim/tftpboot/pxelinux. cfg/default
- Default linux
- Lable linux
- Kernel linux
- Append initrd = initrd autoyast = ftp: // 192.168.1.30/autoinst. xml install = ftp: // 192.168.1.30/splash = verbose showopts
Modify the TFTP service and restart it:
- Vim/etc/xinetd. d/tftp
- Change disable = yes to disable = no
- Service xinetd restart
4. ftp Configuration
The default ftp directory in suse is/srv/ftp.
Copy the autolist. xml file to the ftp root directory, and then copy the CD image:
- Cp/root/autoinst. xml/srv/ftp
- Cp-rf/media/*/srv/ftp
Restart the service and you will be able to guide the process.
- Service vsftpd restart