VirtualBox 7.0ã§ã²ã¹ãOSãã¤ã³ã¹ãã¼ã«ããæ¹æ³ããVirtualBox 6.xããå¤ããã¾ããã
ä»åã¯ãã®å
容ã説æãã¦ããããã¨æãã¾ãã
ã²ã¹ãOSã¯ãæ¢ã«ãUbuntu24.04 ãæä¾éå§ãããï¼2024/4/25ï¼ããã§ããããããã«åºãã°ã£ãããªã®ã§ãä»å㯠Ubuntu22.04 ã§ãã£ã¦ããã¾ãã
ããã§ã¯ãã£ã¦ããã¾ãï¼
ã¯ããã«
GWã«å
¥ã£ã¦ãæéãã§ããã®ã§ããããããã£ã¦ããããã¨æãã¾ãã
ã¾ãã¯ãLinuxç°å¢ãã»ãããªã£ãã®ã§ãVirtualBox ã« Ubuntu ãã¤ã³ã¹ãã¼ã«ãã¾ãã
ã¾ããä»åã®ç¶ç·¨ã¨ãã¦ãUbuntu 22.04 ã®ã»ããã¢ããã«ã¤ãã¦æ¸ããã®ã§ãè¯ãã£ããåèã«ãã¦ãã ããã
daisuke20240310.hatenablog.com
ãã¨ãä»åãããã©ã³ãã³ã°ã«åå ãã¦ã¿ã¾ããã
æå¾ã«è²¼ã£ã¦ããã§ãããæã£ã以ä¸ã«è¨äºãé·ããªã£ãã®ã§ãåã®æ¹ã«ç§»åããã¾ããï¼ç¬ï¼ã
ã¯ãªãã¯ããã¨ããã®ã©ã³ãã³ã°ã®ãã¼ã¸ã«é£ã¶ã ãã§ã決ãã¦å¤ãªãã¨ã¯èµ·ããã¾ããã®ã§ããªã«ã¨ããããã¨ãããããé¡ããããã¾ãð
VirtualBox 7.0ã®ã¤ã³ã¹ãã¼ã«æé
VirtualBox 7.0ã®ãã¦ã³ãã¼ãå
ã¯ãã¡ãã§ãããDownload VirtualBox 7.0ããã¯ãªãã¯ãã¾ãã
www.virtualbox.org
ãã¦ã³ãã¼ããã¼ã¸ã«é£ã¶ã¨ãä¸ç©ãªå
容ãæ¸ããã¦ãã¾ãããã¯ããæ°ãããã®ãå¿
ãããè¯ãã¨ã¯éãã¾ãããã
注æ: ç¾æç¹ã§ã¯ 7.0.16 ã¸ã®ã¢ããã°ã¬ã¼ããæ§ãã¦ãã ããããã®ãªãªã¼ã¹ã«ã¯ãVM ãããªã㸠ãããã¯ã¼ã¯ã¾ãã¯ãã¹ããªã³ãªã¼ ãããã¯ã¼ã¯ã使ç¨ããããã«æ§æããã¦ããå ´åã«ãã¹ã OS ã®ã¯ã©ãã·ã¥ãå¼ãèµ·ããå¯è½æ§ãããåé¡ãããã¾ããä¿®æ£ããã°ã©ã ããã¦ã³ãã¼ãå¯è½ã«ãªãã¨ãã¡ã¼ãªã³ã° ãªã¹ãã«éç¥ãéä¿¡ããã¾ãã
ããªãã¸ãããã¯ã¼ã¯ã¯ããã¹ãOSï¼ä»åã®ã±ã¼ã¹ã§ã¯Windows10ã®ãã¨ã§ãï¼ã¨ã²ã¹ãOSï¼ä»åã®ã±ã¼ã¹ã§ã¯Ubuntu 22.04ã®ãã¨ã§ãï¼ãååãªé¢ä¿ã§ããã家ã®ãããã¯ã¼ã¯ã®å ´åãã²ã¹ãOSã«ãIPã¢ãã¬ã¹ãä»ä¸ããæ¹å¼ã§ãã
NATæ¹å¼ã¯ããã¹ãOSã®ãããã¯ã¼ã¯ã®ä¸ã«ã²ã¹ãOSãå
¥ãæ¹å¼ã§ããã¡ãã使ãã¤ããã§ãããããã¹ããªã³ãªã¼ãããã¯ã¼ã¯ã¯NATæ¹å¼ã®å ´åã«ãã¹ãOSã¨ã²ã¹ãOSéãã¤ãªããããã¯ã¼ã¯ãªã®ã§ãããããªãã¨å°ãã¾ãã
ã§ã¯ãããå°ãå¤ããã¼ã¸ã§ã³ã使ããã¨ã«ãã¾ãã
ãã¡ãã«éå»ã®ãã¼ã¸ã§ã³ãããããã§ãã
VirtualBox 7.0ãé¸ã³ã¾ãã
Windowsçããã¦ã³ãã¼ããã¾ããã¤ãã§ã«ãããã·ã¥ããã§ãã¯ãã¦ããã¾ãï¼ãã¦ã³ãã¼ããããã¡ã¤ã«ãå³ã¯ãªãã¯ãã¦ã7-Zipã®CRC-SHAã§è¨ç®ããã¦çµæãä¸è´ãã¦ãããã¨ã確èªããï¼ã
ã§ã¯ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãããã¦ã³ãã¼ããããã¡ã¤ã«ãããã«ã¯ãªãã¯ãã¦ã¤ã³ã¹ãã¼ã©ã¼ãèµ·åãã¾ããNextãã¯ãªãã¯ãã¾ãã
ã¤ã³ã¹ãã¼ã«ããæ©è½ãé¸æããç»é¢ã§ããç¹ã«å¤æ´ã¯å¿
è¦ãªãã¨æãã¾ããNextãã¯ãªãã¯ãã¾ãã
ä¸æ¬¡çã«ãããã¯ã¼ã¯ãåæããã注æç»é¢ã§ããNextãã¯ãªãã¯ãã¾ãã
ã¤ã³ã¹ãã¼ã«éå§ç»é¢ã§ããInstallãã¯ãªãã¯ãã¾ãã
ç¡äºã«ã¤ã³ã¹ãã¼ã«å®äºã§ãï¼ãã§ãã¯ããã¯ã¹ã¯ãããã«VirtualBoxãèµ·åãããã©ããã§ããFinishãã¯ãªãã¯ãã¾ãã
VirtualBox 7.0ã®ã¤ã³ã¹ãã¼ã«ã¯ä»¥ä¸ã§ãï¼
Ubuntu 22.04.4 LTS ã®ã¤ã³ã¹ãã¼ã«æé
ã¾ããUbuntu 22.04 ã®ææ°çããã¦ã³ãã¼ããã¾ããæ¥æ¬èªçãããã¾ããããã¶ããå°ãå¤ãã¨æãã®ã§ãææ°ã®æ¹ãã¤ã³ã¹ãã¼ã«ãã¾ãããã¦ã³ãã¼ããµã¤ãã¯ãã¡ãã§ãã
releases.ubuntu.com
Desktop image ãé¸æãã¾ãã
念ã®ãããããã·ã¥ã確èªãã¾ãã
ã§ã¯ãVirtualBox 7.0 ã使ã£ã¦ãUbuntu 22.04.4 LTS ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã
VirtualBox 7.0 ãèµ·åãã¾ããæ°è¦ãã¯ãªãã¯ãã¾ãã
ååã決ãã¾ããç¹ã«åä½ã«å½±é¿ããªãã®ã§ãä»åã®ã²ã¹ãOSãåããååã«ãã¦ããã°ããã¨æãã¾ãã
ISOã¤ã¡ã¼ã¸ã®ã¨ããã§ããã«ãã¦ã³ã¡ãã¥ã¼ãã¯ãªãã¯ããããã®ä»ããã¯ãªãã¯ãã¦ãå
ã»ã©ãã¦ã³ãã¼ãããISOãã¡ã¤ã«ãæå®ãã¾ãã
ãèªåã¤ã³ã¹ãã¼ã«ãã¹ããããã«ãã§ãã¯ãå
¥ãã¾ããVirtualBox 7.0 ã«ã¯ãèªåã¤ã³ã¹ãã¼ã«ã¨ããæ©è½ãããã¾ãï¼ä»¥åããæ©è½ã¯ããã¾ããããGUIã§ã¯ä½¿ããªãã£ããããã§ãï¼ããUbuntuã®ã¤ã³ã¹ãã¼ã«ã¯ããããªã«å¤ãã®æé ãããããã§ããªãã®ã§ãèªåã§è¨å®ãã¦ããã¾ãã
ããã¾ã§åºæ¥ãããã次ã¸ããã¯ãªãã¯ãã¾ãã
ãã¼ãã¦ã§ã¢ã®è¨å®ã§ãã
ã¡ã¤ã³ã¡ã¢ãªã®éã¯ãã²ã¹ãOSã§ä½¿ç¨ããã¡ã¢ãªå®¹éã§ããå¤ãå²ãå½ã¦ãããã¨ããã¹ãOSã®åããé
ããªã£ããããã®ã§ã使ç¨é »åº¦ããã²ã¹ãOSã§è¡ãä½æ¥ã«ãããã¾ãããç©ççã«åå¨ããã¡ã¢ãªéã®25ãã50%ãããã®ç¯å²ã§æ±ºããã°ããã¨æãã¾ãã
ããã»ããµæ°ãåæ§ã«ãç©ççãªããã»ããµæ°ã®25ãã50%ã®ç¯å²ã§æ±ºããã¨ããã¨æãã¾ãã
ãEFIãæå¹åãã¨ã¯ãæ°ããBIOSã使ããã©ããã§ããæ©è½ã¯å¤ããªãããããã¨ãªã®ã§ããããã©ãã«ãèµ·ãã£ãè¨äºãå¤ãããã®ã§ãå¤æ´ããªãæ¹ãããæ°ããã¾ããå¿
è¦ãªãããã©ã«ãã§ãã§ãã¯ãå
¥ã£ã¦ãã¨æãã¾ãã
ç§ã®å ´åã¯ãã²ã¹ãOSã常ã«èµ·åãã¦ãã使ãæ¹ã§ã¯ãªããå¿
è¦ãªã¨ãã ãèµ·åããã®ã§ãå¤ãã«å²ãå½ã¦ã¦ãã¾ãã
ç¶ãã¦ãä»®æ³ãã¼ããã£ã¹ã¯ã®è¨å®ã§ãããã¡ããç¨éã«å¿ãã¦æ±ºããã°ããã¨æãã¾ããç§ã®å ´åã¯ãããå°ãå¤ãå²ãå½ã¦ããã¨ããã§ãããç©ççãªæ®ã容éã®é¢ä¿ã§ãæä½éã®25GBã¨ãã¦ãã¾ãã
ãå
¨ãµã¤ãºã®äºåå²å½ã¦ãã¯ããã§ãã¯ãå
¥ããã¨ãæåããæå®ãããµã¤ãºã確ä¿ããã¾ããããã§ãã¯ãå¤ãã¦ããã¨ãå¿
è¦ã«å¿ãã¦å¤§ãããªãè¨å®ã«ãªãã®ã§ããã§ãã¯ã¯å
¥ããªãæ¹ã容éã®ç¯ç´ã«ãªãã¾ãã
è¨å®å
容ã®ç¢ºèªç»é¢ã§ããåé¡ãªããã°ãå®äºãã¯ãªãã¯ãã¾ãã
VirtualBox 7.0 ã®èµ·åç»é¢ã«æ»ãã®ã§ãèµ·åãã¯ãªãã¯ãã¾ãã
ããã©ã«ãã®ãTry or Install Ubuntuããé¸æãã¦ãEnterãã¼ãæ¼ãã¾ãã
ãã°ããæéããããã¾ãããããããã®ç»é¢ã表示ããã¾ãã
ãæ¥æ¬èªããé¸æãã¦ããUbuntuãã¤ã³ã¹ãã¼ã«ããã¯ãªãã¯ãã¾ãã
ãã¼ãã¼ãã¬ã¤ã¢ã¦ãã®è¨å®ã§ããããã©ã«ãã®ã¾ã¾ã§ããã¨æãã¾ãã
ã¢ãããã¼ãã¨ä»ã®ã½ããã¦ã§ã¢ã®ç»é¢ã§ããç¹ã«å¤æ´ã¯å¿
è¦ãªãã®ã§ããç¶ããããã¯ãªãã¯ãã¾ãã
ã¤ã³ã¹ãã¼ã«ã®ç¨®é¡ã®ç»é¢ã§ããæ°è¦ã¤ã³ã¹ãã¼ã«ãªã®ã§ããã®ã¾ã¾ãã¤ã³ã¹ãã¼ã«ããã¯ãªãã¯ãã¾ãã
ãã£ã¹ã¯ã«å¤æ´ãæ¸ãè¾¼ããã®ç¢ºèªç»é¢ã§ãããç¶ããããã¯ãªãã¯ãã¾ãã
ã¿ã¤ã ã¾ã¼ã³ã®è¨å®ç»é¢ã§ãããã®ã¾ã¾ã§ããç¶ããããã¯ãªãã¯ãã¾ãã
ã¦ã¼ã¶è¨å®ã®ç»é¢ã§ããã¦ã¼ã¶åã¨ãã¹ãåããã¹ã¯ã¼ããè¨å®ãã¦ãèªåãã°ã¤ã³ãæå¹ã«ãã¦ããã¾ãã好ã¿ã®è¨å®ã§ããã¨æãã¾ãã決ã¾ã£ããããç¶ããããã¯ãªãã¯ãã¾ãã
ã¤ã³ã¹ãã¼ã«ãå§ã¾ãã¾ãã
ã ããã1æéãããã§ãã¤ã³ã¹ãã¼ã«ãå®äºãã¾ããããä»ããåèµ·åããããã¯ãªãã¯ãã¾ãã
èµ·åæã«ã以ä¸ã®ããã«ãã¤ã³ã¹ãã¼ã«ã¡ãã£ã¢ãåãåºãããã«ãã¨ããç»é¢ã«ãªãã¾ãããã¶ããèªåã§ã¤ã³ã¹ãã¼ã«ã¡ãã£ã¢ï¼ISOãã¡ã¤ã«ï¼ãåãå¤ãã¦ãããã®ã§ãEnterãã¼ãæ¼ãã¾ãã
Ubuntuãèµ·åããã¨ãããªã³ã©ã¤ã³ã¢ã«ã¦ã³ãã¸ã®æ¥ç¶ãã¨ããç»é¢ãåºã¦ãã¾ããã©ã¡ãã§ãããã¨æãã¾ãããç§ã®å ´åã¯ã¹ãããã§ãã
Ubuntu Proã®æå¹åãèããã¾ããUbuntu Proã¯æåãµãã¼ãã§ããµãã¼ãæéãé·ããªãã¾ããæåãªã®ã§ã¹ãããã§ãï¼ç¬ï¼ã
Ubuntuã®æ¹åãæ¯æ´ããç»é¢ã§ããã好ã¿ã§ã©ããã
ä½ç½®æ
å ±ãµã¼ãã¹ã®ç»é¢ã§ããã好ã¿ã§ã©ããã
æºåå®äºã®ç»é¢ã§ãããã£ã¨å®äºã§ãã
ã½ããã¦ã§ã¢ã®æ´æ°ãããããã§ããææ°ãªã®ã§ã229KBã ãã§ãããä»ããã¤ã³ã¹ãã¼ã«ããããã¯ãªãã¯ãã¾ãã
229KBã¨ã¯æããªãã»ã©ãé·ãæéããããã¾ããããç¡äºã«çµäºãã¾ããããããã«åèµ·åããã¯ãªãã¯ãã¾ãã
Ubuntu 22.04.4 LTS ã®ã¤ã³ã¹ãã¼ã«ã¯å®äºã§ãï¼
Guest Additions ã®ã¤ã³ã¹ãã¼ã«
ãã®ã¾ã¾ã ã¨ãç»é¢ãå°ãããªã©ããããã使ãã«ããã®ã§ãGuest Additions ãã¤ã³ã¹ãã¼ã«ãã¾ãã
Guest Additions ã®æ©è½ã¯å
¬å¼ãµã¤ãã®ããã¥ã¢ã«ã«æ¸ããã¦ãã¾ãã
ãã£ãã説æããã¨ã以ä¸ã§ãã
- ãã¦ã¹ãã¤ã³ã¿ã®çµ±åï¼ãã¹ãOSã¨ã²ã¹ãOSéã§ã·ã¼ã ã¬ã¹ãªãã¦ã¹ç§»åã®æ©è½
- å
±æãã©ã«ãï¼ã²ã¹ãOSããç°¡åã«ãã¹ãOSã®å
±æãã©ã«ãã«ã¢ã¯ã»ã¹ããæ©è½
- ç»é¢è§£å度ã®åä¸ï¼ã¦ã£ã³ãã¦ãµã¤ãºãå¤æ´ããã¨è§£å度ãèªåã§èª¿æ´ãããæ©è½
- ã·ã¼ã ã¬ã¹ãªã¦ã£ã³ãã¦ï¼ã²ã¹ãOSã®ã¦ã£ã³ãã¦ããã¹ãOSã®ãã¹ã¯ãããã«ãããã³ã°ããæ©è½
- ã²ã¹ãOSã®å®è¡ã®å¶å¾¡ãç£è¦ï¼ãã¹ãOSã¨ã²ã¹ãOSéã§æ±ç¨ã®æååãã¼ã¹ã®éä¿¡æ©è½
- æå»åæï¼ã²ã¹ãOSã®æå»ãããã¹ãOSã®æå»ã§åæããæ©è½
- ã¯ãªãããã¼ãã®å
±æï¼ãã¹ãOSã¨ã²ã¹ãOSéã§ã¯ãªãããã¼ããå
±æããæ©è½
- èªåãã°ã¤ã³ï¼ã²ã¹ãOSã¸ã®èªåãã°ã¤ã³æ©è½
Guest Additions ã«å¿
è¦ãªããã±ã¼ã¸ãäºåã«ã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã
$ sudo apt install build-essential bzip2 perl
ããã§ã¯ãGuest Additions ãã¤ã³ã¹ãã¼ã«ãã¾ãã
VirtualBoxã®ã¡ãã¥ã¼ã®ããã¤ã¹âGuest Additions CDã¤ã¡ã¼ã¸ã®æ¿å
¥ãã¯ãªãã¯ãã¾ãã
ããã§ãCDã¤ã¡ã¼ã¸ããã¦ã³ãããã¾ãããã¤ã³ã¹ãã¼ã«ã¯ã³ãã³ãã©ã¤ã³ããè¡ãå¿
è¦ãããã¾ãã
端æ«ãèµ·åãã¾ããå·¦ä¸ã®ã¢ããªã±ã¼ã·ã§ã³ã®è¡¨ç¤ºã®ã¢ã¤ã³ã³ãã¯ãªãã¯ãã端æ«ãã¯ãªãã¯ãã¦èµ·åãã¾ãã
äºåã«ãgccãmakeãperlãã¤ã³ã¹ãã¼ã«ããå¿
è¦ãããã¾ãã
$ sudo apt install gcc make perl
Guest Additionsã¯ã/media/xxx/VBox_GAs_7.0.14/VBoxLinuxAdditions.run ã«ããã¾ãï¼xxxã¯ã¦ã¼ã¶åãå
¥ãã¦ãã ããï¼ã
$ sudo /media/xxx/VBox_GAs_7.0.14/VBoxLinuxAdditions.run
ãã£ãããã·ã£ãããã¦ã³ãã¾ãã
$ sudo shutdown -h now
ãã£ã¨æ©ã段éã§ãã£ãæ¹ãè¯ãã£ãããããã¾ãããããããªã¡ã¢ãªã¼ãå¢ããã¦ããã¾ãã
VirtualBox ã®èµ·åããç»é¢ã§ãããã£ã¹ãã¬ã¤ããã¯ãªãã¯ãã¾ãã
128MBã«è¨å®ãã¦ãOKãã¯ãªãã¯ãã¾ãã
ããã§ã解å度ãé«ã表示ã§ããããã«ãªãã¾ããã
Guest Additions ã®ã¤ã³ã¹ãã¼ã«ã¯ä»¥ä¸ã§ãï¼
ãããã«
ã ãã¶æéããããã¾ãããã大ããªãã©ãã«ããªãã¤ã³ã¹ãã¼ã«ã§ãã¾ããã
次åï¼Ubuntu22.04(VirtualBox 7.0)の設定とソフトウェアインストール - daisukeの技術ブログï¼ã¯ãUbuntu 22.04 ã®ã»ããã¢ããã¨ãå種ã½ããã®ã¤ã³ã¹ãã¼ã«ããã£ã¦ããããã¨æãã¾ãã
ä»åã¯ä»¥ä¸ã§ãï¼
æå¾ã¾ã§ãèªã¿ããã ãããããã¨ããããã¾ããã