zoukankan      html  css  js  c++  java
  • 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:\_tempora6
    #mklink /j repodata Server epodata
    #mklink /j ServerPackages Packages
    #mklink /j UEK4Packages 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:pxesrvfilesubuntu1104.

    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:pxesrvfilesubuntu1104. Your Tiny PXE Server directory structure should contain the following files (files may differ if using an alternative version of ubuntu) -

    • C:pxesrvfilesubuntu1104casper
    • C:pxesrvfilesubuntu1104casperfilesystem.manifest
    • C:pxesrvfilesubuntu1104casperfilesystem.manifest-desktop
    • C:pxesrvfilesubuntu1104casperfilesystem.size
    • C:pxesrvfilesubuntu1104casperfilesystem.squashfs
    • C:pxesrvfilesubuntu1104casperinitrd.lz
    • C:pxesrvfilesubuntu1104caspervmlinuz

    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:pxesrvfilesubuntu1104 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:pxesrvfilesubuntu1104 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:pxesrvfilespxelinux.0
    • C:pxesrvfilesmenu.c32
    • C:pxesrvfilespxelinux.cfgdefault

    Add the following to C:pxesrvfilespxelinux.cfgdefault (create this file if required) - 

  • 相关阅读:
    命令行工具--netstat
    Man手册--nmap
    bc -l 对于 %取模计算出错
    离散对数和原根 欧拉定理证明
    bc-win32-power-echo-vim-not-work
    2010版EXCEL下方sheet工作表隐藏了
    word多出空标题,样式是列出段落
    plantuml
    久石让《龙猫》豆豆龙 钢琴视奏版
    神奇校车 = topsage
  • 原文地址:https://www.cnblogs.com/jinzhenshui/p/10531290.html
Copyright © 2011-2022 走看看