SUSE Linux 11 pxe + dhcp + tftp + ftp Unattended Installation

Source: Internet
Author: User

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.

  1. Zypper install-y dhcp tftp vsftpd syslinux

2. Configure the DHCP service

Here, my server IP address is 192.168.1.30.

  1. Vi/etc/dhcpd. conf
  2. Default-lease-time 14400;
  3. Ddns-update-style none;
  4. Next-server 192.168.1.30;
  5. Filename "pxelinux.0 ";
  6. Subnet 192.168.1.0 netmask 255.255.255.0 {
  7. Range 192.168.1.50 192.168.1.240;
  8. Default-lease-time 14400;
  9. Max-lease-time 172800;
  10. }

Modify the default Nic obtained by the IP address. Here we define the first Nic eth0.

  1. Vim/etc/sysconfig/dhcpd
  2. # In row 15th
  3. DHCPD_INTERFACE = "" changed to DHCPD_INTERFACE = "eth0"

Restart the service so that DHCP is configured.

  1. 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:

  1. Mkdir/tftpboot
  2. Mkdir/tftpboot/pxelinux. cfg
  3. Cp/media/boot/x86_64/loader/initrd/tftpboot
  4. Cp/media // boot/x86_64/loader/linux/tftpboot
  5. Cp/usr/share/syslinux/pxelinux.0/tftpboot

Create a boot file:

  1. Vim/tftpboot/pxelinux. cfg/default
  2. Default linux
  3. Lable linux
  4. Kernel linux
  5. 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:

  1. Vim/etc/xinetd. d/tftp
  2. Change disable = yes to disable = no
  3. 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:

  1. Cp/root/autoinst. xml/srv/ftp
  2. Cp-rf/media/*/srv/ftp

Restart the service and you will be able to guide the process.

  1. Service vsftpd restart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.