ããŒã¿ã»ã³ã¿ãŒã®ãšã³ãžãã¢ã¯ããµãŒããŒã®åææ§æã®ã¿ã¹ã¯ã«çŽé¢ããããšããããããŸããããã«ãã»ãšãã©ã®å Žåã1ã€ãŸãã¯2ã€ã®æ©åšã§ã¯ãªããæ°åãŸãã¯æ°çŸã®æ©åšãæ§æããå¿ èŠããããŸããæ°ããæ©åšãç»å Žãããã³ã«ãéçšããåã«åŸ¹åºçã«ãã§ãã¯ããã ãã§ãªããå éšã·ã¹ãã ã§åäœããããã«é©åã«æ§æããå¿ èŠããããŸãã
BIOSãšIPMIãèšå®ããããã®ããªãç°¡åãªæé ã«é²ãåã«ãåãµãŒããŒã³ã³ããŒãã³ãã«å¿ èŠãªãã¡ãŒã ãŠã§ã¢ããŒãžã§ã³ãããããšã確èªããå¿ èŠããããŸããã»ãšãã©ã®å ŽåããŸããªäŸå€ãé€ããŠãç¹å®ã®ã³ã³ããŒãã³ãã®è£œé å ã®Webãµã€ãã§å ¥æã§ããææ°ããŒãžã§ã³ãå¿ èŠã§ããä»æ¥ã¯ãçŸåšäººæ°ã®ãããã©ãºããªãŒãã䜿çšããŠããã»ã¹ãã¹ããŒãã¢ãããããšããã¢ã€ãã¢ãã©ã®ããã«æãã€ããã®ãã説æããŸãã
é£ããã¯äœã§ãã
ã¿ã¹ã¯ã¯éåžžã«åçŽãªããã«æãããŸããããŠãããã€ãã®ã©ã€ãLinuxãã£ã¹ããªãã¥ãŒã·ã§ã³ãåãããããUSBãã©ãã·ã¥ãã©ã€ãã«ããŒã«ã¢ãŠãããŠããããèµ·åããå¿ èŠãªæé ãå®è¡ããŸããããããããããã¯ãããŸããã§ããã
åé¡ã¯ãåãã³ããŒããã¡ãŒã ãŠã§ã¢ãæŽæ°ããããã®ç¬èªã®æ¹æ³ãšãŠãŒãã£ãªãã£ãæã£ãŠããããšã§ããããã«ããããã®ãã¹ãŠãLinuxã§æ£ããåäœã§ããããã§ã¯ãããŸãããäžéšã®ã³ã³ããŒãã³ããããšãã°SuperMicroãµãŒããŒçšã®BIOSã§ã¯ãMS-DOSã®äžããçž«ãããšãæãŸããã§ãã Mellanoxãããã¯ãŒã¯ã«ãŒããªã©ã®äžéšã®ã³ã³ããŒãã³ãã§ã¯ãWindowsã䜿çšããå¿ èŠãããå Žåãããã°ãLinuxããçŽæ¥ãã¡ãŒã ãŠã§ã¢ããµããŒãããå ŽåããããŸãã
ãããã£ãŠããã«ãããŒãã€ã¡ãŒãžãåéããŠæ°åå°ã®ãã©ãã·ã¥ãã©ã€ãã«æžã蟌ãã§ããããããããé·æéæç¶çã«èµ·åããããããé¢çœããŠé«éãªãã®ãèãåºãå¿ èŠããããŸãããããŠãããã§PXEïŒPreboot eXecution Environmentãçºé³ãããpixieïŒããµããŒããããµãŒããŒãããã¯ãŒã¯ã«ãŒãã®äœ¿çšãæãæµ®ãã³ãŸãã
ãã©ãºããªãŒããåããããã«DHCPããã³TFTPãµãŒããŒãå±éããããŒãã«å¿ èŠãªã€ã¡ãŒãžãæºåããŸããæ°åå°ã®ãµãŒããŒã倧éã«ããŒãããããã«ã管çãããŠããªã48ããŒãã®ã®ã¬ãããã¹ã€ãããšåºæ¥äžãããäžæçã«äœ¿çšããŸããããã©ã«ãã§ã¯ãã»ãšãã©ã®ãµãŒããŒã¯è¿œå ã®æ§æãªãã§PXEããŒããèš±å¯ãããããããã¯çæ³çã§ãã
ç§ã¯åºç€ãšããŠåªããèšäºãåããŸããã ãã Romanenko_Eugeneããã ããRaspberryPiã®æ©èœãšè§£æ±ºäžã®ã¿ã¹ã¯ãä¿®æ£ãããŠããŸããå§ããŸãããïŒ
ã©ãºããªãŒãžã£ã
ç§ãåããŠãããè¡ã£ããšããRaspberry Piã®æãé«åºŠãªããŒãžã§ã³ã¯ã100Mbpsãããã¯ãŒã¯ã«ãŒããåãã3çªç®ã®ããŒãžã§ã³ã§ãããççŽã«èšã£ãŠãããã¯éãç»åã®å€§éé åžã«ã¯ååã§ã¯ãªããããçŸåšå©çšå¯èœãª1 Gb / sããŒãã®RaspberryPi4ã䜿çšããããšã匷ããå§ãããŸãããã1ã€ã®æšå¥šäºé ã¯ãå¯èœãªéãé«éã§å®¹éã®å€§ããã¡ã¢ãªã«ãŒãã䜿çšããããšã§ãã
次ã«ãåæèšå®ã«ã€ããŠèª¬æããŸãããã®ãããªããã®ã°ã©ãã£ã«ã«ã€ã³ã¿ãŒãã§ã€ã¹ã¯çµ¶å¯Ÿã«å¿ èŠãªããããRaspberry PiOSãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã®æãåçŽãªLiteããŒãžã§ã³ãããŠã³ããŒãã§ã ãŸããç»åã解åãã䟿å©ãªæ¹æ³ã§MicroSDã«ãŒãã«ã¢ããããŒãããŸããããšãã°ãddã䜿çšããŸãã
sudo dd if=<_> of=/dev/mmcblk0 bs=1M
æ§æããã»ã¹äžã«ãããŒããŒããšã¢ãã¿ãŒãæ¥ç¶ããããšã«ãã£ãŠåŸæ¥ã®æ¹æ³ã§æ§æããããSSHãä»ããŠæ§æããããšãã§ããŸããèµ·åæã«SSHãµãŒãã¹ãæ©èœãããã«ã¯ã/ bootã»ã¯ã·ã§ã³ã« sshãšããååã®ç©ºã®ãã¡ã€ã«ãäœæããŸã ã ãããã¯ãŒã¯ããŒãã¯DHCPæäœã«äœ¿çšããããããWi-Fiæ¥ç¶ã䜿çšããŠã€ã³ã¿ãŒãããã«ã¢ã¯ã»ã¹ããããå¥ã®ãããã¯ãŒã¯ã«ãŒããUSBçµç±ã§Malinkaã«æ¥ç¶ã§ããŸããããšãã°ã次ã®ãšããã§ãã
次ã«ãRaspberry Piãèµ·åããã€ã³ã¿ãŒãããã«æ¥ç¶ããŠããªããžããªãšãœãããŠã§ã¢ããã±ãŒãžãæŽæ°ããŸãã
sudo apt update
sudo apt upgrade
å¥ã®ãããã¯ãŒã¯ã«ãŒãã䜿çšããŠãããããçµã¿èŸŒã¿ã®ãããã¯ãŒã¯ã«ãŒããéçIPã¢ãã¬ã¹ã«èšå®ããå¿ èŠããããŸããæ§æãéããŸãã
sudo nano /etc/dhcpcd.conf
次ã®è¡ãè¿œå ããŸãã
interface eth0 static ip_address=192.168.50.1/24
ããã§ã eth0ã¯RaspberryPiã®ãªã³ããŒããããã¯ãŒã¯ã«ãŒãã§ããIPã¢ãã¬ã¹ã®é åžãšãããã¯ãŒã¯ã®ããŒããå®è¡ãããã®ã¯ããã®å©ããåããŠã§ãã次ã«ãtftpãµãŒããŒãã€ã³ã¹ããŒã«ããŸãã
sudo apt install tftpd-hpa
ã€ã³ã¹ããŒã«åŸãæ§æãã¡ã€ã«ãéããŸãã
sudo nano /etc/default/tftpd-hpa
ãã®è¡ã次ã®åœ¢åŒã«ããŸãã
TFTP_OPTIONS="--secure -l -v -r blksize"
äžè¬ã«ããã¹ãŠããã®ãŸãŸã«ããŠããããšãã§ããŸãããæ¯åå¥ã®ãã·ã³ã§ãã¹ãããã®ã¯ããŸã䟿å©ã§ã¯ãªãå ŽåããããŸãã-l -v -r blksizeãªãã·ã§ã³ã䜿çšãããšãVirtualBox VMã§ããããã¹ãŠãåé¡ãªããã¹ãã§ããäºææ§ã®åé¡ãä¿®æ£ãããŸãã次ã«ãIPã¢ãã¬ã¹ãé åžããããã®DHCPãµãŒããŒãã€ã³ã¹ããŒã«ããŸãã
sudo apt install isc-dhcp-server
æåã®æ§æãã¡ã€ã«isc-dhcp-serverãéããŸãã
sudo nano /etc/default/isc-dhcp-server
DHCPãµãŒããŒãæ©èœããããšã«ãªã£ãŠããã€ã³ã¿ãŒãã§ãŒã¹ãæ瀺çã«ç€ºããŸãã
INTERFACESv4="eth0"
次ã«ã2çªç®ã®æ§ædhcpd.confãéã ãŸãã
sudo nano /etc/dhcp/dhcpd.conf
å¿ èŠãªãµãŒããŒãã©ã¡ãŒã¿ãŒãé åžãããµãããããèšå®ããããŒããŒãã¡ã€ã«ã®ååãæž¡ããŸãã
default-lease-time 600; max-lease-time 7200; ddns-update-style none; authoritative; subnet 192.168.50.0 netmask 255.255.255.0 { range 192.168.50.2 192.168.50.250; option broadcast-address 192.168.50.255; option routers 192.168.50.1; filename "pxelinux.0"; }
ãã¡ã€ã«ãä¿åããããå®éã«ããŒãããŒããŒãšå¿ èŠãªã¢ãžã¥ãŒã«ãããŠã³ããŒãããŠãPXEã¡ãã¥ãŒãäœæããå¿ èŠããããŸããSyslinuxããŒããŒã®ã»ãããããŠã³ããŒãããããšããå§ããŸããããç§ã®å Žåã¯ããŒãžã§ã³5.01ãæã䟿å©ã§ãã
wget https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/syslinux-5.01.zip
é梱ïŒ
unzip syslinux-5.01.zip
次ã«ãISOã€ã¡ãŒãžå šäœãRAMãpxelinux.0ããŒããŒãããã³æ®ãã®combootã¢ãžã¥ãŒã«ã«ããŒãã§ãã memdiskã¢ãžã¥ãŒã«ãèŠã€ããŠæœåºããå¿ èŠããã ãŸã ã/ srv / tftpãã£ã¬ã¯ããªã«ãããã¹ãŠã®ãã®ãèŠã€ããŠã³ããŒããã³ãã³ããé çªã«å®è¡ããŸãã
find ./ -name "memdisk" -type f|xargs -I {} sudo cp '{}' /srv/tftp/
find ./ -name "pxelinux.0"|xargs -I {} sudo cp '{}' /srv/tftp/
find ./ -name "*.c32"|xargs -I {} sudo cp '{}' /srv/tftp/
ãã®æäœã®åŸãPXEç»é¢ã«è¡šç€ºãããã¡ãã¥ãŒã®æ§æãã¡ã€ã«ãçŽæ¥äœæããå¿ èŠããããŸããç§ãã¡ã®ãã£ã¬ã¯ããªã«ç§»åããŸãïŒ
cd /srv/tftp
pxelinux.cfgãšããååã®ãã£ã¬ã¯ããªãäœæãããã®ãã£ã¬ã¯ããªã«ç§»åããŸãã
sudo mkdir pxelinux.cfg
cd pxelinux.cfg
æ§æãã¡ã€ã«ãäœæããŸãã
sudo nano default
äŸãšããŠãåªããã©ã€ãGRMLãã£ã¹ããªãã¥ãŒã·ã§ã³ãåãäžããPXEçµç±ã§ããŠã³ããŒãããŠã¿ãŸãããã以äžã¯ãå®æããæ§æäŸã§ãã
UI vesamenu.c32 PROMPT 0 MENU TITLE Raspberry Pi PXE Server MENU BACKGROUND bg.png LABEL bootlocal menu label Boot from HDD kernel chain.c32 append hd0 0 timeout 0 TEXT HELP Boot from first HDD in your system ENDTEXT LABEL grml menu label GRML Linux KERNEL grml/boot/grml32full/vmlinuz APPEND root=/dev/nfs rw nfsroot=192.168.50.1:/srv/tftp/grml/ live-media-path=/live/grml32-full boot=live lang=us nomce apm=power-off noprompt noeject initrd=grml/boot/grml32full/initrd.img vga=791 LABEL reboot menu label Reboot kernel reboot.c32 TEXT HELP Reboot server ENDTEXT
ããã§å°ãç«ã¡æ¢ãŸã£ãŠãåè¡ãäœãããã®ããç解ããããšã¯ãããã䟡å€ããããŸãã
- UIvesamenu.c32 -vesamenu.c32ã¢ãžã¥ãŒã«ã䜿çšããŠã¡ãã¥ãŒã衚瀺ããŸãã
- ããã³ãã0-ãŒãã¡ãã¥ãŒé ç®ã匷調衚瀺ããŸãã
- ã¡ãã¥ãŒã¿ã€ãã«RaspberryPiPXEãµãŒããŒ-ã¡ãã¥ãŒã®äžè¬åãèšå®ããŸãã
- ã¡ãã¥ãŒã®èæ¯bg.png-ãã¶ã€ã³èŠçŽ ãèæ¯ç»åãšããŠbg.pngã䜿çšããŸãã
èæ¯ç»åã¯äºåã«äœæã§ããŸããããã©ã«ãã§ã¯ãPNGãŸãã¯JPG圢åŒã®è²æ·±åºŠã24ããã以äžã®640x480ç»åãé©ããŠããŸããäºåã«/ srv / tftpã«ã³ããŒããå¿ èŠããããŸã ãããã§ã¯ãåã»ã¯ã·ã§ã³ãèŠãŠã¿ãŸããããæåã®ã»ã¯ã·ã§ã³ã¯äŸ¿å®äžå°å ¥ãããŸãããæåã®ããŒããã©ã€ãããèµ·åããå¿ èŠãããå Žåã¯ã以äžãç»é²ããŸãã
- LABELbootlocal-å éšã»ã¯ã·ã§ã³åã
- ã¡ãã¥ãŒã©ãã«ãHDDããèµ·åã -ãŠãŒã¶ãŒã¡ãã¥ãŒã®è¡šç€ºæ¹æ³ã
- kernelchain.c32-ããŸããŸãªã¡ãã£ã¢ããèµ·åã§ããchain.c32ã¢ãžã¥ãŒã«ã䜿çšããŸãã
- add hd00-ããŒãã¯æåã®ããŒããã£ã¹ã¯ã®æåã®ããŒãã£ã·ã§ã³ããè¡ãå¿ èŠãããããšãæ瀺çã«ç€ºããŸãã
- ã¿ã€ã ã¢ãŠã0-ããã§ã¯ãããŠã³ããŒããèªåçã«éå§ããããŸã§ã®ã¿ã€ã ã¢ãŠããç§åäœã§èšå®ãããã0ãæå®ããŠã¿ã€ããŒãåé€ããããšãã§ããŸãã
- ããã¹ããã«ã-ãŠãŒã¶ãŒã®ãã«ãããã¹ãã®å§ãŸãã瀺ããŸãã
- ã·ã¹ãã ã®æåã®HDDããèµ·åããŸã-ãã³ãããã¹ãã
- ENDTEXT-ãã³ãããã¹ãã®çµããã瀺ããŸãã
ã»ãŒåãæ¹æ³ã§ããªããŒãçšã®ã»ã¯ã·ã§ã³ãäœæããŸããå¯äžã®éãã¯ãreboot.c32ã¢ãžã¥ãŒã«ã®åŒã³åºãã§ããããã«ãããå®éã«è»ãåèµ·åãããŸããããŠãGRMLãã£ã¹ããªãã¥ãŒã·ã§ã³ãããŒããã3çªç®ã®ã»ã¯ã·ã§ã³ãäœããããã調ã¹ãåã«ãå®éã«äœãã©ã®ããã«ããŒãããããã«ã€ããŠè©±ããŸãããã
ãã¹ãŠããã¡ã€ã«ã§ã
ISOã€ã¡ãŒãžèªäœ ã¯ããã®ã©ã€ããã£ã¹ããªãã¥ãŒã·ã§ã³ã®Webãµã€ãã§å ¥æã§ããŸããããŠã³ããŒãããŠã䟿å®äžååãå€æŽããŸãããã®äŸã§ã¯ã32ãããããŒãžã§ã³ã䜿çšããŸãã
wget https://download.grml.org/grml32-full_2020.06.iso
mv grml32-full_2020.06.iso grml.iso
次ã«ãã©ãããããããã®ã€ã¡ãŒãžã匷å¶çã«èµ·åããå¿ èŠããããŸããäžæ¹ã§ã¯ãmemdiskã¢ãžã¥ãŒã«ã䜿çšããŠãæåã«ã€ã¡ãŒãžã®ãã¹ãŠã®ãçã®ãã³ã³ãã³ããRAMã«çŽæ¥ããŒãããŠãããããŒãã®å¶åŸ¡ã転éããããã«åŒ·å¶ã§ã ãŸãããã ãããã®æ¹æ³ã¯éåžžã«å°ããã€ã¡ãŒãžã«ã®ã¿é©ããŠããŸããããšãã°ããã®æ¹æ³ã§MS-DOSãèµ·åãããšäŸ¿å©ã§ãã倧ããªç»åã¯ã¡ã¢ãªã«ããŒãããã®ã«é·ãæéãããããåžžã«é©åã«æ©èœãããšã¯éããŸããã
ãããã£ãŠãã€ã¡ãŒãžããã¬ãããããã«ãŒãã«ãšlivefsã®ã¿ã転éããŠèµ·åããå¿ èŠããããŸãããã ããNFSãµãŒããŒã䜿çšããŠãèŠæ±ã«å¿ããŠãã£ã¹ã¯ããããã«ãã¡ã€ã«ãã·ã¹ãã ã«æäŸã§ããŸãããã®ã¢ãããŒãã¯ã¯ããã«é«éãã€é©åã«æ©èœããŸãããNFSãµãŒããŒã®ã€ã³ã¹ããŒã«ãªã©ã®è¿œå ã®ãžã§ã¹ãã£ãå¿ èŠã§ãã
ããã¯åºæ¬çãªæ¹æ³ã§è¡ãããŸãïŒ
sudo apt install nfs-kernel-server
ãã¡ã€ã«ãæ··ä¹±ãããªãããã«ãgrmlçšã«å¥ã®ãã£ã¬ã¯ããªãäœæããŸãã
sudo mkdir /srv/tftp/grml
ISOãããŠã³ãããå¿ èŠãããã®ã§ãäžæçãªããŠã³ããã€ã³ããåŠçããŸãã
sudo mkdir /tmp/iso
ç»åãããŠã³ãããŸããã·ã¹ãã ã¯ãã€ã¡ãŒãžãèªã¿åãå°çšã¢ãŒãã§ããŠã³ããããŠããããšãèŠåããŸãã
sudo mount -o loop grml.iso /tmp/iso
ç»åã®å 容ãå¥ã®ãã£ã¬ã¯ããªã«ååž°çã«ã³ããŒããŸãã
sudo cp -R /tmp/iso/* /srv/tftp/grml
ã¢ã¯ã»ã¹æš©ã®åé¡ãåé¿ããããã«ãææè ãå€æŽãããã®ãã£ã¬ã¯ããªã«ãç¡æã®å®¶ã奜ããªäººã«äœããã·ãªãŒãºã®æš©å©ãååž°çã«å²ãåœãŠãŸãã
sudo chown -R nobody:nogroup /srv/tftp/grml/
sudo chmod -R 755 /srv/tftp/grml/
ããã§ãNFSãµãŒããŒã«/ srv / tftp / grmlãã£ã¬ã¯ããªããµããããã®ä»»æã®IPã¢ãã¬ã¹ã«æäŸããå¿ èŠãããããšãç°¡åã«äŒããããšãã§ã ãŸãã
sudo nano /etc/exports
次ã®è¡ãç»é²ããŸãã
/srv/tftp/grml 192.168.50.0/24(rw,sync,no_subtree_check)
ãªã¹ããæŽæ°ããNFSãµãŒããŒãåèµ·åããŸãã
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
ããã§ãããŠã³ããŒãããã»ã¹ã2ã€ã®æ¡ä»¶ä»ãã¹ããŒãžã«æ£ããåå²ããæ©äŒãã€ãã«åŸãããŸãããæåã®ã¹ãããã¯ãã«ãŒãã«ãšã©ã€ããã¡ã€ã«ã·ã¹ãã ãããŒãããããšã§ãã第2段éã¯ãNFSãä»ããŠä»ã®ãã¹ãŠã®ãã¡ã€ã«ããã«ããããšã§ããæ®ãã®ã»ã¯ã·ã§ã³ãèŠãŠã¿ãŸãããã
- LABELã®GRML -ã»ã¯ã·ã§ã³å;
- ã¡ãã¥ãŒã©ãã«GRMLLinux-ã¡ãã¥ãŒã«è¡šç€ºããŸãã
- ã«ãŒãã«grml / boot / grml32full / vmlinuz-ã«ãŒã/ srv / tftpãåºæºã«ããã«ãŒãã«ãžã®ãã¹ãæå®ããŸãã
- APPEND root = / dev / nfs rw nfsroot = 192.168.50.1ïŒ/ srv / tftp / grml / live-media-path = / live / grml32-full boot = live lang = us nomce apm = power-off noprompt noeject initrd = grml /boot/grml32full/initrd.img vga = 791-ããã§ã¯ãNFSã䜿çšããŠããããšã瀺ããæ¡ä»¶ä»ãã«ãŒããžã®ãã¹ãæžã蟌ã¿ãããã¥ã¡ã³ãã§æšå¥šãããŠããããã€ãã®è¿œå ãã©ã¡ãŒã¿ãŒãèšå®ããinitrdãžã®çžå¯Ÿãã¹ã瀺ããŸãã
ããšã¯ãTFTPãµãŒããŒãšDHCPãµãŒããŒãé çªã«èµ·åããã ãã§ãPXEãèµ·åããŠã¿ãããšãã§ããŸãããã¹ãŠãæ£ããè¡ããããšãäœæãããã¡ãã¥ãŒã衚瀺ãããŸãã
GRML Linuxã¢ã€ãã ãéžæããEnterããŒãæŒããŠãç»åã®èªã¿èŸŒã¿ããã»ã¹ãæåããããšã確èªããŸãã
ãã®ããã«ããŠãã·ã¹ãã 管çè ã®éã§äººæ°ã®ããGRMLãã£ã¹ããªãã¥ãŒã·ã§ã³ããããã¯ãŒã¯ããŒãããæ©èœãåŸãããŸãããããããåãMS-DOSã«ã€ããŠã¯ã©ãã§ããããããŸããBIOSããã©ãã·ã¥ããããã®ã€ã¡ãŒãžãåå¥ã«æºåããæ¹æ³ã«ã€ããŠã説æããŸããããã«ã€ããŠããã«è©±ããŸãããã
DOSã§ã¯ç§ãã¡ã¯ä¿¡é ŒããŸã
åå幎çŽã®80幎代ã®ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã¯21äžçŽã§ããŸã 䜿çšãããŠããŸããïŒã©ããªã«å¥åŠã«èŠãããããããŸããããããã€ãã®ç¹å®ã®ã¿ã¹ã¯ã§ã¯ãMS-DOSã¯äŸç¶ãšããŠé¢é£æ§ããããããèªäœã«ãšã£ãŠéåžžã«äŸ¿å©ã§ãããããã®ã¿ã¹ã¯ã®1ã€ã¯ããµãŒããŒäžã®BIOSãã¡ãŒã ãŠã§ã¢ãæŽæ°ããããšã§ãã
äŸãšããŠãSupemicro X11SSL-Fãªã©ã®ãã¶ãŒããŒããåãäžããå ¬åŒãµã€ãããBIOSã¢ããããŒããããŠã³ããŒãããŠã¿ãŸããããå éšã«ã¯ãåæ§ã®ãã¡ã€ã«ã®ã»ããããããŸãã
user@linux:~//X11SSLF0_B26> ls -l 16592 -rw-r--r-- 1 user users 169120 1 2015 AFUDOSU.SMC -rw-r--r-- 1 user users 5219 20 2003 CHOICE.SMC -rw-r--r-- 1 user users 22092 27 2014 FDT.smc -rw-r--r-- 1 user users 3799 15 2016 FLASH.BAT -rw-r--r-- 1 user users 3739 22 2019 Readme for UP X11 AMI BIOS.txt -rw-r--r-- 1 user users 16777216 25 23:48 X11SSLF0.B26
BIOSããã©ãã·ã¥ã§ããæ¢è£œã®BATãã¡ã€ã«ããã§ã«ããããšãããããŸãããã ãããããè¡ãã«ã¯ããµãŒããŒããã§ã«MS-DOSã«ããŒããããŠããå¿ èŠããããŸãã次ã«ããããè¡ãæ¹æ³ãæ£ç¢ºã«èª¬æããŸãã
ãŸãããªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã䜿çšããŠããŒããã£ã¹ã¯ã®å°ããªRAWã€ã¡ãŒãžãæºåããå¿ èŠããããŸãã32ã¡ã¬ãã€ãã®å°ããªãã£ã¹ã¯ãåããOracleVMVirtualBoxãä»ããŠæ°ããä»®æ³ãã·ã³ãäœæããŸããQCOW圢åŒãéžæããŸãããã¹ãŠã®æäœã®åŸãç°¡åã«rawã«å€æã§ããŸãã
確ãã«ãMS-DOSã§ãããããŒãã£ã¹ã¯ã®ã€ã¡ãŒãžãååŸã§ããå Žæã¯èª°ããç¥ã£ãŠããã®ã§ãä»®æ³ãã·ã³å ã«ããŠã³ãããŠã€ã³ã¹ããŒã«ãå®è¡ããŸãã
ä»®æ³ãã©ã€ãã®ãããããŒã€ã¡ãŒãžã2åå€æŽããæåéã20ç§åŸã«ãæ°ããMS-DOS 6.22OSã䜿çšããqcowã€ã¡ãŒãžãäœæããŸãã
ãã®ãã£ã¹ã¯ã«ãã¡ã€ã«ãã³ããŒããæãç°¡åãªæ¹æ³ã¯ãWindowsãŸãã¯Linuxãå®è¡ããŠããä»ã®ä»®æ³ãã·ã³ã«ãã¡ã€ã«ãããŠã³ãããããšã§ãããã®æäœã®åŸããã£ã¹ã¯ãMS-DOSä»®æ³ãã·ã³ã«åããŠã³ããããã¡ã€ã«ã衚瀺ãããŠããããšã確èªããŸãã
å¿ èŠã«å¿ããŠãBIOSãèªåçã«ãã©ãã·ã¥ãããããã«BATãã¡ã€ã«ãå®è¡ããããã«èªåããŒããæ§æããããšãã§ããŸãããã ããããã¯æœåšçã«å±éºãªæäœã§ããããèªèº«ã®å±éºãšãªã¹ã¯ã§è¡ãããšãå¿ããªãã§ãã ããã次ã«ãä»®æ³ãã·ã³ããªãã«ããqemu-imgã䜿çšããŠçã®ç»åã«å€æããŸãã
qemu-img convert -f qcow -O raw DOS.qcow dos.img
çµæã®IMGã€ã¡ãŒãžãTFTPãµãŒããŒã®å¥ã®ãã£ã¬ã¯ããªã«ã³ããŒããŸãã
sudo mkdir /srv/tftp/dos
sudo cp dos.img /srv/tftp/dos
次ã«ãæ§æ/srv/tftp/pxelinux.cfg/defaultãéã㊠線éããã¡ãã¥ãŒã«ãã1ã€é ç®ãè¿œå ããŸãã
LABEL DOS kernel memdisk initrd dos/dos.img append raw
æ§æãä¿åãããšãäœæããã€ã¡ãŒãžãããŒãããã¡ãã¥ãŒãéžæããããšã§ãPXEã¡ãã¥ãŒã«æ°ããã¡ãã¥ãŒé ç®ã衚瀺ãããŸãã
åæ§ã«ããŠãŒãã£ãªãã£ãŠãŒãã£ãªãã£ãšå€ãDOSã²ãŒã ã®äž¡æ¹ãå«ãã€ã¡ãŒãžãäœæã§ããŸãã
Windowsã§ã¯Veritas
ããã§ãWinPEïŒWindowsãã¬ã€ã³ã¹ããŒã«ç°å¢ïŒããã©ã€ãã€ã¡ãŒãžãèµ·åããŠã¿ãŸãããããã«ããŒãžã§ã³ã®ããŠã³ããŒãã¯ãå€ãã®å Žåãåã«å¿ èŠã§ã¯ãªããéãããæ°ã®æ©èœã ãã§ååã§ããããã¯ãäžéšã®ããã€ã¹ããã©ãã·ã¥ãããšãã«å®éã«äœ¿çšãããŸãã
1幎åã«Nvidiaã«åžåãããåãMellanoxã¯ãWinPEã®ããŸããŸãªããŒãžã§ã³ã§ãããã¯ãŒã¯ã«ãŒãããã©ãã·ã¥ããããã®Mellanoxãã¡ãŒã ãŠã§ã¢ããŒã«ãŠãŒãã£ãªãã£ããªãªãŒã¹ã ãŸãããã¡ãããçŸåšã¯ãã§ã«ããŸããŸãªMFTãªãã·ã§ã³ãå©çšå¯èœã§ãããWinPEããŒãžã§ã³ãçž«ãå¿ èŠæ§ã«äœåºŠãçŽé¢ããŸããã
ç¬èªã®WinPEã€ã¡ãŒãžãäœæããå¿ èŠãªãœãããŠã§ã¢ãçµ±åããããšã¯ããã»ã©é£ããäœæ¥ã§ã¯ãããŸãããããã®èª¬æã¯ãã®èšäºã®ç¯å²ãè¶ ããŠããŸãããã®ããã»ã¹ã詳现ã«ç¿åŸããã«ã¯ãåªãããªãœãŒã¹winpe.ruã«ã¢ã¯ã»ã¹ã㊠ãã ãããäŸãšããŠãæã¡äžãããã»ã¹ã瀺ãããã«ãæ¢è£œã®ã¢ã»ã³ããªãåãäžããŸãã
å€ãã®å Žåããã®ãããªã¢ã»ã³ããªã¯ãISOã€ã¡ãŒãžãŸãã¯ISOã€ã¡ãŒãžãå«ãRARã¢ãŒã«ã€ãã®ããããã§ãããã®ãããªã€ã¡ãŒãžãéžæããåã«ãé©åãªããŒãããŒããŒãå ¥æããå¿ èŠããããŸãã
wimbootã¯ãwimïŒWindows Imaging FormatïŒåœ¢åŒã§ç»åãããŒãã§ããéåžžã«åçŽãªããŒãããŒããŒã§ãã syslinuxãšçµã¿åãããŠäœ¿çšââããããšããããé«åºŠãªå åŒã§ããiPXEãšçµã¿åãããŠäœ¿çšââããããšãã§ããŸãã ..ã/ srv / tftpã«å¥ã®ãã£ã¬ã¯ããªãäœæã ãŸãã
sudo mkdir wimboot
cd wimboot
ããŒãããŒããŒèªäœãããŠã³ããŒãããŸãã
wget https://github.com/ipxe/wimboot/releases/latest/download/wimboot
次ã«ãã€ã¡ãŒãžãããŠã³ãããŸãã/ tmpã«äžæãã£ã¬ã¯ããªãäœæããŸã ã
sudo mkdir winpe
ããŠã³ããŒãããISOã¢ã»ã³ããªã€ã¡ãŒãžã®ãããã£ã¬ã¯ããªã«ç§»åãã以äžãå®è¡ããŸãã
sudo mount -o loop <_> /tmp/winpe
/ srv / tftpã«ãã£ã¬ã¯ããªãäœæã ãŸããããã«ãå¿ èŠãªãã¡ã€ã«ãé 眮ããŸãã
sudo mkdir /srv/tftp/winpe
次ã«ãã¢ã»ã³ããªãæ€çŽ¢ããŠã4ã€ã®ãã¡ã€ã«ãã³ããŒããŸãã
sudo cp BOOTMGR /srv/tftp/winpe
sudo cp bcd /srv/tftp/winpe
sudo cp boot.sdi /srv/tftp/winpe
sudo cp boot.wim /srv/tftp/winpe
åé¡ã¯å°ããã§ã-次ã®ã»ã¯ã·ã§ã³ãæ§æãã¡ã€ã«/srv/tftp/pxelinux.cfg/defaultã«è¿œå ããŸã ã
LABEL WinPE menu label WinPE com32 linux.c32 wimboot/wimboot append initrdfile=winpe/BOOTMGR,winpe/bcd,winpe/boot.sdi,winpe/boot.wim
å®éãlinux.c32ã¢ãžã¥ãŒã«ã䜿çšããŠããŒãããŒããŒãããŒãããŸãããã
ãã¡ã€ã«ãTFTPçµç±ã§ã¢ããããŒããããããšãèæ ®ããããšãéèŠã§ãããããã¯ããŸãé«éã§äŸ¿å©ã§ã¯ãããŸãããäžè¬ã«ãæ§æãå°ãå€æŽããŠãå¥ã®æ¹æ³ã§æ¡åŒµã§ããŸããããããåçŽãªåå©äž»çŸ©çãªã¿ã¹ã¯ã®å Žåãããã§ååã§ãã
çµè«ã®ä»£ããã«
ãã®èšäºã«ã¯ããŠããŠã¯ãããŸããããå¿ èŠãçãããšããRaspberryPiã¯çŽ æŽãããä»äºãããŸããã圌女ã¯è¿œå ã®é»æºã³ã³ã»ã³ããæ¢ãå¿ èŠã¯ãããŸããã§ãããæå¯ãã®ç¡æãµãŒããŒã®USBããŒãã¯å®ç§ã§ãããçŒçã«è©°ã蟌ãŸããã©ãã¯å ã®å ŽæãèŠã€ããããšã«è¿œå ã®åé¡ã¯ãããŸãããæ£åžžã«åäœãã寞æ³ãå°ããããããã€ã§ãæå ã«çœ®ããŠããããšãã§ããŸãã
ãããããŒããèšå®ããããã®ãã¥ãŒããªã¢ã«ã¯å®éã«ã¯ãããäžã«ãããããããŸããå¯äžã®åé¡ã¯ãç°ãªãç»åã«å¯ŸããŠç°ãªãæ段ãšç°ãªãã¢ãããŒãã䜿çšãããããšã§ããé©åãªã¢ãããŒãã®éžæã«ã¯æéããããå ŽåããããŸãããã®è³æããRaspberryPiã·ã³ã°ã«ããŒãã³ã³ãã¥ãŒã¿ãŒã«PXEããã°ããå±éããå¿ èŠæ§ã«é¢é£ããããŸããŸãªã¿ã¹ã¯ã解決ãããšãã«å€ãã®äººãæéãç¯çŽããã®ã«åœ¹ç«ã€ããšãé¡ã£ãŠããŸãã