Ubuntu Server Guide
Download and Serve Grub EFI Binary
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
Download and Serve Grub EFI Binary
The grub binary helps us redirect the downloading path to the target files via grub.cfg. You may refer to this discourse post to get more information about the PXE process and why we need this binary. $ sudo wget h t t p : / / p o r t s . ubuntu . com/ ubuntu−p o r t s / d i s t s / f o c a l /main/ u e f i / grub2− arm64/ c u r r e n t / g r u b n e t a a 6 4 . e f i . s i g n e d −O / var / l i b / t f t p b o o t / g r u b n e t a a 6 4 . e f i . s i g n e d Please note you may need to change the archive dists name from focal to your target distribution name. Download and Serve More Files Fetch the installer by downloading a Ubuntu arm server iso, e.g. 20.04.1 live server arm64 iso. Please note the prefix live is significant. We will need the files available only in the live version. Mount the iso and copy the target files we need to the TFTP folder $ sudo mount . / ubuntu −20.04.1 − l i v e −s e r v e r −arm64 . i s o /mnt $ sudo mkdir / var / l i b / t f t p b o o t / grub / var / l i b / t f t p b o o t / c a s p e r $ sudo cp /mnt/ boot / grub / grub . c f g / var / l i b / t f t p b o o t / grub / $ sudo cp /mnt/ c a s p e r / i n i t r d / var / l i b / t f t p b o o t / c a s p e r / $ sudo cp /mnt/ c a s p e r / vmlinuz / var / l i b / t f t p b o o t / c a s p e r / So, the TFTP root folder should look like this now: $ f i n d / var / l i b / t f t p b o o t / / var / l i b / t f t p b o o t / / var / l i b / t f t p b o o t / grub / var / l i b / t f t p b o o t / grub / grub . c f g / var / l i b / t f t p b o o t / g ru b n e t a a 6 4 . e f i . s i g n e d / var / l i b / t f t p b o o t / c a s p e r / var / l i b / t f t p b o o t / c a s p e r / i n i t r d / var / l i b / t f t p b o o t / c a s p e r / vmlinuz Finally, let’s customize the grub menu so we could install our target image by fetching it directly over the internet. $ sudo chmod +w / var / l i b / t f t p b o o t / grub / grub . c f g $ sudo v i / var / l i b / t f t p b o o t / grub / grub . c f g Add an new entry menuentry ” I n s t a l l Ubuntu S e r v e r ( F o c a l 2 0 . 0 4 . 1 ) ( P u l l t h e i s o from web ) ” { s e t g f x p a y l o a d=keep l i n u x / c a s p e r / vmlinuz u r l=h t t p : / / cdimage . ubuntu . com/ ubuntu / r e l e a s e s / 2 0 . 0 4 . 1 / r e l e a s e / ubuntu −20.04.1 − l i v e −s e r v e r −arm64 . i s o only− u b i q u i t y i p=dhcp −−− i n i t r d / c a s p e r / i n i t r d } ip=dhcp is for the dhcp management setup in the lab. url is used to point to your target image download url. Remember to change them according to your scenario. If everything goes well, you should get into the expected grub menu of the ephemeral live prompt. Select the entry you just put in grub.cfg, which is Install Ubuntu Server (Focal 20.04.1) (Pull the iso from web) in our example. Waiting a bit for downloading the iso and then you will see the subiquity welcome message. Enjoy the installation! 322 |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling