PXE(preboot execution environment):【网络】预启动执行环节:引导 live光盘 ubuntu livecd 16.4:成功...
# 關鍵是搭建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
- grub4dos settings
- iPXE settings
- iPXE Scripts
?
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
總結
以上是生活随笔為你收集整理的PXE(preboot execution environment):【网络】预启动执行环节:引导 live光盘 ubuntu livecd 16.4:成功...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c++命名空间---namespace
- 下一篇: 2018-2019-1 20165221