PXE(preboot execution environment):【网络】预启动执行环节:引导 live光盘 ubuntu livecd 16.4:成功...

default menu.c32


label ubuntu
menu label ubuntu (version 16.04)
kernel ub1604/casper/vmlinuz
append root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.56.1:/e/_temp/ub1604 initrd=ub1604/casper/initrd quiet splash --
# 关键是搭建nfs相应的服务器器并export解压后的casper目录


#default menu.c32

 
  

label ubuntu1-8
menu label ubuntu (version 18.04.02 @ winnfsd)
kernel ub1804/vmlinuz
append root=/dev/nfs netboot=nfs nfsroot=192.168.56.1:/e/pxe/ub1804 boot=casper initrd=ub1804/initrd quiet splash --

 
  

####【ok】####
label ubuntu1-2
menu label ubuntu (version 12.04.05 @ winnsfd)
kernel ub1204/vmlinuz
append root=/dev/nfs netboot=nfs nfsroot=192.168.56.1:/e/pxe/ub1204 boot=casper initrd=ub1204/initrd quiet splash --

 
  

####【ok】####
label ubuntu1-4
menu label ubuntu (version 14.04.06 @ winnsfd)
kernel ub1404/vmlinuz
append root=/dev/nfs netboot=nfs nfsroot=192.168.56.1:/e/pxe/ub1404 boot=casper initrd=ub1404/initrd quiet splash --

 
  

####【ok】####
label ubuntu1-6
menu label ubuntu (version 16.04.06 @ winnsfd)
kernel ub1604/vmlinuz
append root=/dev/nfs netboot=nfs nfsroot=192.168.56.1:/e/pxe/ub1604 boot=casper initrd=ub1604/initrd quiet splash --

 
  

####【bad】####
label ubuntu1-8
menu label ubuntu (version 18.04.02 @ winnfsd)
kernel ub1804/vmlinuz
append root=/dev/nfs netboot=nfs nfsroot=192.168.56.1:/e/pxe/ub1804 boot=casper initrd=ub1804/initrd quiet splash --

 
  

####【bad】####
label ubuntu1-8s
menu label ubuntu (version 18.04.02-server @ winnfsd)
kernel ub1804s/vmlinuz
append root=/dev/nfs netboot=nfs nfsroot=192.168.56.1:/e/pxe/ub1804s boot=casper initrd=ub1804s/initrd quiet splash --

 
  


####【ok】####
label 2
menu label Install fedora server 29
kernel /fs29/images/pxeboot/vmlinuz
append initrd=/fs29/images/pxeboot/initrd.img method=ftp://192.168.162.1/fs29

 
  


####【ok】####
label 3
menu label Install fedora workstation 29
kernel /fedora29/images/pxeboot/vmlinuz
append root=/dev/nfs netboot=nfs nfsroot=192.168.162.1:/e/_temp/fedora29 initrd=/fedora29/images/pxeboot/initrd.img rd.live.image

 
  


####【ok】####
label 9.8
menu label Install debian9.8
kernel /deb98/linux
append initrd=/deb98/initrd.gz debian-installer/allow_unauthenticated=true --- quiet

 
  


####【ok】####
label ub18.server
menu label Install ubuntu
kernel /ub1804/install/netboot/ubuntu-installer/amd64/linux
append initrd=/ub1804/install/netboot/ubuntu-installer/amd64/initrd.gz

 
  


####【ok】####
label 20
menu label Install rhel6
kernel /rhel6/isolinux/vmlinuz
append initrd=/rhel6/isolinux/initrd.img method=ftp://192.168.162.1/rhel6

 
  


####【ok】####
label 30
menu label Install rhel7
kernel /rhel7/isolinux/vmlinuz
append initrd=/rhel7/isolinux/initrd.img method=ftp://192.168.162.1/rhel7

 
  

####【ok】####
label 40
menu label Install ora6
#垃圾的iso光盘文件系统问题,repodata、Packages是0字节的空文件
#E:
#cd E:\_temp\ora6
#mklink /j repodata Server\repodata
#mklink /j Server\Packages Packages
#mklink /j UEK4\Packages Packages
kernel /ora6/images/pxeboot/vmlinuz
append initrd=/ora6/images/pxeboot/initrd.img method=ftp://192.168.162.1/ora6

 
  

####【ok】####
label 50
menu label Install ora7
kernel /ora7/images/pxeboot/vmlinuz
append initrd=/ora7/images/pxeboot/initrd.img method=http://192.168.162.1/ora7

 
  

 



 

 

---------网摘----------

Required Files

To PXE Boot Ubuntu 11.04, download the ISO file from http://old-releases.ubuntu.com/releases/.

Now create the folder \ubuntu1104\ in your Tiny PXE Server root directory - e.g. C:\pxesrv\files\ubuntu1104\.

Now extract the casper directory from the ISO (mount the ISO file using ImDisk, or extract using 7-zip, or use a tool of your choice) and copy it to C:\pxesrv\files\ubuntu1104\. Your Tiny PXE Server directory structure should contain the following files (files may differ if using an alternative version of ubuntu) -

  • C:\pxesrv\files\ubuntu1104\casper\
  • C:\pxesrv\files\ubuntu1104\casper\filesystem.manifest
  • C:\pxesrv\files\ubuntu1104\casper\filesystem.manifest-desktop
  • C:\pxesrv\files\ubuntu1104\casper\filesystem.size
  • C:\pxesrv\files\ubuntu1104\casper\filesystem.squashfs
  • C:\pxesrv\files\ubuntu1104\casper\initrd.lz
  • C:\pxesrv\files\ubuntu1104\casper\vmlinuz

 

NOTE - on 64-bit builds you may need to replace references to vmlinuz with vmlinuz.efi.

Create NFS Share

To PXE boot Ubuntu Linux a Network File System (NFS) share is required - it is not possible to boot directly from the ISO file.

The C:\pxesrv\files\ubuntu1104\ directory will need to be shared - the WinNFSd server included in the Tint PXE Serverdownload package can be used to do this. Extract winnfsd.exe from WinNFSd-2.0.zip to C:\pxesrv\. Now run the following command to share the C:\pxesrv\files\ubuntu1104\ directory (editing the paths as required to suit your own setup) - 
 
Note - Running the above command will start WinNFSd in a command window - leave this window open as closing it will stop sharing the folder. 

Now add a menu entry for your preferred Network Bootstrap Program -

 

pxelinux settings

Remember to ensure that the required files are copied to your Tiny PXE Server root directory -

  • C:\pxesrv\files\pxelinux.0
  • C:\pxesrv\files\menu.c32
  • C:\pxesrv\files\pxelinux.cfg\default

 

Add the following to C:\pxesrv\files\pxelinux.cfg\default (create this file if required) - 

 

转载于:https://www.cnblogs.com/jinzhenshui/p/10531290.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值