ä»åãç«ã¡ä¸ããFreeBSD13.4ãªãã¹ããã·ã³ã«å²ãå½ã¦ããã£ã¹ã¯ãµã¤ãºï¼VHDï¼ã¯ãããªãå°ããã§ãï¼Maxï¼32Gbyteï¼ã
ãã®å®¹éã§ãå種ä½æ¥ï¼ãã¹ããè¡ãã«ã¯å³ããç¶æ
ã§ãã
ããã§ãã¾ãã¯ãã¡ã¤ã³ãã¡ã¤ã«ãµã¼ãã¼ä¸ã®FreeBSDç¨exporté åã«ãã½ã¼ã¹ãªã©ã移åããä¸ã§ãkernelã®åæ§ç¯ãè¡ããã¨æãã¾ããã注*1ã
Â
â»è¨æ£â» |
|
1.ã¡ã¤ã³ãã¡ã¤ã«ãµã¼ãã¼ã§ã®æºå
(1)FreeBSD13.4ç¨ã¡ã¤ã³ãã©ã«ãã®ä½æ
ã»ã¾ããFreeBSD13.4ç¨ã®ãµããã©ã«ããåããããã©ã«ããä½æãã¾ãã
root@filesv_main:# cd /FreeBSD | ; | FreeBSDç¨é åã«ç§»å |
root@filesv_main:# mkdir ./13.4-RELEASE-amd64 | ; | FreeBSD13.4ç¨é åã®ä½æ |
æå® filesv_main:/FreeBSDã®ãã£ã¬ã¯ããªæ§æä¾ï¼*2ï¼ |
drwxr-xr-x  2 root  wheel    2 Oct 14 08:56 13.4-RELEASE-amd64 drwxr-xr-x  7 root  wheel    7 Aug 18  2003 3.5.1-RELEASE-i386 drwxr-xr-x  7 root  wheel    7 May 21  2006 4.11-RELEASE-i386 drwxr-xr-x  8 root  wheel    8 Aug 18  2003 4.8-RELEASE-i386 drwxr-xr-x  10 root  wheel    11 May  3  2006 5.4-RELEASE-i386 drwxr-xr-x  10 root  wheel    10 Feb 21  2011 6.4-RELEASE-amd64 drwxr-xr-x  10 root  wheel    10 Feb 14  2011 6.4-RELEASE-i386 drwxr-xr-x  10 root  wheel    10 Mar  6  2011 7.4-RELEASE-amd64 drwxr-xr-x  10 root  wheel    11 Mar 20  2011 7.4-RELEASE-i386 drwxr-xr-x  11 root  wheel    12 Mar  4  2018 8.4-RELEASE-amd64 |
Tips |
|
(2)FreeBSD13.4ç¨ãµããã©ã«ãã®ä½æ
- FreeBSD13.4ç¨å®è¡ãã¡ã¤ã«ããå種ãã¼ã«ã®ã³ã³ãã¤ã«ãportsçãå±éãããµããã¡ãªã«ããä½æãã¾ãã
root@filesv_main:# cd /FreeBSD/13.4-RELEASE-amd64 | ; | FreeBSD13.4ç¨ãã©ã«ãã«ç§»å |
root@filesv_main:# mkdir X11R6 | ; | X11ç¨ãã©ã«ãã®ä½æ |
root@filesv_main:# mkdir bin | ; |  FreeBSD13.4ã®å®è¡ãã¡ã¤ã«ç¨ãã©ã«ãä½æ |
root@filesv_main:# mkdir games | ; | Â |
root@filesv_main:# mkdir info | ; | FreeBSD13.4ã®infoãã¡ã¤ã«ç¨ãã©ã«ãä½æ |
root@filesv_main:# mkdir man | ; | FreeBSD13.4ã®manãã¡ã¤ã«ç¨ãã©ã«ãä½æ |
root@filesv_main:# mkdir pds | ; |  FreeBSD13.4ã®ããã°ã©ã ãããªãã¤ã«ç¨ãã©ã«ãä½æã |
root@filesv_main:# mkdir ports | ; |  FreeBSD13.4ã®portsç¨ãã©ã«ãä½æã |
root@filesv_main:# mkdir src | ; |  å種åé ¢ãã¡ã¤ã«ç¨ãã©ã«ãä½æã |
root@filesv_main:# mkdir packages | ; |  FreeBSD13.4ã®packageç¨ãã©ã«ãä½æ |
(3)FreeBSD13.4ã¤ã³ã¹ãã¼ã«ç¨isoãã¡ã¤ã«ã®ã³ãã¼
root@filesv_main:# cd /FreeBSD/13.4-RELEASE-amd64 | ; | Â |
root@filesv_main:# cp [..]/FreeBSD-13.4-RELEASE-amd64-dvd1.iso . | ; | Â |
2.kernelã½ã¼ã¹ï¼portsãã¡ã¤ã³ãã¡ã¤ã«ãµã¼ãã¼ã«ç§»å
(1)ã¡ã¤ã³ãã¡ã¤ã«ãµã¼ãã¼ã®ãã£ã¹ã¯ãNFSãã¦ã³ã
root@test_sv:# cd /mnt | ; | Â |
root@test_sv:# mkdir /mnt/nfs | ; | ãã¦ã³ããã¤ã³ããä½æ |
root@test_sv:# mount -t nfs filesv_main:/Share/FreeBSD/13.4-RELEASE-amd64 /mnt/nfs | ; | NFSãµã¼ãã¼ã®ãã£ã¹ã¯ããã¦ã³ã |
(2)portsã®ã®ç§»å
root@test_sv:# cd /usr/ports | ; | portsãã£ã¬ã¯ããªã«ç§»å |
root@test_sv:# tar -cvf /mnt/nfs/ports.tar . | ; | portsãtarballã«ãã |
root@test_sv:# cd /usr | ; | usrãã£ã¬ã¯ããªã«ç§»å |
root@test_sv:# rm -fR ports | ; | portsãã£ã¬ã¯ããªãåé¤ |
root@test_sv:# ln -s /mnt/nfs/ports . | ; | NFSãã¦ã³ãããportsãã£ã¬ã¯ããªã«ã·ã³ããªãã¯ãå¼µã |
root@test_sv:# cd /mnt/nfs/ports | ; | nfsãã¦ã³ãããportsãã£ã¬ã¯ããªã«ç§»å |
root@test_sv:# tar -xvf ../ports.tar | ; | portsã®tarballãå±é |
(3)kernelã½ã¼ã¹ã®ç§»å
root@test_sv:# cd /usr/src | ; | srcãã£ã¬ã¯ããªã«ç§»å |
root@test_sv:# tar -cvf /mnt/nfs/src.tar . | ; | srcãtarballã«ãã |
root@test_sv:# cd /usr | ; | usrãã£ã¬ã¯ããªã«ç§»å |
root@test_sv:# rm -fR src | ; | srcãã£ã¬ã¯ããªãåé¤ |
root@test_sv:# ln -s /mnt/nfs/src . | ; | NFSãã¦ã³ããããsrcãã£ã¬ã¯ããªã«ã·ã³ããªãã¯ãå¼µã |
root@test_sv:# cd /mnt/nfs/src | ; | nfsãã¦ã³ãããsrcãã£ã¬ã¯ããªã«ç§»å |
root@test_sv:# tar -xvf ../src.tar | ; | srcã®tarballãå±é |
*1:ãã®æ稿ã®å 容ã¯ãç¹å®ã®æ©ç¨®ä¸¦ã³ã«ç¹å®ã®ç°å¢ã§ã®ç¢ºèªçµæã«ãªãã¾ããåçæ©ç¨®ãç°ãªãç°å¢ã§ã®åä½ä»ãä¿è¨¼ãããã®ã§ã¯ããã¾ããã®ã§ããçæããã ãã¾ãæ§ãé¡ããããã¾ãã
*2:EOLãªO/Sç¨é åãå¤æ°ãæ®ã£ã¦ãã¾ããð
ã
å¥å¿ç¦ä»£ãã«ããã¦æ®ãã¦ãã¾ãð
ã
*3:ãã ããå¥éãã¡ã¤ã³ã®am-utilsã®confãã¡ã¤ã«ã¸ã®å®ç¾©ãå¿ è¦ã«ãªãã¾ããã