adi1090x / uGRUB

Create an ultimate multiboot USB flash drive with Grub2 bootloader
GNU General Public License v3.0
340 stars 31 forks source link

I'm looking at adding a proxmox bootmenu entry #12

Open marcofranssen opened 3 months ago

marcofranssen commented 3 months ago

I'm trying to figure out the parameters required to add a proxmox bootmenu entry.

Do you have any pointers on what parameters I need for that to work?

# Proxmox
menuentry "Proxmox VE 8.2 (Graphical)" --class debian --class proxmox --class linux --class os {
    set root='(hd0,1)'
    set isofile="/proxmox-ve_8.2-1.iso"
    search --no-floppy -f --set=root $isofile
    lookback loop $isofile
    echo    'Loading Proxmox VE Installer ...'
    linux   (loop)/boot/linux26 ro ramdisk_size=16777216 rw quiet splash=silent
    echo    'Loading initial ramdisk ...'
    initrd  (loop)/boot/initrd.img
}

menuentry "Proxmox VE 8.2 (Terminal UI)" --class debian --class proxmox --class linux --class os {
    set background_color=black
    set root='(hd0,1)'
    set isofile="/proxmox-ve_8.2-1.iso"
    search --no-floppy -f --set=root $isofile
    lookback loop $isofile
    echo    'Loading Proxmox VE Console Installer ...'
    linux   (loop)/boot/linux26 ro ramdisk_size=16777216 rw quiet splash=silent proxtui vga=788
    echo    'Loading initial ramdisk ...'
    initrd  (loop)/boot/initrd.img
}

In essence I basically made up the linux line, so looking for guidance on how to find the right arguments to add there 😊

marcofranssen commented 3 months ago

I finally got a bit further following the README.md more closely but still having an error.

error: no such device: /proxmox-ve_8.2-1.iso.
error: out of memory.
Loading Proxmox VE Installer ...
error: no server specified
Loading initial ramdisk ...
error: you need to load the kernel first.

See below for my grub.cfg

# Proxmox
menuentry 'Install Proxmox VE (Graphical)' --class debian --class gnu-linux --class gnu --class os {
    set root='(hd0,1)'
    set isofile="/proxmox-ve_8.2-1.iso"
    set dri="free"
    search --no-floppy -f --set=root $isofile
    probe -u $root --set=abc
    set pqr="/dev/disk/by-uuid/$abc"
    loopback loop $isofile
    echo    'Loading Proxmox VE Installer ...'
    linux   (loop)/boot/linux26 img_dev=$pqr img_loop=$isofile driver=$dri ro ramdisk_size=16777216 rw quiet splash=silent
    echo    'Loading initial ramdisk ...'
    initrd  (loop)/boot/initrd.img
}

menuentry 'Install Proxmox VE (Terminal UI)' --class debian --class gnu-linux --class gnu --class os {
    set root='(hd0,1)'
    set isofile="/proxmox-ve_8.2-1.iso"
    set dri="free"
    search --no-floppy -f --set=root $isofile
    probe -u $root --set=abc
    set pqr="/dev/disk/by-uuid/$abc"
    loopback loop $isofile
    set background_color=black
    echo    'Loading Proxmox VE Console Installer ...'
    linux   (loop)/boot/linux26 img_dev=$pqr img_loop=$isofile driver=$dri ro ramdisk_size=16777216 rw quiet splash=silent proxtui vga=788
    echo    'Loading initial ramdisk ...'
    initrd  (loop)/boot/initrd.img
}

The isofile is in the root of the USB stick.