[教學] installation headless server with uefi

because the hard disk in the old server is going to dead, try to reinstall a server in a new hard disk. data will be copied from the old server to the new one. new techniques are used like systemd-networkd and grub+efibootmgr.
new hard disk is attached to a desktop computer (with monitor and keyboard) for installation. installation seems fine and new hard disk is booted ok with desktop computer.
however, new system cannot be booted with the old server hardware. by connecting a monitor, the booting prcess stops at a "GRUB". hard reset of the server and hit "del" to enter bios mode. however, the new system can not be found in bios.
at the mean time, my desktop computer also can not be booted (missing booting device). that problem is solved by reinstall the boot loader (grub+efibootmgr).
Doing some reserch in google and found something about uefi (or efi). every time we install grub+efibootmgr, some data will be writen to the mother board, these data will tell the board where to find the booting device. therefore, the grub+efibootmgr and the mother board must be marched together.
No more headless installation.

相關文章