如何進行網路成批安裝Linux

來源:互聯網
上載者:User
複製cdrom
cd /mnt
mkdir netins
mkdir /mnt/netins/images
mount -t auto /dev/cdrom /mnt/netins/
cp -ar /mnt/cdrom/Fedora/ /mnt/netins/
cp -ar repodata/ /mnt/netins/
cp -ar pxeboot/ /mnt/netins/images/
eject
更換光碟片,重複剛才的命令。
安裝nfs
vim /etc/exports
/mnt/netins/  *(ro,sync)
service rpcgssd restart
service  rpcsvcgssd   restar
service  nfs  restart
service portmap restart
exportfs -a
檢查rpc服務:
rpcinfo -p
關閉iptables
iptables -F
service iptables restart
mount localhost:/mnt/netinst /media
檢測nfs是否正確運行:
mount localhost:/mnt/netinst /media
ls /media/

安裝配置功能
yum install system-config-netboot
會安裝三個依賴的rpm包
其中包含tftp

執行
system-config-netboot
點擊network-installtion
輸入

點擊ok

點擊new
輸入

點擊ok
退出 ls
會在根目錄的生tftpboot
ls /tftpboot/linux-install/
Fedora  msgs  pxelinux.0  pxelinux.cfg

配置dhcp伺服器
yum install dhcp-3.0.3-26.i386.rpm
vim /etc/dhcpd.conf

ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;

subnet 192.168.1.0 netmask 255.255.255.0 {
        option routers                  192.168.1.1;
        option subnet-mask              255.255.255.0;
        option domain-name              "digilinx.cn";
        option domain-name-servers      202.106.0.20,202.106.46.151,192.168.1.201;
        option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.1.1;
#       option netbios-name-servers     202.106.46.151;
#       option netbios-node-type 2;
        range dynamic-bootp 192.168.1.80 192.168.1.199;
#       deny unknown-clients;
        default-lease-time 604800;
        max-lease-time 2592000;

class "pxeclients" {
match if substring(option vendor-class-identifier,0,9)="PXEClient";
next-server 192.168.1.218;
filename "linux-install/pxelinux.0";
}
}
調試dhcp伺服器
/usr/sbin/dhcpd -f -d
啟動dhcp伺服器
service dhcpd start

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.