系统相关
首页 > 系统相关> > PXE(preboot execution environment):【网络】预启动执行环节:引导 live光盘 ubuntu livecd:成功

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

作者:互联网

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目录


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 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 label 9 menu label Install debian9.8 kernel /deb98/linux append initrd=/deb98/initrd.gz debian-installer/allow_unauthenticated=true --- quiet label 10 menu label Install ubuntu kernel /ub1804/install/netboot/ubuntu-installer/amd64/linux append initrd=/ub1804/install/netboot/ubuntu-installer/amd64/initrd.gz label 20 menu label Install rhel6 kernel /rhel6/isolinux/vmlinuz append initrd=/rhel6/isolinux/initrd.img method=ftp://192.168.162.1/rhel6 label 30 menu label Install rhel7 kernel /rhel7/isolinux/vmlinuz append initrd=/rhel7/isolinux/initrd.img method=ftp://192.168.162.1/rhel7 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 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) -

 

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 -

 

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

 

标签:files,livecd,ubuntu1104,pxesrv,initrd,label,environment,live,casper
来源: https://www.cnblogs.com/jinzhenshui/p/10531290.html