光盤安裝centos6的步驟
centos7安裝httpd
yum install httpd
mkdir /var/www/html/centos/{6,7}/os/x86_64/ -pv
tree /var/www/html
而後在加一個centos6的光驅
mount /dev/sr0 /var/www/html/centos/6/os/x86_64/
systemctl restart httpd.service
建立放應答文件的目錄mkdir /var/www/html/ksdir
centos6的應答文件拷貝到192.168.66.17:/var/www/html/ksdir的目錄
scp ks.cfg 192.168.66.17:/var/www/html/ksdir
用瀏覽器檢查一下應答文件http://192.168.66.17/ksdir/ks.cfg
測試 裝系統 linux ks=http://192.168.66.17/ksdir/ks6_mini.cfg ip=192.168.66.89 netmask=255.255.255.0
驗證key是否成功ssh 192.168.66.18
光盤安裝centos7的步驟
改一下名字
vim /etc/yum.repos.d/yum.repos.d/backup/base.repo
centos7原來就有應答文件
cat anaconda-ks.cfg
拷貝一份到 /var/www/html/ksdir/目錄下
cp anaconda-ks.cfg /var/www/html/ksdir/ks7_desktop.cfg
看一下這個文件的權限
ll /var/www/html/ksdir/ks7_desktop.cfg
改一下文件權限chmod 644 /var/www/html/ksdir/ks7_desktop.cfg
vim /var/www/html/ksdir/ks7_desktop.cfg
html
ksvalidator /var/www/html/ksdir/ks7_desktop.cfg
mount /dev/sr1 /var/www/html/centos/7/os/x86_64/linux