<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>wolfg&#039;s Weblog &#187; gparted</title>
	<atom:link href="http://guoyong.me/tag/gparted/feed/" rel="self" type="application/rss+xml" />
	<link>http://guoyong.me</link>
	<description>wolfg&#039;s journey with open source, linux, programming, sysadm ...</description>
	<lastBuildDate>Wed, 04 Apr 2012 12:42:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/cn/</creativeCommons:license>		<item>
		<title>给虚拟机的虚拟硬盘增加容量(vmdk file)</title>
		<link>http://guoyong.me/linux/using-ubuntu-desktop/%e7%bb%99%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e8%99%9a%e6%8b%9f%e7%a1%ac%e7%9b%98%e5%a2%9e%e5%8a%a0%e5%ae%b9%e9%87%8fvmdk-file/</link>
		<comments>http://guoyong.me/linux/using-ubuntu-desktop/%e7%bb%99%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e8%99%9a%e6%8b%9f%e7%a1%ac%e7%9b%98%e5%a2%9e%e5%8a%a0%e5%ae%b9%e9%87%8fvmdk-file/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 09:56:03 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[Using Desktop]]></category>
		<category><![CDATA[gparted]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[vmdk]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmware-player]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=576</guid>
		<description><![CDATA[我使用虚拟机主要是为了使用Windows XP系统来访问网银、进行在线支付。当初安装时是用VMWare Player的，后来换成了VirtualBox 3。Windows XP越来越臃肿，虚拟机硬盘空间不够了。在网上搜索后找到了增加虚拟硬盘容量的方法：使用QEMN和GParted，不用安装“庞大”的VMWare软件。特别说明一下最初创建虚拟硬盘时也是使用的QEMU工具。 具体步骤如下： 1. VMDK格式转成RAW格式 $ qemu-img convert -f vmdk winxp.vmdk -O raw winxp.raw 2. 新建一个RAW格式的文件，后面会用到 $ qemu-img create -f raw temp.img 512M 3. 用cat命令把temp.img多次追加到winxp.raw文件后，达到扩容的目的。 $ cat winxp.raw temp.img temp.img temp.img temp.img temp.img temp.img temp.img temp.img &#62; &#8230; <a href="http://guoyong.me/linux/using-ubuntu-desktop/%e7%bb%99%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e8%99%9a%e6%8b%9f%e7%a1%ac%e7%9b%98%e5%a2%9e%e5%8a%a0%e5%ae%b9%e9%87%8fvmdk-file/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>我使用虚拟机主要是为了使用Windows XP系统来访问网银、进行在线支付。当初安装时是用VMWare Player的，后来换成了VirtualBox 3。Windows XP越来越臃肿，虚拟机硬盘空间不够了。在网上搜索后找到了增加虚拟硬盘容量的方法：使用<a href="http://wiki.qemu.org/Main_Page">QEMN</a>和<a href="http://gparted.sourceforge.net/">GParted</a>，不用安装“庞大”的VMWare软件。特别说明一下最初创建虚拟硬盘时也是使用的QEMU工具。</p>
<p>具体步骤如下：<br />
1. VMDK格式转成RAW格式</p>
<div class="hl-surround"><div class="hl-main">$ qemu-img convert -f vmdk winxp.vmdk -O raw winxp.raw</div></div>
<p>2. 新建一个RAW格式的文件，后面会用到</p>
<div class="hl-surround"><div class="hl-main">$ qemu-img create -f raw temp.img 512M</div></div>
<p>3. 用cat命令把temp.img多次追加到winxp.raw文件后，达到扩容的目的。</p>
<div class="hl-surround"><div class="hl-main">$ cat winxp.raw temp.img temp.img temp.img temp.img temp.img temp.img temp.img temp.img &gt; winxp.img</div></div>
<p>4. 再转成原来的VMDK格式</p>
<div class="hl-surround"><div class="hl-main">$ qemu-img convert -f raw winxp.img -O vmdk winxp.vmdk</div></div>
<p>5. 用下载Gparted Live CD 的iso文件作为光盘启动虚拟机，可以看到硬盘物理空间已经变成了8G。修改硬盘上面的分区大小就行了，也可以创建新的分区。<br />
<a href="http://guoyong.org/blog/wp-content/uploads/gparted.png" rel="lightbox[576]"><img src="http://guoyong.org/blog/wp-content/uploads/gparted-300x197.png" alt="" title="进行中" width="300" height="197" class="alignnone size-medium wp-image-586" /></a><a href="http://guoyong.org/blog/wp-content/uploads/gparted2.png" rel="lightbox[576]"><img src="http://guoyong.org/blog/wp-content/uploads/gparted2-300x197.png" alt="" title="修改成功" width="300" height="197" class="alignnone size-medium wp-image-587" /></a></p>
<p>参考:</p>
<p>http://www.cyberciti.biz/tips/howto-resize-vmware-virtual-harddisk-size.html#comments</p>
<p>http://qemu-forum.ipi.fi/viewtopic.php?t=846&#038;highlight=</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/using-ubuntu-desktop/%e7%bb%99%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e8%99%9a%e6%8b%9f%e7%a1%ac%e7%9b%98%e5%a2%9e%e5%8a%a0%e5%ae%b9%e9%87%8fvmdk-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.432 seconds -->

