æå® ã®ã¡ã¤ã³ãã¡ã¤ã«ãµã¼ãã¼ã¯FreeBSDã使ã£ã¦ãã¾ããï¼*1ï¼ãå®æ©ã«ã¤ã³ã¹ãã¼ã«ããåã«ãVirtualBox7ä¸ã§FreeBSD13.4ã試ããã¨æãã¾ãï¼*2,*3,*4,*5ï¼ã
ã»ã¼ãå°çã®å¥å¿ç¦ã§ãð ã
1.æºå
FreeBSDã®ãã©ã¼ãµã¤ããããISOã¤ã¡ã¼ã¸ãã¡ã¤ã«ï¼FreeBSD-13.4-RELEASE-amd64-dvd1.isoï¼ãé©å½ãªå ´æã«ããã¦ã³ãã¼ãããã
2.æ°è¦ä»®æ³ãã·ã³ã®ä½æ
(1)Oracle VM Virtual Boxããã¼ã¸ã£ã®èµ·å
ãã¹ã¯ãããã«ãããOracle VM VirtualBoxãã¢ã¤ã³ã³ãã¯ãªãã¯ããOracle VM Virtual Boxããã¼ã¸ã£ãèµ·åããã
Oracle VM Virtual Boxããã¼ã¸ã£ã®ãä»®æ³ãã·ã³ãã®ãæ°è¦ããã¿ã³ãã¯ãªãã¯ããã
(2)ä»®æ³ãã·ã³ã®ååã¨OSã®é¸æ
é©å½*6ãªååãè¨å®ããã
ä¿åãããISOã¤ã¡ã¼ã¸ãã¡ã¤ã«ï¼FreeBSD-13.4-RELEASE-amd64-dvd1.isoï¼ãISOã¤ã¡ã¼ã¸ã¨ãã¦é¸æããã
ISOã¤ã¡ã¼ã¸ãé¸æããã¨ããã¿ã¤ããã¯ãOtherããããã¼ã¸ã§ã³ãã¯ãOther/Unkonwnãã«ãªãã
ãã«ãã¦ã³ã¡ãã¥ã¼ããããã¿ã¤ããã¯ãBSDããããã¼ã¸ã§ã³ãã¯ãFreeBSD(64bit)ããé¸æããå¤æ´ããã
(3)ã¡ã¢ãªã¼ã¨CPUã®å²ãå½ã¦è¨å®
ä»®æ³ãã·ã³ã«å²ãå½ã¦ããã¡ã¢ãªã¼éã¨ããã»ããµã¼ã®æ°ãè¨å®ããã*7
â»å°ãªãã¨ãã¡ã¢ãªã¼ã¯4Gbyte以ä¸ãå²ãå½ã¦ãæ¹ãç¡é£ã§ãã
â»CPUã¯ãã¨ãããããã°ãªã¼ã³ã®ãã¼ã®ä¸éã¾ã§å²ãå½ã¦ã¦ãããæ¹ãç¡é£ã§ãã
â»ä½ããå°ãªãããã¨ãã¤ã³ã¹ãã¼ã«éä¸ã§åºã¾ããã¨ãããã¾ãã
(4)ä»®æ³ãã£ã¹ã¯ã®å²ãå½ã¦
ä»®æ³ãã£ã¹ã¯ãä½æããããèãããã®ã§ããä»®æ³ãã¼ããã£ã¹ã¯ãä½æãããã®ãã«ã°ãã¿ã³ããªã³ã«ããããµã¤ãºãã決å®ããã
(5)è¦ä»®æ³ãã·ã³(VM)ã®åæè¨å®ç¢ºèª
æå¾ã«ãæ°è¦ä»®æ³ãã·ã³(VM)ã®åæè¨å®ç¢ºèªã¦ã£ã³ãã¦ã表示ããã¾ãã®ã§ãåé¡ãããªããã°ããå®äºããã¿ã³ãã¯ãªãã¯ãã¾ãã
3.æ°è¦ä»®æ³ãã·ã³ã®è¨å®å¤æ´
æ°è¦VMã®ä½æãå®äºããã¨ãä¸æ¦ãVirtualBoxããã¼ã¸ã£ã¼ã«æ»ãã¾ãã
(1)ä¸è¬è¨å®ã®å¤æ´
ä½æããVMãã·ã³ãé¸æããå転ããããè¨å®(æ¯è»)ããã¿ã³ãã¯ãªãã¯ãã¾ãã
ãé«åº¦ãã¿ãã®ãã¯ãªãããã¼ãã®å ±æãããã©ãã°&ãããããããåæ¹åãã«å¤æ´ãã¾ãã
(2)ãããã¯ã¼ã¯ã¢ããã¿ã®è¨å®å¤æ´ï¼ä»»æï¼
ãNATãã®å ´åï¼
- ä»ã®ã³ã³ãã¥ã¼ã¿ããVMãè¦ããããã«ããããã«ã¯ããã¹ãO/Sä¸ã§ãNATã®è¨å®ãå¿ è¦ã«ããã«ãªãã¾ãã
- ã¾ãããã¹ãO/Sä¸ã§ãNATã®è¨å®ãããªãããã©ãããã®ã§ããã¾ãããå§ããããã¾ãã
- ãããã¯ã¼ã¯ã®ã»ãã¥ãªãã£ããªã·ã¼çã§ããã¹ãåï¼IPã®å²ãå½ã¦ã®å¶ç´ãããå ´åã«ã¯ããNATãã®æ¹ãè¯ãããããã¾ããã
- ãããã¯ã¼ã¯çã«åé¢ãããçã®çç±ãããå ´åã«ã¯NATã®æ¹ãè¯ãããããã¾ããã
ãããªãã¸ã¢ããã¿ãã®å ´åï¼
- ãã¹ãO/Sã®è¨å®ãå¤æ´ããªãã¦ããVMåããFreeBSD13.4ããµããããä¸ã®ä»ã®ã³ã³ãã¥ã¼ã¿ãè¦ããããã¡ã¤ã«å ±æçããããã¨ãã§ãã¾ãã
ãããªãã¸ã¢ããã¿ãã®æ¹ãè¯ãã¨ãèãã®å ´åã«ã¯å¤æ´ãã¾ãã
4.FreeBSDã®ã¤ã³ã¹ãã¼ã«
(1)ã¤ã³ã¹ãã¼ã©ã¼ã®èµ·å
VirtualBoxããã¼ã¸ã£ã¼ã®ãèµ·åããã¿ã³ãæ¼ãã¨ãFreeBSDã®ã¤ã³ãã¼ã©ã¼ãèµ·åãã¾ãã
(2)ã¤ã³ã¹ãã¼ã«ç¨®å¥ã®é¸æ
ã¤ã³ã¹ãã¼ã«ã®ç¨®å¥ãèãã¦ããã®ã§ãã¿ããã¼ã§ã<Install>ããé¸æããã¨ã³ã¿ã¼ãã¼ãæ¼ãã
(3)ãã¼ãããã®é¸æ
ãã¼ããããèãããã®ã§ãä¸ä¸ç¢å°ãã¼ã§ãJapanese106ããæ¢ãããã¹ãã¼ã¹ããã¼ãæ¼ãã
ãã¹ãã¼ã¹ããã¼ãæ¼ãã¨ããTest jp.kbd Keymapãã«ã«ã¼ã½ã«ã移åããã®ã§ããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
ã{}[]`@~^|_#$%"ãããããå ¥åãã¦ãæ£ãããå ¥åã§ããã確èªãã¾ãã
(4)ãã¹ãåã®è¨å®
ãã¹ãåãè¨å®ãã¾ãã
ãã®æããã¹ãåã¯FQDNã«ãã¦ãããæ¹ããè¯ãã¨æãã¾ãã
(5)追å ã³ã³ãã¼ãã³ãã®é¸æ
追å ã®ã³ã³ãã¼ãã³ããã¤ã³ã¹ãã¼ã«ãããã©ãããèããã¾ãã
å種ä½æ¥ãè¡ãã«éãã¦ãå¾ãããã³ã³ãã¼ãã³ãã追å ããã®ã¯ããªãæéããããã¾ãã®ã§ããã¹ã¦ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ããããå¾ããã容æã«è¿½å ã§ãã¾ãã®ã§ãããã§ã¯ããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¦ã次ã«é²ã¿ã¾ããï¼2024/10/16ä¿®æ£ï¼
(6)ãã¡ã¤ã«ã·ã¹ãã ã®é¸æ
ãZFSããUFSãã®ã©ã¡ãã使ããããããã¯ãèªåã§ç´°ããè¨å®ããããããã³ãã³ãã©ã¤ã³ã§è¨å®ãããããèããã¾ãã
ã¨ãããããè¨å®é ç®ã®å°ãªããUFSããé¸æãã¾ãï¼*8ï¼ã
(7)ã¤ã³ã¹ãã¼ã«å ã®ç¢ºèª
ãã£ã¹ã¯ãæ¶å»ãã¦è¯ããèããã¾ãã
ä»ã®O/Sï¼ä¾ãã°ãWindowsï¼ã¨å ±åãããå ´åãã©ã®ãã¼ãã£ã·ã§ã³ã«ã¤ã³ã¹ãã¼ã«ããããããã§æ±ºãã¾ãã
ä»åã¯ãVirtualBox7ã®ä»®æ³ãã£ã¹ã¯ãFreeBSDã ããã¤ã³ã¹ãã¼ã«ããã®ã§ã
(8)ãã¡ã¤ã«ã·ã¹ãã ã®é¸æ
ãZFSããUFSãã®ã©ã¡ãã使ããããããã¯ãèªåã§ç´°ããè¨å®ããããããã³ãã³ãã©ã¤ã³ã§è¨å®ãããããèããã¾ãã
ã¨ãããããè¨å®é ç®ã®å°ãªããUFSããé¸æãã¾ãï¼*9ï¼ã
(9)ãã¼ãã£ã·ã§ã³ç¨®å¥ã®ç¢ºèª
Windows10/11,ãLinuxã¨å ±åãããã§ããã°ããGPTããé¸æããå¿ è¦ãããã¾ãããä»åã¯ãVMã§ãã®ã§ãã¬ã¬ã·ã¼ãªãMBRãã«ãã¾ãã
(10)ãã£ã¹ã¯æ§æã®æçµç¢ºèª
ãã£ã¹ã¯æ§æãèªåçã«è¨å®ããã¾ãã®ã§ãåé¡ãªããã°ãã<Finishï¼ããå転表示ããããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
æçµç¢ºèªãæ±ãããã®ã§ãã<Commitï¼ããå転表示ããããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
ãã£ã¹ã¯ã®ãã©ã¼ãããå¾ãã·ã¹ãã ãã¤ã³ã¹ãã¼ã«ããã¾ãã
(11)ãã¹ã¯ã¼ãã®è¨å®
root ã®ãã¹ã¯ã¼ãè¨å®ãæ±ããããã®ã§ããã¹ã¯ã¼ããè¨å®ãã¾ãã
(12)ãããã¯ã¼ã¯ã®è¨å®
ãããã¯ã¼ã¯ã®è¨å®ã«å ¥ãã¾ããããã§ã¯ãVirtualBoxãã¬ã¬ã·ã¼ãªãIntel PRO/1000ããã¨ãã¥ã¬ã¼ããã¦ãã¾ãã®ã§ãã³ã³ãã¥ã¼ã¿ã«å®è£ ããã¦ããç©ççãªãããã¯ã¼ã¯ã«ã¼ãï¼NICï¼ã¨ç°ãªãã¾ããããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
IPv4ã®è¨å®ãè¡ããèããã¾ãã®ã§ããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
HDCPãå©ç¨ãããèããã¾ãã®ã§ãDHCPã§IPv4ãå²ãå½ã¦ãå ´åã«ã¯ãã<Yes>ããå転表示ããããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
ä»åã¯ãIPv4ãéçã«å²ãå½ã¦ã¾ãã®ã§ãã<No>ããå転表示ããããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
ãIPã¢ãã¬ã¹ããããµãããããã¹ã¯ãããããã©ã«ãã²ã¼ãã¦ã§ã¤ããè¨å®ãããTabããã¼ã§ç§»åããã<OK>ããå転表示ããããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
次ã«ãIPv6ã®è¨å®ããããèãã¦ãã¾ãã®ã§ãå¿ è¦ãããã°ãè¨å®ãã¾ãã
ä»åã¯IPv6ã®è¨å®ãè¡ãã¾ããã®ã§ãã<No>ããå転表示ããããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
次ã«ãDNSãµã¼ãã®è¨å®ã«ã¤ãã¦èããã¾ãã
æ¤ç´¢ããããã¡ã¤ã³åãããDNSãµã¼ãã¼ã®IPã¢ãã¬ã¹ããè¨å®ãããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
(13)ã¿ã¤ã ã¾ã¼ã³ã¨æ¥æã®è¨å®
ã¾ãããAsiaããé¸æããå¾ããJapanããé¸æãã¾ãã
æå»è¨å®ã¯ãJSTãï¼GMT+09:00ï¼ã§è¯ããèããã¾ãã®ã§ããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
次ã«ãæ¥ä»ã¨æå»ãè¨å®ãããèããã¾ãããã ãããã®æ®µéã§è¡¨ç¤ºãããã®ã¯ãä¸çæ¨æºæï¼GMTï¼ã§ãã®ã§ã注æãå¿ è¦ã§ãã
ã³ã³ãã¥ã¼ã¿ä¸ã®Liãã¿ã³é»æ± ãæ»ãã§ãªããã°ð ãæ£ããæ¥ä»ã¨æå»ã表示ããã¦ããã¯ãã§ãã®ã§ãã<Skip>ããã¾ããï¼*10ï¼
(14)Bootæã«ã¹ã¿ã¼ããããdeamonã®è¨å®
Bootæã«ãã©ã®åºæ¬çãªdeamonãã¹ã¿ã¼ããããããèããã¾ãã
å¿ è¦ã§ããã°ãç¢å°ãã¼ã¨ã¹ãã¼ã¹ãã¼ã§å¯¾è±¡ã«ãï¼ãã表示ããã¾ãã
é¸æãçµãã£ãããã<OK>ããå転表示ããããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
(15)ã»ãã¥ãªãã£ãã³ããªã³ã°ã®è¨å®
ã»ãã¥ãªãã£ãã³ããªã³ã°ã«é¢ããè¨å®ã«ã¤ãã¦èããã¾ãããä»åã¯ç¹ã«è¨å®ããã«ãã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
(16)追å ã¦ã¼ã¶ã¼ã®è¨å®
ä¸è¬ã¦ã¼ã¶ã¼ã®è¿½å ããããèããã¾ãããä»åã¯è¿½å ããã«ãã<No>ããé¸æãããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
(17)追å è¨å®ã®ç¢ºèª
ããã¾ã§ãè¨å®ããå 容ã®å¤æ´ãå¿ è¦ãèããã¾ããããã®ã¾ã¾ãã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
(18)追å è¨å®ã®ç¢ºèª(2)
ã³ãã³ãã©ã¤ã³ããã®è¨å®ãå¿ è¦ãèããã¾ãããã<No>ããé¸æãã¦ããã¨ã³ã¿ã¼ããã¼ãæ¼ãã¾ãã
(19)ã·ã¹ãã ã®ã·ã£ãããã¦ã³
æå¾ã«ããªãã¼ããããèããã¾ãã
ç©ççãã·ã³ã®å ´åãDVDã¡ãã£ã¢ãåãåºãå¿ è¦ãããã¾ãã
VMã®å ´åã
- ãã®ã¾ã¾ãªãã¼ãããã¨ã¤ã³ã¹ãã¼ã«ã¡ãã£ã¢ãå ¥ã£ãã¾ã¾ã®ç¶æ ã«ãªããåã³ãã¤ã³ã¹ãã¼ã©ãç«ã¡ä¸ãã£ã¦ãã¾ãï¼æ³¨ï¼*11ï¼ã
- ãã ãããã®ç¶æ ã¾ã§æ¥ãã¨ãã«ã¼ãã«ã¯ã·ã£ãããã¦ã³ã·ã°ãã«ãæ£å¸¸ã«åãåãã¾ãã
- ã·ã£ãããã¦ã³ã·ã°ãã«ãåãåãã¨ãæ£å¸¸ãªã·ã£ãããã¦ã³ããã»ã¹ãè¡ããããã¡ã¤ã«ã·ã¹ãã ãæ£å¸¸ã«ã¢ã³ãã¦ã³ãããä¸ã§ãã·ã£ãããã¦ã³ããã¾ãã
ããã§ãã·ã£ãããã¦ã³ã·ã°ãã«ãéãããã«ãVMã®å·¦ä¸ã®ãÃããã¯ãªãã¯ãã¾ãã
ãã·ã£ãããã¦ã³ã·ã°ãã«ã®éä¿¡ãã®ã©ã¸ãªãã¿ã³ãé¸æãããOKããã¯ãªãã¯ãã¾ãã
Â
6.ã¤ã³ã¹ãã¼ã«ã¡ãã£ã¢ã®åãåºã
ãè¨å®ããã¯ãªãã¯ãã¾ãã
ãã¹ãã¬ã¼ã¸ãã®ãFreeBSD-13.4-RELEASE-amd64-dvd1.isoããå転表示ããã¾ãã
ä¸å´ã«ãããã¯ãªãã¯ãã¦ãã¤ã³ã¹ãã¼ã«ãã£ã¹ã¯ãé¤å»ãã¾ãã
â»å¾ã§ãISOãã¡ã¤ã«çã使ãããã¨ãã¯ãå²ãå½ã¦ãåºæ¥ã¾ãã
7.FreeBSDã®èµ·å
Oracle VM Virtual Boxããã¼ã¸ã£ã¼ã§FreeBSDã®VMãé¸æããèµ·åãã¿ã³ãæ¼ãã¾ãã
ãã°ã¤ã³ç»é¢ã表示ãããã¤ã³ã¹ãã¼ã«ä¸ã«è¨å®ãããrootã®ãã¹ã¯ã¼ãã§ãã°ã¤ã³ã§ããã°ãã¤ã³ã¹ãã¼ã«æåã§ãã
ç´°ããè¨å®ã¯å¥ã®æ©ä¼ã«ðã
Â
åºå ¸ã»å¼ç¨ã»åè]
*1:O/Sã®ãã¼ã¸ã§ã³ãEOLãªãã®ã§ð ã
*2:ããã¶ãåã«ãWindows10ä¸ã®VirtualBoxã§ãã¹ããå§ãããã¨æã£ãã®ã§ããã
Windows10ä¸ã ã¨ãWindowsä¸ã§ã®ä»ã®ä½æ¥ã«å·®ããããããã£ã¦ãããð
*3:ä»åã¯ãVirtualBoxå°ç¨ãã·ã³ãç«ã¡ä¸ãããã¨ãåºæ¥ãã®ã§ãæ´»ç¨ãããã¨ãããã¨ãããã¾ãð ã
*4:EOLããèããã¨ã2028å¹´11æ30æ¥ã¾ã§ãµãã¼ããäºå®ããã¦ãããFreeBSD14.1ã«ããæ¹ãè¯ãã®ããããã¾ããããããð
*5:æãããå®éç¨ä¸ã®ãµã¼ãã¼ããªãã¬ã¼ã¹ã®éã¯ãã¢ãããã¼ãã§ãã¡ã¤ã«ãµã¼ãã¼ãåæ¢ï¼åèµ·åããããã¿ã¤ãã³ã°ãéããã¦ããã®ã§ãx.4ãã¤ã³ã¹ãã¼ã«ããç¿æ £ã«ãªã£ã¦ãã¾ãã¦ð ã
*6:ããããããååãè¯ãã¨æãã¾ãã
*7:å¾ã§ãè¨å®ãå¤æ´ãããã¨ãã§ãã¾ã
*8:ããã¯ã好ã¿ãã¨ð
ã
å°çã®å ´åãã¡ã¤ã³ãã¡ã¤ã«ãµã¼ãã¼ã®ã«ã¼ãã¯ãRAID1+HotSpareã«ãã¦ããã®ã§ãUFSãé¸æãã¦ããã ãã§ãð
ã
*9:ããã¯ã好ã¿ãã¨ð
ã
å°çã®å ´åãã¡ã¤ã³ãã¡ã¤ã«ãµã¼ãã¼ã®ã«ã¼ãã¯ãRAID1+HotSpareã«ãã¦ããã®ã§ãUFSãé¸æãã¦ããã ãã§ãð
ã
*10:ããã§ãæ¥ä»ã¨æå»ãããããå ´åã«ã¯ãæ©ãã«ããã¶ã¼ãã¼ãï¼M/Bï¼ä¸ã®Liãã¿ã³é»æ± ãæ°åï¼CR2032ï¼ã«äº¤æãããã¨ããå§ããããã¾ãã
*11:ããã§ãç¡çããã¤ã³ã¹ãã¼ã«mãã£ã¢ãVMããã¼ã¸ã£ã¼ããé¤å»ããã¨ãã¯ã¾ãã¾ãð
ã
è²ã
試ãã¦ããä¸ã§ãå°çãä¸åº¦ã¯ã¾ãã¾ããã