<?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>Arun Stephens &#187; vmware</title>
	<atom:link href="http://blog.arunstephens.com/tag/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arunstephens.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 11 Aug 2011 20:55:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Making your own virtual machines for VMware Player</title>
		<link>http://blog.arunstephens.com/2009/01/11/making-your-own-virtual-machines-for-vmware-player/</link>
		<comments>http://blog.arunstephens.com/2009/01/11/making-your-own-virtual-machines-for-vmware-player/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 23:01:59 +0000</pubDate>
		<dc:creator>arun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://arunstephens.com/2009/01/11/making-your-own-virtual-machines-for-vmware-player</guid>
		<description><![CDATA[VMware Player is a free, cut down version of VMware Workstation which enables you to run virtual machines created with other VMware products. But you can&#8217;t create your own new VMs with it. At least, not within the interface. Here &#8230; <a href="http://blog.arunstephens.com/2009/01/11/making-your-own-virtual-machines-for-vmware-player/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>VMware Player is a free, cut down version of VMware Workstation which enables you to run virtual machines created with other VMware products. But you can&#8217;t create your own new VMs with it. At least, not within the interface.</p>
<p>Here are a few links to help you create a new virtual machine for use with VMware Player. For example, if you want to try out the <a href="http://www.microsoft.com/windows/windows-7/beta-download.aspx">Windows 7 Beta</a>:</p>
<p><a title="http://www.ffnn.nl/pages/articles/linux/vmware-player-image-creation.php" href="http://www.ffnn.nl/pages/articles/linux/vmware-player-image-creation.php">http://www.ffnn.nl/pages/articles/linux/vmware-player-image-creation.php</a> explains how to create a .vmx file (the VMware configuration file) and provides a couple of blank .vmdk (VMware virtual disks) that you can download &#8211; they&#8217;re a couple of KB each &#8211; you won&#8217;t be downloading 10GB of 0s!</p>
<p>To add a sound card, add the following lines to the .vmx file:</p>
<pre>sound.present = &quot;TRUE&quot;
sound.virtualDev = &quot;es1371&quot;
sound.fileName = &quot;-1&quot;
sound.autodetect = &quot;TRUE&quot;</pre>
<p>(Thanks to <a title="http://kelvinchufei.blogspot.com/2007/01/add-sound-card-driver-in-vmware.html" href="http://kelvinchufei.blogspot.com/2007/01/add-sound-card-driver-in-vmware.html">http://kelvinchufei.blogspot.com/2007/01/add-sound-card-driver-in-vmware.html</a>)</p>
<p>And if you are installing Windows 7, then you need at least 512MB of memory in your virtual machine. I&#8217;m trying with that amount&#8230; not sure it will be pleasant!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arunstephens.com/2009/01/11/making-your-own-virtual-machines-for-vmware-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware Server 2.0 &#8211; using your own SSL certificate</title>
		<link>http://blog.arunstephens.com/2008/12/24/vmware-server-20-using-your-own-ssl-certificate/</link>
		<comments>http://blog.arunstephens.com/2008/12/24/vmware-server-20-using-your-own-ssl-certificate/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 06:56:58 +0000</pubDate>
		<dc:creator>arun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://arunstephens.com/2008/12/24/vmware-server-20-using-your-own-ssl-certificate</guid>
		<description><![CDATA[The default installation of VMware Server 2.0 uses a self-signed certificate for the web-based management console, VMware Infrastructure Web Access. (Notice how they copied the Microsoft fashion of naming the web based tool, like Outlook Web Access and Project Web &#8230; <a href="http://blog.arunstephens.com/2008/12/24/vmware-server-20-using-your-own-ssl-certificate/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The default installation of VMware Server 2.0 uses a self-signed certificate for the web-based management console, VMware Infrastructure Web Access. (Notice how they copied the Microsoft fashion of naming the web based tool, like Outlook Web Access and Project Web Access.)</p>
<p>But you may want to use a different certificate. One that browsers in your organisation will actually recognise. I couldn&#8217;t find any information on the web, so went hunting in the config files.</p>
<p>The location of the certificate and key are specified in the file /etc/vmware/hostd/config.xml. The default location is /etc/vmware/ssl/.</p>
<p>You may want to create your own certificate authority (CA). I followed the <a href="http://doc.ubuntu.com/ubuntu/serverguide/C/certificates-and-security.html">Ubuntu Server Guide</a>&#8216;s instructions, but apart from file locations, those instructions will probably do for any installation of OpenSSL.</p>
<p>Once I had set up the new certificates, I had to reboot the machine. Restarting VMware didn&#8217;t do it, but that was probably because I didn&#8217;t restart the right service. Rebooting definitely worked.</p>
<p>With my new certificate, IE7 still prompts me for a client certificate to present, but pressing cancel to that box gives you a proper secure session without the ugly red security warning by the address bar. With Firefox it works fine.</p>
<p>I haven&#8217;t investigated the prompt for a client certificate in IE yet, but if you know and want to save me the trouble of figuring it out for myself, please post a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arunstephens.com/2008/12/24/vmware-server-20-using-your-own-ssl-certificate/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cloning VMware machines loses network connection</title>
		<link>http://blog.arunstephens.com/2008/12/23/cloning-vmware-machines-loses-network-connection/</link>
		<comments>http://blog.arunstephens.com/2008/12/23/cloning-vmware-machines-loses-network-connection/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 21:59:47 +0000</pubDate>
		<dc:creator>arun</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://arunstephens.com/2008/12/23/cloning-vmware-machines-loses-network-connection</guid>
		<description><![CDATA[I have been setting up a whole swag of virtual machines to do my bidding. Ideally I would use ESXi but it doesn&#8217;t support my choice of server &#8211; my old laptop (Toshiba Tecra M5). So I am back to &#8230; <a href="http://blog.arunstephens.com/2008/12/23/cloning-vmware-machines-loses-network-connection/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have been setting up a whole swag of virtual machines to do my bidding. Ideally I would use ESXi but it doesn&#8217;t support my choice of server &#8211; my old laptop (Toshiba Tecra M5).</p>
<p>So I am back to using VMware Server. Since I last used it, VMware Server 2.0 has been released. It features a web-based management interface, which is quite good, though it uses a self-signed certificate that causes browsers to complain. I will eventually figure out how to replace it with a real certificate (or rather, one that my personal trusted certification authority has issued) and post the instructions here.</p>
<p>But that&#8217;s not what this post is about. My operating system of choice at the moment is Ubuntu Server 8.04 LTS. Yes, 8.10 is out, but I don&#8217;t want to download another CD image. I am in New Zealand, the land of data caps, after all. I have created a base install of Ubuntu, and want to clone it and use it as a base for other virtual machines.</p>
<p>Installation is simple.</p>
<p>Copying the virtual machine is simple:</p>
<pre>cp -r [source_directory] [destination_name]</pre>
<p>Then it&#8217;s a matter of renaming the virtual disk (for consistency&#8217;s sake &#8211; it&#8217;s not mandatory):</p>
<pre>vmware-vdiskmanager -n [source_file.vmdk] [destination_file.vmdk]</pre>
<p>Following that, I edit the .vmx file, and change references to the .vmdk file and the virtual machine name that is displayed in the management interface. Otherwise you&#8217;ll end up with multiple machines with the same name, and that gets confusing.</p>
<p>Once you add the machine to the inventory, VMware Server will realise that it&#8217;s a clone of an existing machine, and will ask you to confirm that. If you say it is a copy, it will regenerate some IDs, like the NIC&#8217;s MAC address. And this is where we run into trouble.</p>
<p>With a new MAC address, the system thinks there&#8217;s a new device in there. Which is virtually true. It leaves the existing configuration (from the base image) as eth0, and sets up the &#8220;new&#8221; NIC as eth1. Which is fine. But eth0 will never work, and it&#8217;s better (I think) for the first NIC to be eth0.</p>
<p>I found a <a href="http://ubuntuforums.org/showthread.php?t=456672">solution here</a>:</p>
<blockquote><p><strong>Re: Eth0 disapears in VMware and Ubuntu Server</strong></p>
<hr size="1" />I think that the best thing is delete the eth0 line from /etc/udev/rules.d/70-persistent-net.rules and change eth1 to eth0 in the eth1&#8242;s line</p>
<p>I mean, my file was</p>
<p># This file was automatically generated by the /lib/udev/write_net_rules</p>
<p># program, probably run by the persistent-net-generator.rules rules file.</p>
<p>#</p>
<p># You can modify it, as long as you keep each rule on a single line.</p>
<p># PCI device 0&#215;1022:0&#215;2000 (pcnet32)</p>
<p>SUBSYSTEM==&#8221;net&#8221;, DRIVERS==&#8221;?*&#8221;, ATTRS{address}==&#8221;00:0c:29:b0:1a:59&#8243;, NAME=&#8221;eth0&#8243;</p>
<p># PCI device 0&#215;1022:0&#215;2000 (pcnet32)</p>
<p>SUBSYSTEM==&#8221;net&#8221;, DRIVERS==&#8221;?*&#8221;, ATTRS{address}==&#8221;00:0c:29:38:15:ba&#8221;, NAME=&#8221;eth1&#8243;</p>
<p>but now is</p>
<p># This file was automatically generated by the /lib/udev/write_net_rules</p>
<p># program, probably run by the persistent-net-generator.rules rules file.</p>
<p>#</p>
<p># You can modify it, as long as you keep each rule on a single line.</p>
<p># PCI device 0&#215;1022:0&#215;2000 (pcnet32)</p>
<p>SUBSYSTEM==&#8221;net&#8221;, DRIVERS==&#8221;?*&#8221;, ATTRS{address}==&#8221;00:0c:29:38:15:ba&#8221;, NAME=&#8221;eth0&#8243;</p>
<p>Salute</p>
<p>Frank Abel</p></blockquote>
<p>Thanks Frank &#8211; that fixed it.</p>
<p>Some other things to think of:</p>
<p>You will want to change the host name of your new virtual machine, probably. You do that by editing the /etc/hostname file. But if you do that, and the new host name isn&#8217;t resolvable by DNS, you may run into troubles, especially using sudo on a default installation of Ubuntu (and probably other distros as well). So, before you change the hostname, it&#8217;s advisable to add an entry in /etc/hosts for the new host name.</p>
<p>I have run into trouble by changing /etc/hostname and then being unable to edit any other file, including /etc/hosts, because sudo requires that your machine&#8217;s hostname be resolved. It&#8217;s for this reason that my new rule is to create a password for root as soon as the OS is installed:</p>
<pre>sudo passwd root</pre>
<p>Other things I need to do when cloning the machine are editing network settings in /etc/network/interface (I am using static IP addressing) and DNS servers in /etc/resolv.conf. Then reboot and you have a clean system with its own &#8220;identity&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arunstephens.com/2008/12/23/cloning-vmware-machines-loses-network-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

