<?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; 编码无悔 /  Intent &amp; Focused</title>
	<atom:link href="https://www.codelast.com/tag/virtualbox/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.codelast.com</link>
	<description>最优化之路</description>
	<lastBuildDate>Mon, 18 Oct 2021 18:29:28 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>[原创] 扩展VirtualBox虚拟机的磁盘空间(vdi文件)</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e6%89%a9%e5%b1%95virtualbox%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e7%a3%81%e7%9b%98%e7%a9%ba%e9%97%b4vdi%e6%96%87%e4%bb%b6/</link>
					<comments>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e6%89%a9%e5%b1%95virtualbox%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e7%a3%81%e7%9b%98%e7%a9%ba%e9%97%b4vdi%e6%96%87%e4%bb%b6/#respond</comments>
		
		<dc:creator><![CDATA[learnhard]]></dc:creator>
		<pubDate>Mon, 18 Oct 2021 18:14:03 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[原创]]></category>
		<category><![CDATA[GParted]]></category>
		<category><![CDATA[vdi]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[扩展空间]]></category>
		<guid isPermaLink="false">https://www.codelast.com/?p=13346</guid>

					<description><![CDATA[<p>宿主机：Ubuntu 16.04 LTS<br />
虚拟机：Windows 10</p>
<p>VirtualBox虚拟机文件有很多种格式，我的是vdi格式，对应的磁盘空间是37GB（Win10系统里只有一个C盘），由于虚拟机里的空间不够用了，想把它扩展成45GB，并且在数据不丢失的情况下仍然保持&#8220;只有一个C盘&#8221;的状态。<br />
下面是操作方法。<br />
<span id="more-13346"></span><br />
<span style="color:#ff0000;">➤</span> 扩大vdi空间<br />
在宿主机的命令行执行命令：</p>
<blockquote>
<div>
		[codelast@ win10.new]$ <span style="color:#0000ff;">sudo VBoxManage modifyhd win10.vdi --resize 46080</span></div>
<div>
		0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%</div>
</blockquote>
<div>
	其中，46080 的单位是MB。这样，vdi 文件对应的虚拟机的磁盘空间就被扩展成了 45GB，但是从 37GB&#160;&#8594; 45GB，多出来的 8GB <span style="color:#ff0000;">仍然是不可用的</span>。<br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	我们可以进入虚拟机的系统验证这一点。在虚拟机里用快捷键 Win+R 打开运行命令对话框，输入&#160;<span style="color:#0000ff;">diskmgmt.msc</span> 并回车，会打开Windows的&#8220;磁盘管理&#8221;软件，在里面我们会看到：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_01.png" style="width: 750px; height: 569px;" /></a><br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	可见那8GB是&#8220;未分配&#8221;状态，如果要把它合并到原先的37GB里，并且不破坏已安装好的Win10的话，需要用GParted软件来合并扩展空间（如果你不需要合并在一起，只需要把新增的8GB创建成另一个分区，那么就简单得多，不需要用本文的方法）。
<p>	首先到<a href="https://gparted.org/" rel="noopener" target="_blank"><span style="background-color:#faebd7;">GParted官网</span></a>下载GParted ISO镜像文件（gparted-xxx.iso）。</p></div>&#8230; <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e6%89%a9%e5%b1%95virtualbox%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e7%a3%81%e7%9b%98%e7%a9%ba%e9%97%b4vdi%e6%96%87%e4%bb%b6/" class="read-more">Read More </a>]]></description>
										<content:encoded><![CDATA[<p>宿主机：Ubuntu 16.04 LTS<br />
虚拟机：Windows 10</p>
<p>VirtualBox虚拟机文件有很多种格式，我的是vdi格式，对应的磁盘空间是37GB（Win10系统里只有一个C盘），由于虚拟机里的空间不够用了，想把它扩展成45GB，并且在数据不丢失的情况下仍然保持&ldquo;只有一个C盘&rdquo;的状态。<br />
下面是操作方法。<br />
<span id="more-13346"></span><br />
<span style="color:#ff0000;">➤</span> 扩大vdi空间<br />
在宿主机的命令行执行命令：</p>
<blockquote>
<div>
		[codelast@ win10.new]$ <span style="color:#0000ff;">sudo VBoxManage modifyhd win10.vdi --resize 46080</span></div>
<div>
		0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%</div>
</blockquote>
<div>
	其中，46080 的单位是MB。这样，vdi 文件对应的虚拟机的磁盘空间就被扩展成了 45GB，但是从 37GB&nbsp;&rarr; 45GB，多出来的 8GB <span style="color:#ff0000;">仍然是不可用的</span>。<br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	我们可以进入虚拟机的系统验证这一点。在虚拟机里用快捷键 Win+R 打开运行命令对话框，输入&nbsp;<span style="color:#0000ff;">diskmgmt.msc</span> 并回车，会打开Windows的&ldquo;磁盘管理&rdquo;软件，在里面我们会看到：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_01.png" style="width: 750px; height: 569px;" /></a><br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	可见那8GB是&ldquo;未分配&rdquo;状态，如果要把它合并到原先的37GB里，并且不破坏已安装好的Win10的话，需要用GParted软件来合并扩展空间（如果你不需要合并在一起，只需要把新增的8GB创建成另一个分区，那么就简单得多，不需要用本文的方法）。</p>
<p>	首先到<a href="https://gparted.org/" rel="noopener" target="_blank"><span style="background-color:#faebd7;">GParted官网</span></a>下载GParted ISO镜像文件（gparted-xxx.iso）。<br />
	<span style="color:#ff0000;">➤</span> 把GParted ISO以光盘的形式挂载到虚拟机系统上<br />
	打开VirtualBox，在该虚拟机的&ldquo;存储&rdquo;设置页面上，你会看到一个 *.vdi&nbsp;的虚拟机文件，对应的就是虚拟机里看到的磁盘：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_02.png" style="width: 670px; height: 573px;" /></a><br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	点击&ldquo;控制器: SATA&rdquo;右侧的光盘加号按钮，弹出下面的对话框：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_03.png" style="width: 640px; height: 388px;" /></a><br />
	点击左上方的&ldquo;注册&rdquo;按钮选择本地磁盘上的GParted ISO文件，会像上图一样显示在列表中。<br />
	继续点击&ldquo;选择&rdquo;按钮，会看到ISO已经成功挂载了：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_04.png" style="width: 670px; height: 573px;" /></a><br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	<span style="color: rgb(255, 0, 0);">➤</span>&nbsp;重启虚拟机进入GParted软件<br />
	在虚拟机的&ldquo;系统&rdquo;设置页面上，把&ldquo;光驱&rdquo;调整成启动顺序的第一项：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_05.png" style="width: 670px; height: 573px;" /></a><br />
	这样开机才能先打开GParted，而不是进入安装过的那个Windows系统。<br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	设置好后重启虚拟机，可以成功进入GParted：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_06.jpg" style="width: 670px; height: 573px;" /></a><br />
	回车进入列表的第一项。<br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	<span style="color: rgb(255, 0, 0);">➤</span>&nbsp;使用GParted调整分区大小<br />
	打开GParted，在其界面上可看到 8GB&nbsp;的未分配空间：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_07.png" style="width: 770px; height: 517px;" /></a><br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	选中 /dev/sda1&nbsp;那个需要扩大的分区，点击工具栏的&ldquo;Resize/Move&rdquo;按钮，会弹出一个对话框：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_08.png" style="width: 773px; height: 518px;" /></a><br />
	你不需要输入具体的数值，只需要用鼠标拖拽绿色方框的右边，把它拉到最右，就可以把空间扩到最大。<br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	点击&ldquo;Resize/Move&rdquo;按钮会看到空间已经被扩大了：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_09.png" style="width: 772px; height: 517px;" /></a><br />
	但是注意：现在只是临时状态，必须要点击工具栏上的&ldquo;应用&rdquo;按钮，才能真正让扩大分区的操作开始执行：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_10.png" style="width: 771px; height: 517px;" /></a><br />
	待操作完成后，Windows C盘就成功地从37GB变成了45GB，并且C盘上原来的数据不会丢失。</p>
<p>	<span style="color: rgb(255, 0, 0);">➤</span>&nbsp;验证结果<br />
	在虚拟机设置中，把光驱从启动项中移除（防止再次进入GParted），再重启虚拟机，查看Windows系统的C盘大小，就会发现成功了：<br />
	<a href="https://www.codelast.com/" rel="noopener" target="_blank"><img decoding="async" alt="" src="https://www.codelast.com/wp-content/uploads/2021/10/enlarge_virtualbox_vdi_space_11.png" style="width: 264px; height: 74px;" /></a><br />
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	<span style="color: rgb(255, 0, 0);">➤➤</span>&nbsp;版权声明&nbsp;<span style="color: rgb(255, 0, 0);">➤➤</span>&nbsp;<br />
	转载需注明出处：<u><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><em><span style="color: rgb(0, 0, 255);"><strong style="font-size: 16px;"><span style="font-family: arial, helvetica, sans-serif;">codelast.com</span></strong></span></em></a></u>&nbsp;<br />
	感谢关注我的微信公众号（微信扫一扫）：</p>
<p style="border: 0px; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 0px; color: rgb(77, 77, 77);">
		<img decoding="async" alt="wechat qrcode of codelast" src="https://www.codelast.com/codelast_wechat_qr_code.jpg" style="width: 200px; height: 200px;" /></p>
<p>
	&nbsp;</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e6%89%a9%e5%b1%95virtualbox%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e7%a3%81%e7%9b%98%e7%a9%ba%e9%97%b4vdi%e6%96%87%e4%bb%b6/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>[原创] 如何在Ubuntu下的VirtualBox虚拟机（Windows XP）里挂载/使用U盘</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu%e4%b8%8b%e7%9a%84virtualbox%e8%99%9a%e6%8b%9f%e6%9c%ba%ef%bc%88windows-xp%ef%bc%89%e9%87%8c%e6%8c%82%e8%bd%bd%e4%bd%bf%e7%94%a8u%e7%9b%98/</link>
					<comments>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu%e4%b8%8b%e7%9a%84virtualbox%e8%99%9a%e6%8b%9f%e6%9c%ba%ef%bc%88windows-xp%ef%bc%89%e9%87%8c%e6%8c%82%e8%bd%bd%e4%bd%bf%e7%94%a8u%e7%9b%98/#respond</comments>
		
		<dc:creator><![CDATA[learnhard]]></dc:creator>
		<pubDate>Sun, 23 Mar 2014 08:20:13 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[原创]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[U盘]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[优盘]]></category>
		<category><![CDATA[使用]]></category>
		<category><![CDATA[找不到U盘]]></category>
		<category><![CDATA[挂载]]></category>
		<category><![CDATA[虚拟机]]></category>
		<guid isPermaLink="false">http://www.codelast.com/?p=7952</guid>

					<description><![CDATA[<p>
在Ubuntu下安装了VirtualBox之后，如果你的虚拟机安装的是Windows XP系统，那么，你会发现，当你插上U盘时，无论你怎么折腾，虚拟机（XP）里都是没有任何反应的，既不提示找到新硬件，也看不到U盘的分区。<br />
不像VMware，默认安装之后对U盘的支持很好，根本不需要用户去配置什么东西。从这一点上，我觉得VirtualBox太龌龊了，小而美归小而美，但是你不能把最常用的功能放在基础支持列表之外，还要用户去配置才能用，不是么？</p>
<p>下面就教你如何能让VirtualBox的虚拟机（XP）找到U盘并挂载上。宿主机系统是Ubuntu。实话说，网上的很多文章写得实在让人很无语，要么简略得太夸张，要么连中文都写得不通顺（负点责任行吗），我实在是看不下去了，所以在研究出来怎么做之后，我决定要把这么简单的一件事情写成教程，帮助有需要的人。<br />
<span id="more-7952"></span><br />
<span style="background-color:#00ff00;">『1』</span>关于Guest Additions<br />
VirtualBox带有一个叫Guest Additions的东西，可以在VirtualBox的菜单里为虚拟机安装上（一点击，在XP中就会弹出软件安装界面）。后面的步骤是否依赖Guest Additions，我<span style="color:#0000ff;">不确定</span>，因此，建议你安装上。<br />
<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="http://www.codelast.com/" target="_blank" rel="noopener noreferrer"><span style="color: rgb(255, 255, 255);">http://www.codelast.com/</span></a><br />
<span style="background-color:#00ff00;">『2』</span>U盘的支持在哪里<br />
你一定想不到，默认安装的VirtualBox，竟然是没有USB设备支持功能的！你必须要去它的官网下载另一个&#8220;扩展包&#8221;（Oracle VM VirtualBox Extension Pack），才能让VirtualBox支持！如前所述，我觉得这一点非常让人无语。<br />
下载地址在VirtualBox官网可以找到。在我写这篇文章的时候，我下载的版本是&#160;<strong>VirtualBox 4.3.8 Oracle VM VirtualBox Extension Pack</strong>，文件名为&#160;Oracle_VM_VirtualBox_Extension_Pack-4.3.8-92456.vbox-extpack，双击它进行安装（前提是你已经安装过了VirtualBox软件，否则双击它是没用的）。<br />
双击时，会弹出类似于下面的对话框：</p>
<div style="text-align: center;">
	<img decoding="async" alt="" src="http://www.codelast.com/wp-content/uploads/ckfinder/images/virtualbox_extension_pack_install.jpg" style="width: 439px; height: 245px;" /></div>
<p>点击&#8220;安装&#8221;，毫无疑问。</p>
<p><span style="background-color:#00ff00;">『3』</span>添加用户组<br />
在Ubuntu命令行下，执行如下命令：</p>
<pre class="brush:shell;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
sudo adduser your_user_name vboxusers
</pre>
<p>其中，your_user_name 是你用来运行VirtualBox的Linux用户名，你要根据实际情况更改。</p>
<p><span style="background-color:#00ff00;">『4』</span>重启宿主机<br />
是的，重启宿主机。貌似注销也行，但是不要去猜和尝试了，重启宿主机是一定有效的。<br />
<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="http://www.codelast.com/" target="_blank" rel="noopener noreferrer"><span style="color: rgb(255, 255, 255);">http://www.codelast.com/</span></a>&#8230; <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu%e4%b8%8b%e7%9a%84virtualbox%e8%99%9a%e6%8b%9f%e6%9c%ba%ef%bc%88windows-xp%ef%bc%89%e9%87%8c%e6%8c%82%e8%bd%bd%e4%bd%bf%e7%94%a8u%e7%9b%98/" class="read-more">Read More </a></p>]]></description>
										<content:encoded><![CDATA[<p>
在Ubuntu下安装了VirtualBox之后，如果你的虚拟机安装的是Windows XP系统，那么，你会发现，当你插上U盘时，无论你怎么折腾，虚拟机（XP）里都是没有任何反应的，既不提示找到新硬件，也看不到U盘的分区。<br />
不像VMware，默认安装之后对U盘的支持很好，根本不需要用户去配置什么东西。从这一点上，我觉得VirtualBox太龌龊了，小而美归小而美，但是你不能把最常用的功能放在基础支持列表之外，还要用户去配置才能用，不是么？</p>
<p>下面就教你如何能让VirtualBox的虚拟机（XP）找到U盘并挂载上。宿主机系统是Ubuntu。实话说，网上的很多文章写得实在让人很无语，要么简略得太夸张，要么连中文都写得不通顺（负点责任行吗），我实在是看不下去了，所以在研究出来怎么做之后，我决定要把这么简单的一件事情写成教程，帮助有需要的人。<br />
<span id="more-7952"></span><br />
<span style="background-color:#00ff00;">『1』</span>关于Guest Additions<br />
VirtualBox带有一个叫Guest Additions的东西，可以在VirtualBox的菜单里为虚拟机安装上（一点击，在XP中就会弹出软件安装界面）。后面的步骤是否依赖Guest Additions，我<span style="color:#0000ff;">不确定</span>，因此，建议你安装上。<br />
<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="http://www.codelast.com/" target="_blank" rel="noopener noreferrer"><span style="color: rgb(255, 255, 255);">http://www.codelast.com/</span></a><br />
<span style="background-color:#00ff00;">『2』</span>U盘的支持在哪里<br />
你一定想不到，默认安装的VirtualBox，竟然是没有USB设备支持功能的！你必须要去它的官网下载另一个&ldquo;扩展包&rdquo;（Oracle VM VirtualBox Extension Pack），才能让VirtualBox支持！如前所述，我觉得这一点非常让人无语。<br />
下载地址在VirtualBox官网可以找到。在我写这篇文章的时候，我下载的版本是&nbsp;<strong>VirtualBox 4.3.8 Oracle VM VirtualBox Extension Pack</strong>，文件名为&nbsp;Oracle_VM_VirtualBox_Extension_Pack-4.3.8-92456.vbox-extpack，双击它进行安装（前提是你已经安装过了VirtualBox软件，否则双击它是没用的）。<br />
双击时，会弹出类似于下面的对话框：</p>
<div style="text-align: center;">
	<img decoding="async" alt="" src="http://www.codelast.com/wp-content/uploads/ckfinder/images/virtualbox_extension_pack_install.jpg" style="width: 439px; height: 245px;" /></div>
<p>点击&ldquo;安装&rdquo;，毫无疑问。</p>
<p><span style="background-color:#00ff00;">『3』</span>添加用户组<br />
在Ubuntu命令行下，执行如下命令：</p>
<pre class="brush:shell;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
sudo adduser your_user_name vboxusers
</pre>
<p>其中，your_user_name 是你用来运行VirtualBox的Linux用户名，你要根据实际情况更改。</p>
<p><span style="background-color:#00ff00;">『4』</span>重启宿主机<br />
是的，重启宿主机。貌似注销也行，但是不要去猜和尝试了，重启宿主机是一定有效的。<br />
<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="http://www.codelast.com/" target="_blank" rel="noopener noreferrer"><span style="color: rgb(255, 255, 255);">http://www.codelast.com/</span></a><br />
<span style="background-color:#00ff00;">『5』</span>挂载U盘<br />
重启宿主机后，先插上U盘，再启动虚拟机（XP），点击此虚拟机的VirtualBox菜单：<span style="color:#0000ff;">设备</span>&rarr;<span style="color:#0000ff;">分配USB设备</span>，在列出的USB设备列表中找到你的U盘名字，点击。然后虚拟机（XP）里应该就会出现找到新硬件的提示了。<br />
如若不行，你可能需要在VirtualBox的全局设置中的&ldquo;<span style="color:#0000ff;">USB设备</span>&rdquo;设置里，将&ldquo;<span style="color:#0000ff;">启用USB2.0（EHCI）控制器</span>&rdquo;选中，再重启虚拟机试试。</p>
<p><span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
<span style="color: rgb(255, 0, 0);">➤➤</span>&nbsp;版权声明&nbsp;<span style="color: rgb(255, 0, 0);">➤➤</span>&nbsp;<br />
转载需注明出处：<u><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><em><span style="color: rgb(0, 0, 255);"><strong style="font-size: 16px;"><span style="font-family: arial, helvetica, sans-serif;">codelast.com</span></strong></span></em></a></u>&nbsp;<br />
感谢关注我的微信公众号（微信扫一扫）：</p>
<p style="border: 0px; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 0px; color: rgb(77, 77, 77);">
	<img decoding="async" alt="wechat qrcode of codelast" src="https://www.codelast.com/codelast_wechat_qr_code.jpg" style="width: 200px; height: 200px;" /></p>

			<!--[syntaxhighlighter]-->
			<!--代码高亮，请勿编辑-->
			<script type="text/javascript" src="https://www.codelast.com/wp-content/plugins/ck-and-syntaxhighlighter/syntaxhighlighter/scripts/shCore.js"></script><script type="text/javascript" src="https://www.codelast.com/wp-content/plugins/ck-and-syntaxhighlighter/syntaxhighlighter/scripts/shBrushShell.js"></script>

			<link type="text/css" rel="stylesheet" href="https://www.codelast.com/wp-content/plugins/ck-and-syntaxhighlighter/syntaxhighlighter/styles/shCoreCk.css" />
			<link type="text/css" rel="stylesheet" href="https://www.codelast.com/wp-content/plugins/ck-and-syntaxhighlighter/syntaxhighlighter/styles/shThemeCk.css" />
			<script type="text/javascript">
			SyntaxHighlighter.defaults['class-name']	= '';
			SyntaxHighlighter.defaults['smart-tabs']	= true;
			SyntaxHighlighter.defaults['tab-size']		= 2;
			SyntaxHighlighter.defaults['gutter']		= true;
			SyntaxHighlighter.defaults['quick-code']	= true;
			SyntaxHighlighter.defaults['collapse'] 		= false;
			SyntaxHighlighter.defaults['auto-links']	= true;
			SyntaxHighlighter.defaults['toolbar']		= true;
			SyntaxHighlighter.all();
			</script>
			<!--[/syntaxhighlighter]-->]]></content:encoded>
					
					<wfw:commentRss>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu%e4%b8%8b%e7%9a%84virtualbox%e8%99%9a%e6%8b%9f%e6%9c%ba%ef%bc%88windows-xp%ef%bc%89%e9%87%8c%e6%8c%82%e8%bd%bd%e4%bd%bf%e7%94%a8u%e7%9b%98/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
