<?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>SurlyJake &#187; VM</title>
	<atom:link href="http://www.surlyjake.com/tag/vm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.surlyjake.com</link>
	<description></description>
	<lastBuildDate>Fri, 30 Dec 2011 15:28:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Install Open-VM-tools on Debian 6 squeeze</title>
		<link>http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-open-vm-tools-on-debian-6-squeeze</link>
		<comments>http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 21:51:53 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Squeeze]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[squeeze]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vmware tools]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=700</guid>
		<description><![CDATA[Installing Open Virtual Machine Tools is a nice alternative to managing and installing the vmware tools package that comes with Vmware&#8217;s hypervisor products.  It allows you to use APT to manage all the dependencies and updates. Module assistant will recompile the kernel modules for you automatically when you update kernels too. I have verified that [...]]]></description>
			<content:encoded><![CDATA[<p>Installing Open <a href="http://www.surlyjake.com/tag/virtual-machine/" class="st_tag internal_tag" rel="tag" title="Posts tagged with virtual machine">Virtual Machine</a> Tools is a nice alternative to managing and installing the <a href="http://www.surlyjake.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VMware">vmware</a> tools package that comes with <a href="http://www.surlyjake.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VMware">Vmware</a>&#8217;s hypervisor products.  It allows you to use APT to manage all the dependencies and updates. Module assistant will recompile the kernel modules for you automatically when you update kernels too.</p>
<p>I have verified that this configuration works under ESXi 4.1.0, 260247 and a new <a href="http://www.surlyjake.com/tag/squeeze/" class="st_tag internal_tag" rel="tag" title="Posts tagged with squeeze">Squeeze</a> <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a>. All of the essential functions like being able to see guest OS information on the Vsphere summary page and performing &#8220;Shut Down Guest&#8221; and &#8220;Restart Guest&#8221; all work as expected. If your experiences vary, please leave a comment</p>
<p><em>This should all be performed by the root user (otherwise prepend &#8216;sudo&#8217; to the commands if you must use sudo). </em><br />
The first thing you need to do is add the &#8216;contrib&#8217; archive to your apt sources config:</p>
<pre><code>nano /etc/apt/sources.list</code></pre>
<p>Add the &#8216;contrib&#8217; to the end of these source lines. I use the <a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">debian</a>.uchicago.edu repository, so mine look like this on a new install:</p>
<pre><code>deb http://debian.uchicago.edu/debian/ squeeze main contrib
deb-src http://debian.uchicago.edu/debian/ squeeze main contrib</code></pre>
<p>After you save changes to the file, simply update your package list and perform the install:</p>
<pre><code>apt-get update
apt-get install open-<a href="http://www.surlyjake.com/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VM">vm</a>-tools open-<a href="http://www.surlyjake.com/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VM">vm</a>-source</code></pre>
<p>You might see an error that looks like this:</p>
<pre><code>Loading open-vm-tools modules: vmhgfsFATAL: Module vmhgfs not found.
 vmmemctlFATAL: Module vmmemctl not found.
 vmsyncFATAL: Module vmsync not found.</code></pre>
<p>Don&#8217;t worry, this is because we have not installed the kernel modules for some of the more advanced VMware functions like the vmhgfs file system, Memory Balloon (vmmemctl) Driver,  and vmsync, which helps freeze the VM while taking snapshots.<br />
To install these kernel modules, we&#8217;re going to use module-assistant. It will compile the modules for your kernel:</p>
<pre><code>module-assistant auto-install open-vm -i</code></pre>
<p>The &#8216;-i&#8217; puts module assistant into non-interactive mode. It wont ask you to confirm any additional package installs necesarry to set up the build environment.<br />
If you&#8217;re running a server without a Graphical environment, you&#8217;re finished. If you want features such as automatically adjusting the VM&#8217;s monitor resolution or allowing your mouse to seamlessly move between your host system and the VM, you need to install one more package:</p>
<pre><code>apt-get install open-vm-toolbox</code></pre>
<p>Now you won&#8217;t need to use CTRL+ALT to switch back and forth.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Debian eth0, eth1, eth2, in Virtualbox or VMware Virtual machines when copying</title>
		<link>http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debian-eth0-eth1-eth2-etc-in-vms-when-copying</link>
		<comments>http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 19:44:17 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[eth]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=60</guid>
		<description><![CDATA[Debian uses udev. Udev handles mapping MAC&#8217;s to the appropriate /dev/eth(X) file. If you copy a Virtual machine, Udev will remember the MAC address of the old NIC. When you copy the machine, the virtual host usually generates a new MAC address for the VM. Udev will assign the new Device to eth1, eth2, and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">Debian</a> uses udev. Udev handles mapping MAC&#8217;s to the appropriate /dev/<a href="http://www.surlyjake.com/tag/eth/" class="st_tag internal_tag" rel="tag" title="Posts tagged with eth">eth</a>(X) file. If you copy a <a href="http://www.surlyjake.com/tag/virtual-machine/" class="st_tag internal_tag" rel="tag" title="Posts tagged with virtual machine">Virtual machine</a>, Udev will remember the MAC address of the old NIC. When you copy the machine, the virtual host usually generates a new MAC address for the <a href="http://www.surlyjake.com/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VM">VM</a>.<br />
Udev will assign the new Device to eth1, eth2, and so on. If you want to change your NIC assignments make Udev forget the old MAC.<br />
In Debian 5 (lenny) it is in this file:</p>
<pre><code>/etc/udev/rules.d/70-persistent-net.rules</code></pre>
<p>In Debian 4 (etch) it is in this file:</p>
<pre><code>/etc/udev/rules.d/z25_persistent-net.rules
</code></pre>
<p>To apply changes in Lenny: &#8220;udevadm trigger&#8221; or &#8220;udevtrigger&#8221; (in Etch)</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vmware &#8211; Unable to change virtual machine power state: Internal error.</title>
		<link>http://www.surlyjake.com/2009/08/vmware-unable-to-change-virtual-machine-power-state-internal-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vmware-unable-to-change-virtual-machine-power-state-internal-error</link>
		<comments>http://www.surlyjake.com/2009/08/vmware-unable-to-change-virtual-machine-power-state-internal-error/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 13:43:23 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[killall]]></category>
		<category><![CDATA[SIGKILL]]></category>
		<category><![CDATA[SIGTERM]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[Workstation]]></category>
		<category><![CDATA[zombie]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=528</guid>
		<description><![CDATA[Ran into this while running Vmware Workstation under Ubuntu Jaunty. I got an error while shutting down the machine through an NX session. This is a result of a zombie &#8216;vmware-vmx&#8217; process running. All you need to do is kill the process. This command sends &#8216;signal 9&#8242; to the process. When sent to a program, [...]]]></description>
			<content:encoded><![CDATA[<p>Ran into this while running <a href="http://www.surlyjake.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VMware">Vmware</a> <a href="http://www.surlyjake.com/tag/workstation/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Workstation">Workstation</a> under <a href="http://www.surlyjake.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> <a href="http://www.surlyjake.com/tag/jaunty/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Jaunty">Jaunty</a>. I got an error while shutting down the machine through an NX session.</p>
<p>This is a result of a <a href="http://www.surlyjake.com/tag/zombie/" class="st_tag internal_tag" rel="tag" title="Posts tagged with zombie">zombie</a> &#8216;vmware-vmx&#8217; process running. All you need to do is kill the process. This command sends &#8216;signal 9&#8242; to the process. When sent to a program, <a href="http://www.surlyjake.com/tag/sigkill/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SIGKILL">SIGKILL</a> causes it to terminate immediately. In contrast to <a href="http://www.surlyjake.com/tag/sigterm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SIGTERM">SIGTERM</a> and SIGINT, this signal cannot be caught or ignored. For more information: <a href="http://en.wikipedia.org/wiki/SIGKILL" target="_blank">more sigkill info</a>.</p>
<pre><code><a href="http://www.surlyjake.com/tag/killall/" class="st_tag internal_tag" rel="tag" title="Posts tagged with killall">killall</a> -s9 vmware-vmx</code></pre>
<p>After that, I was able to start up the <a href="http://www.surlyjake.com/tag/virtual-machine/" class="st_tag internal_tag" rel="tag" title="Posts tagged with virtual machine">virtual machine</a> without issue.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/08/vmware-unable-to-change-virtual-machine-power-state-internal-error/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/08/vmware-unable-to-change-virtual-machine-power-state-internal-error/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

