morph027 / pve-iso-2-pxe

Create PXE bootable Proxmox installation
MIT License
408 stars 91 forks source link

Sample config in README doesn't work for UEFI + iPXE #4

Closed eugene-chow closed 5 years ago

eugene-chow commented 5 years ago

When booting up PVE using the sample iPXE config in the README.md, this error pops up when PVE is booting:

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

This forum discussion has the solution. Basically, we just have to add initrd=initrd.iso.img to the kernel directive. I've tested this and it works.

#!ipxe
dhcp
set serverip 192.168.10.1
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://${serverip}/linux26 vga=791 video=vesafb:ywrap,mtrr ramdisk_size=16777216 rw quiet splash=verbose proxdebug initrd=initrd.iso.img
    goto init
:normal
    kernel http://${serverip}/linux26 vga=791 video=vesafb:ywrap,mtrr ramdisk_size=16777216 rw quiet splash=silent initrd=initrd.iso.img
    goto init
:init
initrd http://${serverip}/initrd.iso.img
boot
morph027 commented 5 years ago

Thanks, will fix this! :+1: