S
S
sazhyk2018-07-25 10:21:06
linux
sazhyk, 2018-07-25 10:21:06

How to specify in GRUB that you need to load the kernel from the web server?

How to specify in grub.cfg that vmlinuz and initrd are on the webserver?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sazhyk, 2018-10-30
@sazhyk

Maxim Grishin , CityCat4 , Ruslan Fedoseev
Gentlemen, you can.

menuentry "HTTP_Boot" {
        set gfxpayload=keep
        set root=(http,192.168.0.1)
        linux /boot/vmlinuz gfxpayload=800x600x16,800x600 --- load_ramdisk=1 ramdisk_blocksize=4096 root=/dev/ram0 ramdisk_size=786432     
        initrd /boot/initrd
}

I ship Thinstation specifically. The task was for him. But thanks anyway for participating.

M
Maxim Grishin, 2018-07-25
@vesper-bot

And how does GRUB get data from a web server when it doesn't have a network card, DNS settings, and an HTTPS handshake handler yet? A TFTP server is another option, in this case you will need to give an image that will pull the kernel and a file system image from it, read about the PXE implementation (by the way, it is native on the network card, so it’s a bit different from GRUB). In general, GRUB as such does not know how to work with non-local data sources. That is, no way.

C
CityCat4, 2018-07-25
@CityCat4

No way.
If you want to boot remotely, you need to do it using PXE tools that are enabled on the network card directly (you can usually get into its configurator from the BIOS, if it is available of course). The TFTP client is so simple that it even fits into a network card. But you will need dhcp (and setting up additional options), a tftp server (give images).

R
Ruslan Fedoseev, 2018-07-25
@martin74ua

in the rough - no way.
You are most likely asking about https://ipxe.org/ .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question