Kickstart-unattended installation of centos6.5

Note: Configuration is based on pxe network installation.
1. Create a response file and pre-define various installation settings.

Method 1: Use the system-config-kickstart graphical interface to generate a response file

Method 2: Copy the existing answer file to modify it, and add read permission to the file after modification.

This experiment uses the second method
1. Copy the /root/anaconda-ks file to the
existing answer file under /
Insert image description here
[root@xss ~]# cp /root/anaconda-ks.cfg /ks.cfg
Insert image description here
2. Modify the answer File
[root@xss /]# vim /ks.cfg
Insert image description here
3. Add read permission to the file
[root@xss /]# chmod 644 ks.cfg

two. Modify the boot menu file
and add the ks parameter. ks points to the location of the ks file on the httpd or vftp server.
default auto
prompt 0 // Prompt is 0, do not wait for
label auto
kernel vmlinuz
append ks=http://192.168.43.227/ks.cfg
initrd=initrd.img devfs=nomount ramdisk_size=8192
label linux text
kernel vmlinuz
append text initrd= initrd.img devfs=nomount ramdisk_size=8192
label linux rescue
kernel vmlinuz
append rescue initrd=initrd.img devfs=nomount ramdisk_size=81923
Insert image description here
. Restart various services
[root@xss /]# service httpd restart
[root@xss /]# service dhcpd restart
[root@xss /]# service xinetd restart
4. Create a new virtual machine for verification.
Note: The network connection mode of the new virtual machine must be consistent with the server.
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_42121397/article/details/109514637