<?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>SpaceFan &#187; Installation</title>
	<atom:link href="http://know-and-share.de/spacefan/tag/installation/feed/" rel="self" type="application/rss+xml" />
	<link>http://know-and-share.de/spacefan</link>
	<description>Hansjoerg&#039;s thoughts on space (outer-, knowledge-, development-) and related</description>
	<lastBuildDate>Sat, 24 Apr 2010 17:56:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Test and Deploy in virtual times Part 2</title>
		<link>http://know-and-share.de/spacefan/software-development/test-and-deploy-in-virtual-times-part-2/</link>
		<comments>http://know-and-share.de/spacefan/software-development/test-and-deploy-in-virtual-times-part-2/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 16:33:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Opensolaris]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://know-and-share.de/spacefan/?p=43</guid>
		<description><![CDATA[Well, this week we are going to continue the installation of the Deployment Environment. The goal for this effort was to &#8220;Use Open Source Solution and latest Technology to create a Development and Deployment environment on one system (in my case: MacBook Pro)&#8221;
Here is a summary of the steps I’m taking:

Installation of IDE (Netbeans)  (done [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this week we are going to continue the installation of the Deployment Environment. The goal for this effort was to &#8220;Use Open Source Solution and latest Technology to create a Development and Deployment environment on one system (in my case: MacBook Pro)&#8221;</p>
<p>Here is a summary of the steps I’m taking:</p>
<ul>
<li>Installation of IDE (Netbeans)  (<a href="http://know-and-share.de/spacefan/software-development/test-and-deploy-in-virtual-times/">done in Part 1</a>)</li>
<li>Installation of hypervisor software to run Opensolaris on the MacBook (VirtualBox) (<a href="http://know-and-share.de/spacefan/software-development/test-and-deploy-in-virtual-times/">done in Part 1)</a></li>
<li>Installation of OpenSolaris into VirtualBox</li>
<li>Installation and configuration of Deployment environment (MySQL and Glassfish)</li>
<li>Configuration of VirtualBox for secure network connection of Host-System and IDE towards MySQL/GLassfish</li>
<li>Configuration of Netbeans to Deploy to MySQL and Glassfish on Opensolaris within the VirtualBox</li>
<li>Test of the Development and Deployment environment with a simple application</li>
</ul>
<p>So no on to the next step.</p>
<p><strong>Step 3: Installation of <a href="http://www.opensolaris.com/">OpenSolaris</a></strong></p>
<p>By now, you probably have downloaded an ISO-image of the OpenSolaris version (see the<a href="http://know-and-share.de/spacefan/software-development/test-and-deploy-in-virtual-times/"> last section of post</a> if you need a refresh). Given that you have the ISO-image available, start up VirtualBox. Once started, you&#8217;ll press the &#8220;New&#8221; Button to start the Wizard for creating a new virtual machine. Follow the Wizard which is easy: Give your machine a name, then choose Operating System &#8220;Solaris&#8221; and Version &#8220;OpenSolaris&#8221;.</p>
<div id="attachment_46" class="wp-caption alignnone" style="width: 445px"><img class="size-full wp-image-46 " title="New-Virtual-Wizard" src="http://know-and-share.de/spacefan/wp-content/uploads/2009/11/New-Virtual-Wizard.jpg" alt="Wizard for adding a new virtual machine" width="435" height="402" /><p class="wp-caption-text">Wizard for adding a new virtual machine</p></div>
<p>As for memory configuration: in order to balance between NetBeans and other IDE-Tools or further aspects running on MacOS compared to Opensolaris in VirtualBox, I decided to go for 1024MB for the virtual machine.</p>
<p><strong>Important Tip:</strong> In order to <span style="text-decoration: underline;"> get your mouse detached from the VirtualBox </span>, press the left Cmd/Apple-Button and this will release your mouse. If you again want to continue, simply click into the VirtualBox Window and the mouse will focus again into that window.</p>
<p>The virtual Disk depends on what you want to do with OpenSolaris. As the purpose for this configuration was to act as Deployment-Testenvironment, I have decided that 16GB is fine, might even be on the upper limit. So I went with the recommendation of the Wizard. In order to save space, I went for the dynamically expanding storage which is a great feature of VirtualBox: only taking so much of real diskspace on my MacBook Pro as is really needed.</p>
<p>Once you have finished all parts of the Wizard, VirtualBox will show you a summary of the virtual machine</p>
<div id="attachment_47" class="wp-caption alignnone" style="width: 509px"><img class="size-full wp-image-47 " title="Virtual-Machine-Ready" src="http://know-and-share.de/spacefan/wp-content/uploads/2009/11/Virtual-Machine-Ready.jpg" alt="Virtual Machine is ready for start" width="499" height="540" /><p class="wp-caption-text">Virtual Machine is ready for start</p></div>
<p>Now you are ready to get OpenSolaris installed. When you click &#8220;Start&#8221; on the VirtualBox overview screen, you are presented with the &#8220;First Run Wizard&#8221;:</p>
<div id="attachment_44" class="wp-caption alignnone" style="width: 305px"><img class="size-full wp-image-44 " title="First-Run-wizard" src="http://know-and-share.de/spacefan/wp-content/uploads/2009/11/First-Run-wizard.jpg" alt="The &quot;First-Run&quot; Wizard" width="295" height="307" /><p class="wp-caption-text">The &quot;First-Run&quot; Wizard</p></div>
<p>As we have downloaded the CD in form of a Media-File (ISO-Image), choose that option in the lower part of the presented window. Initially the wizard will show the VBox GuestAdditions to be the target file, so you need to click the small button on the right and in the following windows add the downloaded ISO image and select it. The resulting window will look similar to this:</p>
<div id="attachment_45" class="wp-caption alignnone" style="width: 382px"><img class="size-full wp-image-45 " title="Media-OpenSol-Selected" src="http://know-and-share.de/spacefan/wp-content/uploads/2009/11/Media-OpenSol-Selected.jpg" alt="Opensolaris ISO Image selected" width="372" height="386" /><p class="wp-caption-text">Opensolaris ISO Image selected</p></div>
<p>And if you click the final &#8220;Next&#8221; button, a summary is presented and you can startup the virtual machine.</p>
<p>The virtual machines then starts and the OpenSolaris installation commences.</p>
<p>After you&#8217;ve selected your keyboard and the desktop language, you get the initial desktop of Opensolaris, which looks like this:</p>
<div id="attachment_54" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-54" title="OpenSol-1" src="http://know-and-share.de/spacefan/wp-content/uploads/2009/11/OpenSol-1-300x198.jpg" alt="OpenSol Initial Desktop" width="300" height="198" /><p class="wp-caption-text">OpenSol Initial Desktop</p></div>
<p>In there you find the &#8220;Install OpenSolaris&#8221; icon. Double click and you start the Opensolaris installation. Use the respective buttons on the bottom of the Installer-window to get the next screens respectively.</p>
<p>As for Disks: I prefer to give OpenSolaris the whole Disk as we anyway have a dynamically growing virtual disk.</p>
<p><img class="alignnone size-full wp-image-55" title="OpenSol-Harddisk" src="http://know-and-share.de/spacefan/wp-content/uploads/2009/11/OpenSol-Harddisk.jpg" alt="OpenSol-Harddisk" width="816" height="540" /></p>
<p>Below are further screenshots of the OpenSolaris Installation Wizard:<img class="alignnone size-large wp-image-57" title="OpenSol-Install-Users" src="http://know-and-share.de/spacefan/wp-content/uploads/2009/11/OpenSol-Install-Users-1024x677.jpg" alt="OpenSol-Install-Users" width="614" height="406" /></p>
<p><img class="alignnone size-large wp-image-56" title="OpenSol-Install-Summary" src="http://know-and-share.de/spacefan/wp-content/uploads/2009/11/OpenSol-Install-Summary-1024x677.png" alt="OpenSol-Install-Summary" width="614" height="406" /></p>
<p>Once the installer is done, OpenSolaris will ask to reboot.</p>
<p>Remember that we still have the OpenSolaris ISO image mounted and so when the reboot happens, it will be like you would again boot into the Install CD.</p>
<p>When the reboot happens, there will be a new entry on the Boot-Menu:  &#8220;Boot from Harddisk&#8221;. Select this option presented to start from the disk onto which you just installed OpenSolaris (Be aware that if you don&#8217;t actually choose this option, the system will automatically boot into the LiveCD (in our case the ISO-image) again.</p>
<p>Don&#8217;t worry about the next step: Opensolaris will boot from the harddisk and present this window and might run for some minutes with this window:</p>
<div id="attachment_62" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-62" title="Harddisk-Firstrun" src="http://know-and-share.de/spacefan/wp-content/uploads/2009/11/Harddisk-Firstrun-300x248.jpg" alt="Window during first run from fresh installed Harddisk" width="300" height="248" /><p class="wp-caption-text">Window during first run from fresh installed Harddisk</p></div>
<p>This is part of the installation still.</p>
<p>The next effort we need to do is install the VirtualBox Guestadditions. This will allow for smooth integration with MacOS.</p>
<p>This is what I did: I did a shutdown (using &#8220;System-&gt;Shutdown&#8221; from the OpenSolaris menu) to bring down OpenSolaris. This also stopped the virtual machine after OpenSolaris was shutdown. I then ensured that for the next start, we have the Guest-additions ISO Image mounted. For that I clicked in the summary pane of the virtual machine on &#8220;CD/DVD-Rom&#8221; which opened a pop-up window. In that I selected  &#8220;VBoxGuestAdditions.iso&#8221;. Then I restarted the virtual machine so that I can perform the task of adding the Guest Additions.<em><br />
Note:</em> I&#8217;m sure there is a more elegant way than first holding the system, getting the CD mounted etc. , not sure why I needed to do that. Also, for any other effort it is simple in VirtualBox to un-mount and mount a real CD or a CD/DVD-image.</p>
<p>The essential task on hand (adding the Guest-Additions) itself was simple:</p>
<ul>
<li>Once you are logged into Opensolaris, you will see a CD-icon labeled with  &#8220;VBOXADDITIONS_3.0.10.54097&#8243;</li>
<li>I double-clicked on this icon to open the File-Browser for the CD</li>
<li>On that File-Browser there is a &#8220;Open Autorun Prompt&#8221; Button. I clicked this</li>
<li>A pop-up window asked me to confirm I want this to be run. And I confirmed</li>
<li>Then the autorun worked without any further questions. At the end I was asked to press enter in the Terminal window that had opened</li>
<li>I then restarted OpenSolaris and now have a snappy graphic (it was slow before) and a complete mouse integration</li>
</ul>
<p>Next steps in next post are further configurations of OpenSolaris and Installation of Glassfish and MySQL.</p>
<p>So see you at the next post <img src='http://know-and-share.de/spacefan/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://know-and-share.de/spacefan/software-development/test-and-deploy-in-virtual-times-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
