<?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>Jeff Owens.com&#187; Ubuntu Archives  &#8211; Jeff Owens.com</title>
	<atom:link href="http://blog.jeff-owens.com/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jeff-owens.com</link>
	<description>Where Ignorance Is Not Bliss</description>
	<lastBuildDate>Wed, 14 Dec 2011 00:30:39 +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>Installing Ubuntu Server With Guest Additions Inside VirtualBox</title>
		<link>http://blog.jeff-owens.com/ubuntu/installing-ubuntu-server-with-guest-additions-inside-virtualbox/</link>
		<comments>http://blog.jeff-owens.com/ubuntu/installing-ubuntu-server-with-guest-additions-inside-virtualbox/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 00:58:24 +0000</pubDate>
		<dc:creator>Jeff Owens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[additions]]></category>
		<category><![CDATA[guest]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://blog.jeff-owens.com/?p=220</guid>
		<description><![CDATA[What We Are Using Host: OSX Lion VirtualBox: 4.1.0 Guest: Ubuntu Server 11.04 (Natty Narwhal) I'm assuming you have installed VirtualBox and the VirtualBox Extension Pack from here: http://www.virtualbox.org/wiki/Downloads Download Ubuntu Server 11.04 making sure you select 32 bit from the drop down: http://www.ubuntu.com/download/server/download Go ahead and install the VM into VirtualBox by select New [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float:left; border: 0pt none; padding: 0 10px 10px 5px" src="http://blog.jeff-owens.com/wp-content/uploads/2011/08/vitual_box_logo.png" alt="Vitual Box" title="vitual_box_logo.png" border="0" width="200" height="200" align="left" /></p>
<h2>What We Are Using</h2>
<p><strong>Host: OSX Lion</strong></p>
<p><strong>VirtualBox: 4.1.0</strong></p>
<p><strong>Guest: Ubuntu Server 11.04 (<em>Natty Narwhal</em>)</strong></p>
<p>I'm assuming you have installed VirtualBox and the VirtualBox Extension Pack from here:</p>
<p><a href="http://www.virtualbox.org/wiki/Downloads">http://www.virtualbox.org/wiki/Downloads</a></p>
<p>Download Ubuntu Server 11.04 making sure you select 32 bit from the drop down:</p>
<p><a href="http://www.ubuntu.com/download/server/download">http://www.ubuntu.com/download/server/download</a></p>
<p><span id="more-220"></span></p>
<p>Go ahead and install the VM into VirtualBox by select New and following the prompts, it will ask you for the location of the ISO you just downloaded to get started.  After starting your new VM and following the prompts, make sure you install SSH server (checkbox) and write down the name of your VM, your username and password.</p>
<p>After creating the Ubuntu guest with SSH server installed, turn the guest OS completely off.  </p>
<p>Go to terminal on your Mac (OSX) and type in the following replacing "Narwhal" with whatever you named your guest Ubuntu OS in VirtualBox.:</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showCodeTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">VBoxManage modifyvm <span style="color:#CC0000;">"Narwhal"</span> --natpf1 <span style="color:#CC0000;">"guestssh,tcp,,2222,,22"</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Start the Ubuntu guest OS.</p>
<p>Make sure your SSH service is running:</p>
<div class="igBar"><span id="lcode-9"><a href="#" onclick="javascript:showCodeTxt('code-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-9">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo /etc/init.<span style="">d</span>/ssh start </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>From your Mac (OSX) terminal SSH into your guest like this:</p>
<div class="igBar"><span id="lcode-10"><a href="#" onclick="javascript:showCodeTxt('code-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-10">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ssh -p <span style="color:#800000;color:#800000;">2222</span> deploy@<span style="color:#800000;color:#800000;">127</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">1</span> <span style="color:#006600; font-weight:bold;">&#40;</span>replace deploy with whatever username you created when installing Ubuntu<span style="color:#006600; font-weight:bold;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h2>Adding Shared Folders</h2>
<p>From your Mac (OSX) terminal window that is SSH'd into your Guest Ubuntu VM run the following:</p>
<div class="igBar"><span id="lcode-11"><a href="#" onclick="javascript:showCodeTxt('code-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-11">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install dkms build-essential linux-headers-generic </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Go to the VirtualBox Devices menu and select "Install Guest Additions"</p>
<p>From your Mac (OSX) terminal window that is SSH'd into your Guest Ubuntu VM type the following:</p>
<div class="igBar"><span id="lcode-12"><a href="#" onclick="javascript:showCodeTxt('code-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-12">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo mount /dev/scd0 /media/cdrom</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd /media/cdrom</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ls -la</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo sh ./VBoxLinuxAdditions.<span style="">run</span> --nox11 </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Don't worry if you see something that says "Installing the Window System drivers …fail!".  It fails because we aren't using a GUI.</p>
<p>Now shut down your Ubuntu VM like so:</p>
<div class="igBar"><span id="lcode-13"><a href="#" onclick="javascript:showCodeTxt('code-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-13">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo shutdown -h now </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Go to VirtualBox and select your VM and go into its settings.  Find the tab that says "Shared Folders" and click on the green folder icon with the plus sign.  Click on the drop-down arrow and select some folder on your Mac you want to share.  Select the auto-mount check box.  Click OK twice and start up your Ubuntu VM.  From your Mac (OSX) terminal ssh into your guest as before and type the following:</p>
<div class="igBar"><span id="lcode-14"><a href="#" onclick="javascript:showCodeTxt('code-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-14">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo -i</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd /media</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ls -la</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd /media/sf_&lt;your_share_name&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ls -la </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>See your files?  Your done!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jeff-owens.com/ubuntu/installing-ubuntu-server-with-guest-additions-inside-virtualbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

