1 Star 0 Fork 0

xiaoluoji/pve-iso-2-pxe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Create PXE bootable Proxmox installation

  • 2019-12-30: successfully pxe-installed 6.1
  • 2018-08-27: successfully pxe-installed 5.2
  • 2017-07-11: successfully pxe-installed 5.0 (despite #1)
  • 2017-06-07: successfully ipxe-installed 4.4
  • 2016-12-13: successfully pxe-installed 4.4
  • 2016-09-27: successfully pxe-installed 4.3

Preparation

  1. download Proxmox VE ISO Installer from Proxmox into a folder somewhere (e.g. /tmp/pve-iso)
  2. run the script pve-iso-2-pxe.sh with the path to the ISO file as parameter (you need to be root or sudo for the loop mount)
  3. the linux26 and initrd.iso.img (including ISO) will copied to the sub-directory pxeboot

PXE (HTTP - faster)

  1. on your PXE server, use lpxelinux.0 as pxelinux.0 (overwrite or set filename via DHCP option)
  2. copy/move linux26 and initrd.iso.img to a directory of your webserver (e.g. /var/www/proxmox/${version})
  3. add the following lines to your PXE config file (mind the important parameter ramdisk_size or the initrd won't fit into default memory):
    label proxmox-install-http
            menu label Install Proxmox HTTP
            linux http://${webserver}/proxmox/${version}/linux26
            initrd http://${webserver}/proxmox/${version}/initrd.iso.img
            append vga=791 video=vesafb:ywrap,mtrr ramdisk_size=16777216 rw quiet splash=silent
            
    label proxmox-install-http
            menu label Install Proxmox HTTP (Debug)
            linux http://${webserver}/proxmox/${version}/linux26
            initrd http://${webserver}/proxmox/${version}/initrd.iso.img
            append vga=791 video=vesafb:ywrap,mtrr ramdisk_size=16777216 rw quiet splash=silent proxdebug
    
  4. be happy and think about supporting the great guys at Proxmox!

PXE (TFTP)

  1. on your PXE server, create a directory proxmox/${version} in your PXE root directory (e.g. /var/lib/tftpboot/ or /srv/pxe/)

  2. copy/move linux26 and initrd.iso.img to this directory

  3. add the following lines to your PXE config file (mind the important parameter ramdisk_size or the initrd won't fit into default memory):

    label proxmox-install
            menu label Install Proxmox
            linux proxmox/${version}/linux26
            append vga=791 video=vesafb:ywrap,mtrr ramdisk_size=16777216 rw quiet splash=silent
            initrd proxmox/${version}/initrd.iso.img
    
    label proxmox-debug-install
            menu label Install Proxmox (Debug Mode)
            linux proxmox/${version}/linux26
            append vga=791 video=vesafb:ywrap,mtrr ramdisk_size=16777216 rw quiet splash=verbose proxdebug
            initrd proxmox/${version}/initrd.iso.img
    
  4. be happy and think about supporting the great guys at Proxmox!

iPXE

  1. copy/move linux26 and initrd.iso.img to a directory of your webserver (e.g. /var/www/proxmox/${version})
  2. mofiy the ip adress of the server in the following ipxe bootscripct according to your setup:
    #!ipxe
    dhcp
    set serverip 192.168.1.1 //Modify this to match the ip adress or domain of your webserver
    menu Please choose an operating system to boot
        item normal Install Proxmox
        item debug Install Proxmox (Debug Mode)
    choose --default normal --timeout 5000 target && goto ${target}
    :debug
        kernel http://${webserver}/proxmox/${version}/linux26 vga=791 video=vesafb:ywrap,mtrr ramdisk_size=16777216 rw quiet splash=verbose proxdebug initrd=initrd.iso.img
        goto init
    :normal
        kernel http://${webserver}/proxmox/${version}/linux26 vga=791 video=vesafb:ywrap,mtrr ramdisk_size=16777216 rw quiet splash=silent initrd=initrd.iso.img
        goto init
    :init
    initrd http://${webserver}/proxmox/${version}/initrd.iso.img
    boot
    
  3. embed the bootscript into your ipxe build or start the script from ipxe using the chain command
  4. be happy and think about supporting the great guys at Proxmox!
The MIT License (MIT) Copyright (c) 2017 morph027 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Create PXE bootable Proxmox installation 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiaoluoji/pve-iso-2-pxe.git
git@gitee.com:xiaoluoji/pve-iso-2-pxe.git
xiaoluoji
pve-iso-2-pxe
pve-iso-2-pxe
master

搜索帮助