Ubuntu Server Guide
Configuring DHCP/bootp and tftp
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
- Bu sahifa navigatsiya:
- Serving the bootloaders and configuration. We need to make this section possible to write sanely
- Mode independent set up
- Setting up the files for UEFI booting
Configuring DHCP/bootp and tftp
There are several implementations of the DHCP/bootp and tftp protocols available. This document will briefly describe how to configure dnsmasq to perform both of these roles. 1. Install dnsmasq with “sudo apt install dnsmasq” 2. Put something like this in /etc/dnsmasq.conf.d/pxe.conf: i n t e r f a c e= bind−i n t e r f a c e s dhcp−r a n g e= dhcp−boot=p x e l i n u x . 0 dhcp−match=s e t : e f i −x86_64 , o p t i o n : c l i e n t −arch , 7 dhcp−boot=t a g : e f i −x86_64 , bootx64 . e f i e n a b l e −t f t p t f t p −r o o t=/s r v / t f t p (This assumes several things about your network; read man dnsmasq or the default /etc/dnsmasq.conf for lots more options). 3. restart dnsmasq with sudo systemctl restart dnsmasq.service. Serving the bootloaders and configuration. We need to make this section possible to write sanely Ideally this would be something like: # apt i n s t a l l cd−boot−images−amd64 # l n −s / u s r / s h a r e /cd−boot−images−amd64 / s r v / t f t p / boot−amd64 Mode independent set up 1. Download the latest live server ISO for the release you want to install: # wget h t t p : / / cdimage . ubuntu . com/ ubuntu−s e r v e r / d a i l y −l i v e / c u r r e n t / f o c a l − l i v e −s e r v e r −amd64 . i s o 2. Mount it. 318 # mount ubuntu −19.10− l i v e −s e r v e r −amd64 . i s o /mnt 3. Copy the kernel and initrd from it to where the dnsmasq serves tftp from: # cp /mnt/ c a s p e r /{ vmlinuz , i n i t r d } / s r v / t f t p / Setting up the files for UEFI booting 1. Copy the signed shim binary into place: # apt download shim−s i g n e d # dpkg−deb −−f s y s − t a r f i l e shim−s i g n e d * deb | t a r x . / u s r / l i b / shim / shimx64 . e f i . s i g n e d −O > / s r v / t f t p / bootx64 . e f i 2. Copy the signed grub binary into place: # apt download grub−e f i −amd64−s i g n e d # dpkg−deb −−f s y s − t a r f i l e grub−e f i −amd64−s i g n e d * deb | t a r x . / u s r / l i b / grub /x86_64−e f i −s i g n e d / grubnetx64 . e f i . s i g n e d −O > / s r v / t f t p / grubx64 . e f i 3. Grub also needs a font to be available over tftp: # apt download grub−common # dpkg−deb −−f s y s − t a r f i l e grub−common* deb | t a r x . / u s r / s h a r e / grub / u n i c o d e . p f 2 −O > / s r v / t f t p / u n i c o d e . p f 2 4. Create /srv/tftp/grub/grub.cfg that contains: s e t d e f a u l t =”0” s e t t i m e o u t=−1 i f l o a d f o n t u n i c o d e ; then s e t gfxmode=auto s e t l o c a l e _ d i r=$ p r e f i x / l o c a l e s e t l a n g=en_US f i t e r m i n a l _ o u t p u t g f x t e r m s e t menu_color_normal=w h i t e / b l a c k s e t m e nu _ c o l o r_ hi g h l i ght=b l a c k / l i g h t −gray i f background_color 4 4 , 0 , 3 0 ; then c l e a r f i f u n c t i o n gfxmode { s e t g f x p a y l o a d=”$ {1}” i f [ ” $ {1}” = ” keep ” ] ; then s e t vt_handoff=vt . h a n d o f f=7 e l s e s e t vt_handoff= f i } s e t linux_gfx_mode=keep e x p o r t linux_gfx_mode 319 menuentry ’ Ubuntu 2 0 . 0 4 ’ { gfxmode $linux_gfx_mode l i n u x / vmlinux $vt_handoff q u i e t s p l a s h i n i t r d / i n i t r d } Download 1.23 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling