Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifications needed for iPXE to run #32

Open
NetworkTest opened this issue Jul 23, 2022 · 1 comment
Open

Modifications needed for iPXE to run #32

NetworkTest opened this issue Jul 23, 2022 · 1 comment

Comments

@NetworkTest
Copy link

Thanks for the pve-iso-2-pxe script, which worked fine.

The iPXE bootscript would not run without two modifications:

  1. The script should set a "webserver" variable instead of "ipserver" since the script calls "${webserver}" later on.

set webserver http://192.168.1.1

  1. The iPXE client loaded initrd OK but then returned file-not-found errors when trying to load linux26 with options. I think the syntax, with spaces, is an issue. My workaround was to change the "opts" value into the form of a PHP query, starting with a "?" and then delimiting each key/value pair with an "&" character:

set opts "?vga=791&video=vesafb:ywrap,mtrr&ramdisk_size=16777216&rw&quiet&initrd=initrd"
..
set kernel "${webserver}/proxmox/${pveversion}/linux26${opts}&splash=silent

Note the lack of spaces in the "set kernel" line.

Thanks again.

@moubctez
Copy link

The example boot script should look like this:

#!ipxe
dhcp
set webserver http://192.168.1.1
set opts ?vga=791&video=vesafb:ywrap,mtrr&ramdisk_size=16777216&rw&quiet&initrd=initrd
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
    set kernel ${webserver}/pxeboot/linux26${opts}&splash=verbose&proxdebug
    goto init
:normal
    set kernel ${webserver}/pxeboot/linux26${opts}&splash=silent
    goto init
:init
initrd ${webserver}/pxeboot/initrd
chain ${kernel}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants