linux搭建windows无盘系统,PXE+HTTP 无盘安装linux系统
前一段時(shí)間買了一臺(tái)小本子,IBM的x60,輕是輕,但是沒有光驅(qū)。而且系統(tǒng)安裝的XP的系統(tǒng),不喜歡。于是自己用PXE+HTTP重做了系統(tǒng)。
1.???? 建立服務(wù)器
服務(wù)器需要安裝DHCP、TFTP、WEB組件。
2.???? 配置服務(wù)器
2.1???? DHCP
[root@WORKCENTRE ~]# touch /etc/dhcpd.conf
[root@WORKCENTRE ~]# vi /etc/dhcpd.conf
#--DHCP conf file begin
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
# --- default gateway
option routers?????????????????? 192.168.1.1;
option subnet-mask?????????????? 255.255.255.0;
#???? option nis-domain??????????????? "domain.org";
#??? option domain-name?????????????? "domain.org";
option domain-name-servers?????? 203.196.0.6;
option time-offset?????????????? -18000; # Eastern Standard Time
#??????? option ntp-servers?????????????? 192.168.1.1;
#??????? option netbios-name-servers????? 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#??????? option netbios-node-type 2;
range dynamic-bootp 192.168.1.228 192.168.1.236;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host WORK-LAPTOP {
next-server 192.168.1.88;???????? //tftp服務(wù)器的地址
hardware ethernet 00 : 16 : D3 : 3B : 77 :63;
fixed-address 192.168.1.90;
filename "pxelinux.0";
}
}
#--DHCP conf file end
2.2 TFTP
[root@WORKCENTRE ~]# mkdir /tftpboot
[root@WORKCENTRE ~]# cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
[root@WORKCENTRE ~]# mkdir /tftpboot/pxelinux.cfg/
[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc1.iso /mnt/
[root@WORKCENTRE ~]# cp /mnt/p_w_picpaths/pxeboot/initrd.img /tftpboot/
[root@WORKCENTRE ~]# cp /mnt/p_w_picpaths/pxeboot/vmlinuz /tftpboot/
[root@WORKCENTRE ~]# touch /tftpboot/pxelinux.cfg/default
[root@WORKCENTRE ~]# vi /tftpboot/pxelinux.cfg/default
#--default file begin
default linux
label linux
kernel vmlinuz
append initrd=initrd.img
#--default file end
3.???? 拷貝安裝文件
[root@WORKCENTRE ~]# mkdir /var/www/html/FC6
[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc1.iso /mnt/
[root@WORKCENTRE ~]# cp -r /mnt/p_w_picpaths/ /var/www/html/FC6/
[root@WORKCENTRE ~]# cp -r /mnt/repodata/ /var/www/html/FC6/
[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/
[root@WORKCENTRE ~]# umount /mnt/
[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc2.iso /mnt/
[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/
[root@WORKCENTRE ~]# umount /mnt/
[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc3.iso /mnt/
[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/
[root@WORKCENTRE ~]# umount /mnt/
[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc4.iso /mnt/
[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/
[root@WORKCENTRE ~]# umount /mnt/
[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc5.iso /mnt/
[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/
[root@WORKCENTRE ~]# umount /mnt/
[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc6.iso /mnt/
[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/
4.??? 啟動(dòng)服務(wù)
[root@WORKCENTRE ~]# /etc/init.d/dhcpd start
[root@WORKCENTRE ~]# /etc/init.d/httpd start
[root@WORKCENTRE ~]# chkconfig tftp on
5.???? 開始安裝
打開筆記本,F12選擇從網(wǎng)絡(luò)引導(dǎo)。
安裝文件選擇HTTP。輸入網(wǎng)址和路徑。
其他和光盤安裝一樣
與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的linux搭建windows无盘系统,PXE+HTTP 无盘安装linux系统的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux编译动态库未定义,自定义动态库
- 下一篇: linux+不同分区mv,mv操作深入浅