When installing Linux over UEFI PXE, GRUB2 grub.cfg is used as the PXE image menu. Archlinux has some idiosyncratic PXE options which I will detail in this post.
First, download the latest Archlinux installation iso from the following link:
Mount the iso and note the following paths in the mounted image:
/arch/boot/x86_64
contains the linux kernel and initrd image for 64-bit
- kernel: vmlinuz
- initrd: archiso.img
/arch/boot
contains intel microcode and memtest
- intel_ucode.img
- memtest
In most other Linux distros, the initrd image on installation iso's is named initrd.img but Archlinux uses archiso.img
The Archlinux-specific Kernel boot parameters for PXE are as follows:
- archisobaseddir=arch Specifies the root directory of the installation iso
- archiso_http_srv=http://ip.ad.d.r:port/ Specifies installation file location over http (you can also use nbd and nfs instead of http)
- ip=:::::eth0:dhcp Tells the Arch kernel to bring up the network iface (on the machine to be installed with Arch) and get an IP address via DHCP. For predictability, the network iface in the Arch chroot environment is always named eth0
Keep in mind that eth0 is just a temporary name for your wired iface during installation. Once installation is complete and you exit the Arch install chroot and restart, your wired interface will come up with a systemd-style network device name.
My grub.cfg for UEFI PXE can be seen here:
The menu entry in grub.cfg for Archlinux UEFI should look like this if you are installing over http:
menuentry 'Archlinux iso 2016.09.03' --class arch --class gnu-linux --class gnu --class os {
echo 'Loading kernel vmlinuz from installation ISO...'
linuxefi images/archlinux/vmlinuz archisobaseddir=arch archiso_http_srv=http://192.168.95.97:8080/ ip=:::::eth0:dhcp
echo 'Loading initial ramdisk ...'
initrdefi images/archlinux/intel_ucode.img images/archlinux/archiso.img
}
For information on how to setup a PXE server that can install to both UEFI and Legacy BIOS machines, refer to my previous post on this topic:
If you don't have UEFI hardware lying around for testing, you can use KVM with OVMF Tianocore UEFI. I detail how to get started in the following post:
댓글 없음:
댓글 쓰기