<?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>108.bz &#187; VMware</title>
	<atom:link href="http://www.108.bz/posts/tag/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.108.bz</link>
	<description>Wandering futilities...</description>
	<lastBuildDate>Wed, 08 Sep 2010 13:45:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Remote operations on vmdk disks</title>
		<link>http://www.108.bz/posts/it/remote-operations-on-vmdk-disks/</link>
		<comments>http://www.108.bz/posts/it/remote-operations-on-vmdk-disks/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 16:43:34 +0000</pubDate>
		<dc:creator>Giuliano</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.108.bz/?p=275</guid>
		<description><![CDATA[One of the local PCs is using VMware Player to run an (old and small) Windows 2000 Virtual Machine. We need to expand its virtual disk but VMware Player lacks the tools to do that&#8230; I decided to see if it&#8217;s possibile to perform the expansion without moving the VM to a Server/ESXi/vSphere VMware host, [...]]]></description>
			<content:encoded><![CDATA[<p>One of the local PCs is using VMware Player to run an (old and small) Windows 2000 Virtual Machine.<br />
We need to expand its virtual disk but VMware Player lacks the tools to do that&#8230; I decided to see if it&#8217;s possibile to perform the expansion without moving the VM to a Server/ESXi/vSphere VMware host, using the commands (<span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">vmrun</span>, <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">vmware-vdiskmanager</span>) that come along the VMware Workstation installation I&#8217;ve got on my <i>Linux</i> laptop. The VM is hosted on a <i>Windows XP</i> PC.<br />
Here&#8217;s what I did:</p>
<ul>
<li>Mount the host <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">C$</span> share on the Linux laptop, using <a href="http://linux-cifs.samba.org/">CIFS</a>.</li>
<li>Unexpectedly, the VM has got some active snapshots. Since the whole snapshot machinery is not available in VMware Player, the VM should come out of a VMware Server/ESXi/vSphere host.
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vmrun -T ws listSnapshots &quot;Windows 2000 Professional.vmx&quot;<br />
Total snapshots: 2<br />
Snapshot 1<br />
Snapshot 2</div></div>
</li>
<li>You can&#8217;t expand a disk that underwent some snapshots, they&#8217;ve got to be removed first:
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vmrun -T ws deleteSnapshot &quot;Windows 2000 Professional.vmx&quot; &quot;Snapshot 1&quot;</div></div>
<p>First caveat: the snapshot removal process causes <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">vmrun</span> to read/write large amount of data, depending on the snapshot&#8217;s size itself, I guess. You&#8217;re running it across the network: you&#8217;ll have to wait a while until it&#8217;s done. I&#8217;ve been monitoring the process with <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">iftop -B -i eth0 -f &#8216;host <i>hostname</i>&#8216;</span> to have an estimate of how long it would take to complete. Each snapshot needs to be removed by means of <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">vmrun</span>.</li>
<li>Expansion time:
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vmware-vdiskmanager -x 25GB &quot;Windows 2000 Professional.vmdk&quot;<br />
&nbsp; Grow: 100% done.<br />
Disk expansion completed successfully.<br />
<br />
WARNING: If the virtual disk is partitioned, you must use a third-party<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;utility in the virtual machine to expand the size of the<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;partitions. For more information, see:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1647</div></div>
<p><span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">vmware-vdiskmanager</span> appends X bytes of space (where X = new_capacity &#8211; previous_capacity) to the chosen vmdk. Again, those bytes travel through the network, be patient.
</li>
<li>As <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">vmware-vdiskmanager</span> was so kind to remind us, we just expanded the disk, not the logical partitions contained therein. Some kind of partition manager software is needed to complete the job, my fav being <a href="http://www.acronis.com/enterprise/products/diskdirector/">Acronis Disk Director</a>.</li>
</ul>
<p>Summing things up, it&#8217;s indeed possible to operate remotely on vmdk disks. Did we save any time by doing things this way, that is without copying the VM &#8220;out&#8221; of its host then moving it back onto it? If the snaphots are more than one, no doubt that &#8220;local beats network&#8221;. And what about the expansion? If we add some (empty) data to a vmdk, then need to move it back to the host, then local shouldn&#8217;t be any faster than network. Better would be to use an external drive of sorts. Better yet is to temporarily copy/install VMware workstation on the host, or just <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">vmrun</span>/<span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">vmware-vdiskmanager</span> executable files and their dependencies. That&#8217;s what I&#8217;ll try the next time.</p>
 <img src="http://www.108.bz/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=275" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.108.bz/posts/it/remote-operations-on-vmdk-disks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware issues while increasing Datastore capacity</title>
		<link>http://www.108.bz/posts/it/vmware-issues-while-increasing-datastore-capacity/</link>
		<comments>http://www.108.bz/posts/it/vmware-issues-while-increasing-datastore-capacity/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 14:37:37 +0000</pubDate>
		<dc:creator>Giuliano</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Weirdnesses]]></category>

		<guid isPermaLink="false">http://www.108.bz/?p=268</guid>
		<description><![CDATA[VMware vSphere Client/vCenter Server Version 4.0.0 Build 208111. We created a bunch of new LUNs, planning to increase an existing Datastore&#8217;s capacity. VMware side, the operation should be a matter of simply firing up vSphere Client, choosing a host, Configuration tab, viewing the Datastore&#8217;s properties, then clicking on the Increase button. Except that no Extent [...]]]></description>
			<content:encoded><![CDATA[<p>VMware vSphere Client/vCenter Server Version 4.0.0 Build 208111.</p>
<p>We created a bunch of new LUNs, planning to increase an existing Datastore&#8217;s capacity.<br />
VMware side, the operation should be a matter of simply firing up vSphere Client, choosing a host, <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">Configuration</span> tab, viewing the Datastore&#8217;s properties, then clicking on the <span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">Increase</span> button. Except that no Extent device seems to be found. That&#8217;s weird because we already did (multiple times) a rescan of each Storage Adapter/HBA. Moreover, selecting &#8220;<span style="font-family: Bitstream Vera Sans Mono,Courier New,monospace;">Add Storage</span>&#8221; as if we were to create a new Datastore, indeed shows the expected volumes.<br />
The solution turned out to be this one:</p>
<ul>
<li>Connect vSphere Client directly to the host (thus logging in as root), and not to the vCenter Server.</li>
</ul>
 <img src="http://www.108.bz/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=268" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.108.bz/posts/it/vmware-issues-while-increasing-datastore-capacity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
