

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VirtualBox &#8211; Max的程式語言筆記</title>
	<atom:link href="https://stackoverflow.max-everyday.com/tag/virtualbox/feed/" rel="self" type="application/rss+xml" />
	<link>https://stackoverflow.max-everyday.com</link>
	<description>我要當一個豬頭，快樂過每一天</description>
	<lastBuildDate>Wed, 14 Jul 2021 04:15:25 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://stackoverflow.max-everyday.com/wp-content/uploads/2017/02/max-stackoverflow-256.png</url>
	<title>VirtualBox &#8211; Max的程式語言筆記</title>
	<link>https://stackoverflow.max-everyday.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>VirtualBox Please install the gcc make perl packages from your distribution.</title>
		<link>https://stackoverflow.max-everyday.com/2021/07/virtualbox-please-install-the-gcc-make-perl-packages-from-your-distribution/</link>
					<comments>https://stackoverflow.max-everyday.com/2021/07/virtualbox-please-install-the-gcc-make-perl-packages-from-your-distribution/#respond</comments>
		
		<dc:creator><![CDATA[max-stackoverflow]]></dc:creator>
		<pubDate>Wed, 14 Jul 2021 04:15:12 +0000</pubDate>
				<category><![CDATA[電腦相關應用]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<guid isPermaLink="false">https://stackoverflow.max-everyday.com/?p=3863</guid>

					<description><![CDATA[在使用「最小安裝」桌面版的Ubuntu 到 Vi...]]></description>
										<content:encoded><![CDATA[
<p>在使用「最小安裝」桌面版的Ubuntu 到 VirtualBox 裡的時候，在Ubuntu 裡插入VirtualBox 光碟並執行，會顯示錯誤訊息：</p>



<p>Please install the gcc make perl packages from your distribution.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="830" src="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-12.09.54-PM-1024x830.png?v=1626236022" alt="" class="wp-image-3864" srcset="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-12.09.54-PM-1024x830.png?v=1626236022 1024w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-12.09.54-PM-600x487.png?v=1626236022 600w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-12.09.54-PM-768x623.png?v=1626236022 768w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-12.09.54-PM.png?v=1626236022 1105w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>解法：</p>



<p>In&nbsp;<code>terminal</code>&#8230;</p>



<pre class="wp-block-code"><code>sudo apt-get update
sudo apt-get install build-essential gcc make perl dkms
reboot
</code></pre>



<p>then reinstall the VB Guest Additions.</p>



<p><strong>Update:</strong></p>



<ul class="wp-block-list"><li>purge virtualbox-guest-dkms</li><li>purge virtualbox-5.2 and any other virtualbox softwares</li><li><code>ls -al /lib/modules/$(uname -r)/updates/dkms</code> and look for any leftover virtualbox kernel drivers. These need to be manually deleted.</li><li><code>dpkg -l *virtualbox*</code> and <code>dkms status</code> should show no virtualbox software</li><li>install virtualbox-5.2 and create your VM</li><li>in the VM, choose the Devices menu, then &#8220;Insert Guest Additions CD Image&#8221;</li><li>it&#8217;ll ask if you wish to install the Guest Additions</li><li>Note: if it doesn&#8217;t automatically ask to install Guest Additions, you have to do it manually.<ul><li>find the CD icon, on your desktop, or in <code>Files</code>, and open it</li><li>open a <code>terminal</code> in this directory</li><li><code>sudo ./VBoxLinuxAdditions.run</code></li></ul></li></ul>



<hr class="wp-block-separator"/>



<h2 class="wp-block-heading">資料來源</h2>



<p>VirtualBox Guest Additions installation problem<br>https://askubuntu.com/questions/1035030/virtualbox-guest-additions-installation-problem</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stackoverflow.max-everyday.com/2021/07/virtualbox-please-install-the-gcc-make-perl-packages-from-your-distribution/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu 調整 partition 大小的步驟</title>
		<link>https://stackoverflow.max-everyday.com/2021/07/ubuntu-partition-resize/</link>
					<comments>https://stackoverflow.max-everyday.com/2021/07/ubuntu-partition-resize/#respond</comments>
		
		<dc:creator><![CDATA[max-stackoverflow]]></dc:creator>
		<pubDate>Wed, 14 Jul 2021 02:06:24 +0000</pubDate>
				<category><![CDATA[電腦相關應用]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<guid isPermaLink="false">https://stackoverflow.max-everyday.com/?p=3854</guid>

					<description><![CDATA[由於想在 macOS 裡操作Ubuntu 所以安...]]></description>
										<content:encoded><![CDATA[
<p>由於想在 macOS 裡操作Ubuntu 所以安裝了一個 VM, 但一開始給的容量太小，只設了 9GB，用了一陣子之後就滿了，很多的系統異常都跑出來，很花時間，所以需要 resize partition。</p>



<p>一開始直接 resize VirtualBox 的硬碟，會出現錯誤：</p>



<p>Failed to resize the storage unit of the hard disk xxxx.vdi from x.xx GB to z.zz GB.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="712" src="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-13-at-10.47.12-AM-1024x712.jpg?v=1626227487" alt="" class="wp-image-3857" srcset="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-13-at-10.47.12-AM-1024x712.jpg?v=1626227487 1024w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-13-at-10.47.12-AM-600x417.jpg?v=1626227487 600w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-13-at-10.47.12-AM-768x534.jpg?v=1626227487 768w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-13-at-10.47.12-AM.jpg?v=1626227487 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>這個解法很簡單：</p>



<ul class="wp-block-list"><li>點舊的 Hard disks 的 VDI 檔案。</li><li>點上方 toolbar 裡的 copy 功能。</li><li>新產生的 VDI 的 size 可以在下方調整，最後按下 Apply就可以解決。</li></ul>



<figure class="wp-block-image size-full"><img decoding="async" width="1200" height="834" src="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-13-at-11.16.13-AM.jpg?v=1626227748" alt="" class="wp-image-3858" srcset="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-13-at-11.16.13-AM.jpg?v=1626227748 1200w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-13-at-11.16.13-AM-600x417.jpg?v=1626227748 600w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-13-at-11.16.13-AM-1024x712.jpg?v=1626227748 1024w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-13-at-11.16.13-AM-768x534.jpg?v=1626227748 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<hr class="wp-block-separator"/>



<p>虛擬的硬碟設定完成之後，就是在 OS 裡調整 partition 大小。</p>



<h2 class="wp-block-heading">Resize a filesystem/partition</h2>



<ul class="wp-block-list"><li>開啟 Disks 的程式。<br>Open <em>Disks</em> from the Activities overview.</li><li>點硬碟.<br>Select the disk containing the filesystem in question from the list of storage devices on the left. If there is more than one volume on the disk, select the volume which contains the filesystem.</li><li>選單「齒輪」裡點「Resize&#8230;」<br>In the toolbar underneath the Volumes section, click the menu button. Then click Resize Filesystem… or Resize… if there is no filesystem.</li></ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1200" height="782" src="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.37.23-AM.jpg?v=1626228058" alt="" class="wp-image-3859" srcset="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.37.23-AM.jpg?v=1626228058 1200w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.37.23-AM-600x391.jpg?v=1626228058 600w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.37.23-AM-1024x667.jpg?v=1626228058 1024w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.37.23-AM-768x500.jpg?v=1626228058 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<ul class="wp-block-list"><li>調整為想要的大小後，按右上角的 Resize 按鈕。<br>A dialog will open where the new size can be chosen. The filesystem will be mounted to calculate the minimum size by the amount of current content. If shrinking is not supported the minimum size is the current size. Leave enough space within the filesystem when shrinking to ensure that it can work fast and reliably.Depending on how much data has to be moved from the shrunk part, the filesystem resize may take longer time.The filesystem resize automatically involves repairing of the filesystem. Therefore it is advised to back up important data before starting. The action must not be stopped or it will result in a damaged filesystem.</li></ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1200" height="782" src="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.37.41-AM.jpg?v=1626228164" alt="" class="wp-image-3860" srcset="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.37.41-AM.jpg?v=1626228164 1200w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.37.41-AM-600x391.jpg?v=1626228164 600w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.37.41-AM-1024x667.jpg?v=1626228164 1024w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.37.41-AM-768x500.jpg?v=1626228164 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<ul class="wp-block-list"><li>Confirm to start the action by clicking Resize.The action will unmount the filesystem if resizing a mounted filesystem is not supported. Be patient while the filesystem is resized.</li><li>After completion of the needed resize and repair actions the filesystem is ready to be used again.</li></ul>



<p>要調整 2次，分別是較高的 Extended Partition 和較低的 Filesystem 各 resize 一次，Ubuntu 的系統就變正常了。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1200" height="782" src="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.38.28-AM.jpg?v=1626228228" alt="" class="wp-image-3861" srcset="https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.38.28-AM.jpg?v=1626228228 1200w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.38.28-AM-600x391.jpg?v=1626228228 600w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.38.28-AM-1024x667.jpg?v=1626228228 1024w, https://stackoverflow.max-everyday.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-14-at-9.38.28-AM-768x500.jpg?v=1626228228 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://stackoverflow.max-everyday.com/2021/07/ubuntu-partition-resize/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>FIX: Oracle VirtualBox Mac installation failed</title>
		<link>https://stackoverflow.max-everyday.com/2020/11/fix-oracle-virtualbox-mac-installation-failed/</link>
					<comments>https://stackoverflow.max-everyday.com/2020/11/fix-oracle-virtualbox-mac-installation-failed/#respond</comments>
		
		<dc:creator><![CDATA[max-stackoverflow]]></dc:creator>
		<pubDate>Fri, 27 Nov 2020 22:59:01 +0000</pubDate>
				<category><![CDATA[電腦相關應用]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<guid isPermaLink="false">http://stackoverflow.max-everyday.com/?p=3615</guid>

					<description><![CDATA[不知道為什麼VirtualBox 無法安裝，顯示...]]></description>
										<content:encoded><![CDATA[
<p>不知道為什麼VirtualBox 無法安裝，顯示 installation failed</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="769" src="https://stackoverflow.max-everyday.com/wp-content/uploads/2020/11/Screen-Shot-2020-11-28-at-06.50.36-1024x769.png?v=1606517550" alt="" class="wp-image-3616" srcset="https://stackoverflow.max-everyday.com/wp-content/uploads/2020/11/Screen-Shot-2020-11-28-at-06.50.36-1024x769.png?v=1606517550 1024w, https://stackoverflow.max-everyday.com/wp-content/uploads/2020/11/Screen-Shot-2020-11-28-at-06.50.36-600x451.png?v=1606517550 600w, https://stackoverflow.max-everyday.com/wp-content/uploads/2020/11/Screen-Shot-2020-11-28-at-06.50.36-768x577.png?v=1606517550 768w, https://stackoverflow.max-everyday.com/wp-content/uploads/2020/11/Screen-Shot-2020-11-28-at-06.50.36.png?v=1606517550 1464w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>原來是被 macOS 給擋掉 @_@；解法是在 Security &amp; Privacy 裡，先點鎖頭圖示(Click the lock to make changes) 再點畫面上的 「Allow」</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="780" height="685" src="https://stackoverflow.max-everyday.com/wp-content/uploads/2020/11/Screen-Shot-2020-11-28-at-06.50.20.png" alt="" class="wp-image-3617" srcset="https://stackoverflow.max-everyday.com/wp-content/uploads/2020/11/Screen-Shot-2020-11-28-at-06.50.20.png?v=1606517877 780w, https://stackoverflow.max-everyday.com/wp-content/uploads/2020/11/Screen-Shot-2020-11-28-at-06.50.20-600x527.png?v=1606517877 600w, https://stackoverflow.max-everyday.com/wp-content/uploads/2020/11/Screen-Shot-2020-11-28-at-06.50.20-768x674.png?v=1606517877 768w" sizes="(max-width: 780px) 100vw, 780px" /></figure>



<p>Allow 之後就可以正常安裝 VirtualBox 了，怪怪的，什麼時候多了這一個安全性的設定。</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://stackoverflow.max-everyday.com/2020/11/fix-oracle-virtualbox-mac-installation-failed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>macOS 10.14.5 virtualBox 「kernel driver not installed」對策</title>
		<link>https://stackoverflow.max-everyday.com/2019/05/macos-10-14-5-virtualbox-kernel-driver-not-installed/</link>
					<comments>https://stackoverflow.max-everyday.com/2019/05/macos-10-14-5-virtualbox-kernel-driver-not-installed/#comments</comments>
		
		<dc:creator><![CDATA[max-stackoverflow]]></dc:creator>
		<pubDate>Wed, 22 May 2019 21:32:31 +0000</pubDate>
				<category><![CDATA[電腦相關應用]]></category>
		<category><![CDATA[macOS]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<guid isPermaLink="false">http://stackoverflow.max-everyday.com/?p=2816</guid>

					<description><![CDATA[在升級 mac OS X 到 10.14.5 之...]]></description>
										<content:encoded><![CDATA[
<p>在升級 mac OS X 到 10.14.5 之後，virtualbox 就壞掉了，即使安裝了最新版本的6.0.8 也是一樣顯示錯誤訊息：</p>



<pre class="wp-block-preformatted"> Kernel driver not installed (rc=-1908)

Make sure the kernel module has been loaded successfully.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.</pre>



<hr class="wp-block-separator"/>



<h4 class="wp-block-heading">環境：</h4>



<pre class="wp-block-preformatted">MacBookPro<br>macOS 10.14.5 Mojave</pre>



<h4 class="wp-block-heading">解法：</h4>



<ul class="wp-block-list"><li>重啟你的Mac。</li><li>進入「安全模式」。 （⌘ Command鍵 + R）</li><li>從上面選單欄啟動「終端機」(Terminal)。</li><li>在終端機中輸入以下指令：</li></ul>



<pre class="wp-block-preformatted">spctl kext-consent add VB5E2TV963
reboot</pre>



<h4 class="wp-block-heading">畫面示範：</h4>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1024" height="768" src="https://stackoverflow.max-everyday.com/wp-content/uploads/2019/05/13118-1024x768.jpg" alt="" class="wp-image-2818" srcset="https://stackoverflow.max-everyday.com/wp-content/uploads/2019/05/13118-1024x768.jpg 1024w, https://stackoverflow.max-everyday.com/wp-content/uploads/2019/05/13118-600x450.jpg 600w, https://stackoverflow.max-everyday.com/wp-content/uploads/2019/05/13118-768x576.jpg 768w, https://stackoverflow.max-everyday.com/wp-content/uploads/2019/05/13118.jpg 1477w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://stackoverflow.max-everyday.com/2019/05/macos-10-14-5-virtualbox-kernel-driver-not-installed/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
