<?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>虚拟机 &#8211; 老丁的博客</title>
	<atom:link href="https://www.laoding.me/archives/tag/%E8%99%9A%E6%8B%9F%E6%9C%BA/feed" rel="self" type="application/rss+xml" />
	<link>https://www.laoding.me</link>
	<description></description>
	<lastBuildDate>Wed, 02 Oct 2024 06:06:40 +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>

<image>
	<url>https://public-123.oss-cn-guangzhou.aliyuncs.com/2024/09/cropped-图片_20240927133356-768x768-1-32x32.jpg</url>
	<title>虚拟机 &#8211; 老丁的博客</title>
	<link>https://www.laoding.me</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>windows虚拟机中Ubuntu系统共享挂载</title>
		<link>https://www.laoding.me/archives/639</link>
					<comments>https://www.laoding.me/archives/639#respond</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Wed, 02 Oct 2024 06:06:40 +0000</pubDate>
				<category><![CDATA[办公网络]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[虚拟机]]></category>
		<guid isPermaLink="false">https://www.laoding.me/?p=639</guid>

					<description><![CDATA[1、虚拟机设置 共享目录C:\Users\sz\VirtualBox VMs\share 2、Ubuntu中运 [&#8230;]]]></description>
										<content:encoded><![CDATA[<h3>1、虚拟机设置</h3>
<p><img decoding="async" src="https://www.laoding.me/wp-content/media/202404/12_1712991523.jpg" alt="" /><br />
共享目录<code>C:\Users\sz\VirtualBox VMs\share</code></p>
<h3>2、Ubuntu中运行挂载命令</h3>
<pre><code class="language-c">sudo mkdir /media/share</code></pre>
<pre><code class="language-c">sudo mount -t vboxsf share /media/share</code></pre>
<p><img decoding="async" src="https://www.laoding.me/wp-content/media/202404/13_1712991711.jpg" alt="" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/639/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>VMware ubuntu虚拟机怎么设置分辨率</title>
		<link>https://www.laoding.me/archives/629</link>
					<comments>https://www.laoding.me/archives/629#respond</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Wed, 02 Oct 2024 05:47:52 +0000</pubDate>
				<category><![CDATA[办公网络]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[虚拟机]]></category>
		<guid isPermaLink="false">https://www.laoding.me/?p=629</guid>

					<description><![CDATA[1. VMware工具安装 VMware Tools 是一套可以提高虚拟机客户机性能并增强与宿主机交互功能的软 [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2>1. VMware工具安装</h2>
<p>VMware Tools 是一套可以提高虚拟机客户机性能并增强与宿主机交互功能的软件套件。其中包括了一个叫<code>vmxnet</code>的驱动，它能够使得虚拟机内的操作系统自动识别宿主机器的屏幕分辨率，并且能够在全屏模式下自适应改变大小。</p>
<pre><code>sudo apt-get update</code></pre>
<pre><code>sudo apt-get upgrade</code></pre>
<pre><code>sudo apt-get install open-vm-tools-desktop</code></pre>
<pre><code>reboot</code></pre>
<p><strong>注意</strong>：如果上述命令执行后，还是无法实现全屏或者大屏显示，那么需要进行下面的手动设置。</p>
<h2>2. 手动设置分辨率</h2>
<p>如果使用 VMware Tools 自动设置分辨率无效，你可以手动设置分辨率。步骤如下：</p>
<h4>2.1 获取可用分辨率</h4>
<p>首先，我们需要知道哪些分辨率可用。我们可以通过下面的命令来查看：</p>
<pre><code>xrandr</code></pre>
<p>这个命令将显示所有可用的分辨率。在输出中，你会看到像这样的信息：</p>
<pre><code>Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0* 
   800x600        60.3     56.2  
   848x480        60.0  
   640x480        59.9  </code></pre>
<h4>2.2 添加新的分辨率</h4>
<p>如果你需要的分辨率不在列表中，你可以添加一个新的分辨率。下面的命令演示如何添加1920&#215;1080的分辨率：</p>
<pre><code>xrandr --newmode &quot;1920x1080_60.00&quot;  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync</code></pre>
<pre><code>xrandr --addmode Virtual1 1920x1080_60.00</code></pre>
<h4>2.3 应用新的分辨率</h4>
<p>要应用新的分辨率，只需执行以下命令：</p>
<pre><code>xrandr --output Virtual1 --mode 1920x1080_60.00</code></pre>
<h2>3. 持久化设置</h2>
<p>完成以上步骤后，你的分辨率应该已经成功更改。但是，当你重启虚拟机时，这些更改可能会失效。为了解决这个问题，你需要创建一个脚本，在每次启动时运行，以应用新的分辨率。</p>
<p>你可以在你的主目录中创建一个名为<code>.xprofile</code>的文件，然后添加以下内容：</p>
<pre><code>#!/bin/sh
xrandr --newmode &quot;1920x1080_60.00&quot;  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 1920x1080_60.00
xrandr --output Virtual1 --mode 1920x1080_60.00</code></pre>
<p>确保此文件具有执行权限：</p>
<pre><code>chmod +x ~/.xprofile</code></pre>
<hr />
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/629/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
