a8f8801a90
Proxmox has no kernel parameter for HTTP ISO fetch. Instead, use iPXE's sanboot command to present the ISO as a virtual CD over HTTP. The installer finds it as a block device and boots normally. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
346 B
Go
18 lines
346 B
Go
package pxe
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"provisioning/internal/model"
|
|
)
|
|
|
|
func BuildIPXEScript(publicURL string, img *model.Image, mac string) string {
|
|
isoURL := fmt.Sprintf("%s/images/boot/%s", publicURL, img.ISOPath)
|
|
|
|
return fmt.Sprintf(`#!ipxe
|
|
echo Provisioning: booting %s on ${mac}
|
|
echo Booting ISO via HTTP SAN...
|
|
sanboot %s
|
|
`, img.Name, isoURL)
|
|
}
|