<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6221085736081443358</id><updated>2011-07-08T03:44:31.221-07:00</updated><category term='linux ubuntu lucid 10.04 jeos virtual machine virtualbox appliance'/><category term='linux ubuntu lucid 10.04 jeos virtual machine virtualbox appliance openldap'/><title type='text'>Open Source Ninja</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://fossninja.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221085736081443358/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://fossninja.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jamie L Sammons</name><uri>http://www.blogger.com/profile/01094936473480810087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_8LPJccLcve0/SphX3Ky2tfI/AAAAAAAAAKs/R0AufaA2ciA/S220/Tux-Ninja.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6221085736081443358.post-8348200287545785782</id><published>2010-07-15T08:40:00.000-07:00</published><updated>2010-09-15T13:10:09.763-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux ubuntu lucid 10.04 jeos virtual machine virtualbox appliance openldap'/><title type='text'>Installing OpenLDAP on Ubuntu JeOS</title><content type='html'>&lt;h2 class="Section"&gt;OpenLDAP Installation&lt;br /&gt;&lt;/h2&gt;&lt;div class="Unindented"&gt;Provision a new Virtual Machine called Test OpenLDAP 1 with the static IP address 192.168.56.3. See &lt;a href="http://fossninja.blogspot.com/2010/07/ubuntu-jeos-virtual-appliances-in.html"&gt;Ubuntu JeOS Virtual Appliances in VirtualBox&lt;/a&gt; on provisioning Virtual Machines.&lt;br /&gt;&lt;/div&gt;&lt;div class="Indented"&gt;&lt;br /&gt;Install OpenLDAP by running the following command:&lt;br /&gt;&lt;/div&gt;&lt;pre class="LyX-Code"&gt;sudo apt-get install slapd ldap-utils&lt;br /&gt;&lt;/pre&gt;&lt;div class="Unindented"&gt;The default settings on Ubuntu uses the new OpenLDAP Run-time Configuration to store the LDAP configuration in LDIF format. To configure LDAP do the following:&lt;/div&gt;&lt;ol&gt;&lt;li&gt;Stop OpenLDAP and delete the default Ubuntu configuration by running the following:&lt;pre class="LyX-Code"&gt;sudo /etc/init.d/slapd stop&lt;br /&gt;&lt;br /&gt;sudo rm -fr /etc/ldap/slapd.d  &lt;br /&gt;sudo mkdir /etc/ldap/slapd.d&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Covert the ppolicy.schema file to LDIF format by doing the following from a command prompt:&lt;pre class="LyX-Code"&gt;mkdir /tmp/ldif_output&lt;br /&gt;&lt;br /&gt;echo 'include /etc/ldap/schema/ppolicy.schema' &amp;gt; /tmp/schema_convert.conf&lt;br /&gt;&lt;br /&gt;slapcat -f /tmp/schema_convert.conf -F /tmp/ldif_output -n0 \&lt;br /&gt;-s "cn={0}ppolicy,cn=schema,cn=config" &amp;gt; /tmp/ppolicy.ldif&lt;/pre&gt;&lt;div class="Unindented"&gt;Modify /tmp/ppolicy.ldif as follows:&lt;br /&gt;&lt;/div&gt;&lt;pre class="LyX-Code"&gt;vim /tmp/ppolicy.ldif&lt;br /&gt;&lt;br /&gt;dn: cn=ppolicy,cn=schema,cn=config&lt;br /&gt;cn: ppolicy&lt;br /&gt;&lt;/pre&gt;&lt;div class="Unindented"&gt;Remove the following (including any blank lines) from /tmp/ppolicy.ldif:&lt;/div&gt;&lt;pre class="LyX-Code"&gt;structuralObjectClass: olcSchemaConfig&lt;br /&gt;entryUUID: 10dae0ea-0760-102d-80d3-f9366b7f7757&lt;br /&gt;creatorsName: cn=config&lt;br /&gt;createTimestamp: 20080826021140Z&lt;br /&gt;entryCSN: 20080826021140.791425Z#000000#000#000000&lt;br /&gt;modifiersName: cn=config&lt;br /&gt;modifyTimestamp: 20080826021140Z&lt;/pre&gt;&lt;div class="Unindented"&gt;Move the new ppolicy into place:&lt;/div&gt;&lt;pre class="LyX-Code"&gt;sudo mv /tmp/ppolicy.ldif /etc/ldap/schema&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;The backend.ldif file will configure the LDAP server as well as create the configuration for the example database. Think of it as an LDIF version of the old slapd.conf file. Create a new file called /home/test/backend.ldif and add the contents of &lt;a href="http://docs.google.com/uc?id=0B5CW-nN0lAzxMDM4YTU2ZDMtY2I1ZC00MzQ1LTgxNTgtNGY4ZTczMDk3ZjNj&amp;amp;export=download&amp;amp;hl=en"&gt;backend.ldif&lt;/a&gt; to the file.&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Add the new backend configuration to OpenLDAP by running the following from a command prompt:&lt;pre class="LyX-Code"&gt;sudo slapadd -F /etc/ldap/slapd.d -b "cn=config" -l /home/test/backend.ldif&lt;/pre&gt;&lt;pre class="LyX-Code"&gt;sudo chown -R openldap:openldap /etc/ldap/slapd.d&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;The example.ldif file will hold the test directory. Create a new file called /home/test/example.ldif and add the contents of the &lt;a href="http://docs.google.com/uc?id=0B5CW-nN0lAzxMDM1YWQ3MmEtMmI3Ni00ZjA5LThmN2ItNWU3NWY3NzJjOTQx&amp;amp;export=download&amp;amp;hl=en"&gt;example.ldif&lt;/a&gt; to the file.&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Test the LDIF by doing a dry run using the following command:&lt;pre class="LyX-Code"&gt;sudo slapadd -v -u -c -l /home/test/example.ldif&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;The following shows what a successful output should look like:&lt;pre class="LyX-Code"&gt;added: "dc=example,dc=com"&lt;br /&gt;added: "cn=users,dc=example,dc=com"&lt;br /&gt;added: "cn=groups,dc=example,dc=com"&lt;br /&gt;added: "cn=system,dc=example,dc=com"&lt;br /&gt;added: "uid=test1,cn=users,dc=example,dc=com"&lt;br /&gt;added: "uid=test2,cn=users,dc=example,dc=com"&lt;br /&gt;added: "cn=Admin1,cn=groups,dc=example,dc=com"&lt;br /&gt;added: "uid=mirrormode,cn=system,dc=example,dc=com"&lt;br /&gt;added: "uid=bind,cn=system,dc=example,dc=com"&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;If the above was successful run the following command to populate the LDAP directory with the sample data:&lt;pre class="LyX-Code"&gt;sudo slapadd -q -v -l /home/test/example.ldif&lt;/pre&gt;&lt;pre class="LyX-Code"&gt;sudo slapindex -q -v&lt;/pre&gt;&lt;pre class="LyX-Code"&gt;sudo chown -R openldap:openldap /var/lib/ldap&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Start OpenLDAP in interactive mode to ensure that the configuration is working properly:&lt;pre class="LyX-Code"&gt;sudo slapd -d config -h "ldap:/// ldapi:///" -g openldap -u openldap&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;If the above worked properly terminate it the process with CTRL-C and start OpenLDAP in daemon mode by running:&lt;pre class="LyX-Code"&gt;sudo /etc/init.d/slapd start&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3 class="Subsection"&gt;Apache Directory Studio&lt;/h3&gt;&lt;div class="Unindented"&gt;Apache Directory Studio can be used to test the new LDAP server. Apache Directory Studio can be downloaded from here: &lt;a href="http://directory.apache.org/studio"&gt;http://directory.apache.org/studio&lt;/a&gt;. &lt;/div&gt;&lt;div class="Unindented"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="Unindented"&gt;Install it on the Host Operating System by downloading and extracting the archive where you would like it to be installed on the system. I usually create an opt directory in my home directory and extract it there.&lt;/div&gt;&lt;div class="Indented"&gt;&lt;br /&gt;Launch Apache Directory Studio:&lt;/div&gt;&lt;pre class="LyX-Code"&gt;/home/{username}/opt/ApacheDirectoryStudio/ApacheDirectoryStudio&lt;/pre&gt;&lt;div class="Unindented"&gt;Configure Apache Directory Studio as follows:&lt;/div&gt;&lt;ol&gt;&lt;li&gt;Click the New Connection button &lt;img src="http://1.bp.blogspot.com/_8LPJccLcve0/TD8kk5EYTqI/AAAAAAAAAMY/3W75DoXhJzs/s320/LDAP+New+Connection.png" /&gt; located in the Connections Tab.&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Enter the following connection settings:&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Connection Name: Test OpenLDAP 1&lt;/li&gt;&lt;li&gt;Hostname: 192.168.56.3&lt;/li&gt;&lt;li&gt;Port 389&lt;/li&gt;&lt;li&gt;Encryption method: No encryption&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Enter the following Authentication settings:&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Bind DN or user: dc=example,dc=com&lt;/li&gt;&lt;li&gt;Bind password: test&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;On the browser options screen, click Fetch Base DNs. dc=example,dc=com should be found as a base DN.&lt;/li&gt;&lt;/ol&gt;&lt;img src="http://1.bp.blogspot.com/_8LPJccLcve0/TD8kK9Gsp7I/AAAAAAAAAMQ/_GexnuUHvTQ/s320/LDAP+Browser.png" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6221085736081443358-8348200287545785782?l=fossninja.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fossninja.blogspot.com/feeds/8348200287545785782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fossninja.blogspot.com/2010/07/installing-openldap-on-ubuntu-jeos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221085736081443358/posts/default/8348200287545785782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221085736081443358/posts/default/8348200287545785782'/><link rel='alternate' type='text/html' href='http://fossninja.blogspot.com/2010/07/installing-openldap-on-ubuntu-jeos.html' title='Installing OpenLDAP on Ubuntu JeOS'/><author><name>Jamie L Sammons</name><uri>http://www.blogger.com/profile/01094936473480810087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_8LPJccLcve0/SphX3Ky2tfI/AAAAAAAAAKs/R0AufaA2ciA/S220/Tux-Ninja.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_8LPJccLcve0/TD8kk5EYTqI/AAAAAAAAAMY/3W75DoXhJzs/s72-c/LDAP+New+Connection.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221085736081443358.post-5032549254759562532</id><published>2010-07-01T14:37:00.000-07:00</published><updated>2010-07-06T12:36:02.569-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux ubuntu lucid 10.04 jeos virtual machine virtualbox appliance'/><title type='text'>Ubuntu JeOS Virtual Appliances in VirtualBox</title><content type='html'>I find myself creating more and more test environments in &lt;a href="http://www.virtualbox.org/"&gt;VirtualBox&lt;/a&gt; on &lt;a href="https://help.ubuntu.com/community/JeOS"&gt;Ubuntu JeOS&lt;/a&gt; for alot of the research projects I do.  Some of these test environments span multiple machines.  I starting thinking it would be nice to have a resuable template for these purposes.  The other thing that I wanted to do was simulate a network where I could assign static IPs to the Virtual Machines because some of the software that I test gets really fussy if the IP keeps changing.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Oracle VM VirtualBox&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;VirtualBox can be installed on Ubuntu Desktop by doing the following:&lt;/div&gt;&lt;div&gt;&lt;ol&gt; &lt;li&gt;Modify /etc/apt/sources.list and add the following to the file:   &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;deb http://download.virtualbox.org/virtualbox/debian lucid non-free &lt;/dd&gt; &lt;/dl&gt; &lt;/li&gt; &lt;li&gt;Download and register the Oracle public key by running the  following:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc \  &lt;p&gt; -O- | sudo apt-key add -  &lt;/p&gt;&lt;/dd&gt;&lt;/dl&gt; &lt;/li&gt; &lt;li&gt;Install VirtualBox 3.2 by running the following from a command  prompt:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;sudo apt-get update   &lt;p&gt; sudo apt-get install virtualbox-3.2&lt;/p&gt;&lt;/dd&gt;&lt;/dl&gt; &lt;/li&gt; &lt;/ol&gt;  For more information on installing VirtualBox on Ubuntu: &lt;a href="http://www.virtualbox.org/wiki/Linux_Downloads"&gt;http://www.virtualbox.org/wiki/Linux_Downloads&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;Ubuntu JeOS Virtual Machine&lt;/h2&gt;  &lt;p&gt;Ubuntu JeOS is a lightweight easy to configure environment that makes an excellent choice for research and testing.&lt;/p&gt;&lt;p&gt; To create an Ubuntu JeOS image download the 32-bit Ubuntu Server Edition CD from here: &lt;a href="http://www.ubuntu.com/server"&gt;http://www.ubuntu.com/server  &lt;/a&gt;&lt;/p&gt;&lt;p&gt; Create a new Ubuntu JeOS Virtual Machine by doing the following:  &lt;/p&gt;&lt;ol&gt; &lt;li&gt;Launch Oracle VM VirtualBox (Applications &gt; System Tools &gt;  Oracle VM VirtualBox) &lt;/li&gt; &lt;li&gt;Click New to create a new Virtual Machine &lt;/li&gt; &lt;li&gt;Name the machine: Ubuntu JeOS 10.04. The Operating System and  Version should change to Linux and Ubuntu. &lt;/li&gt; &lt;li&gt;Leave the memory at the default of 512 MB &lt;/li&gt; &lt;li&gt;Create a new virtual disk with the default settings &lt;/li&gt; &lt;li&gt;Make sure the newly created Ubuntu JeOS 10.04 VM is highlighted and click Settings &lt;/li&gt; &lt;li&gt;Go to System &gt; Processor and check Enable PAE/NX.  &lt;/li&gt; &lt;li&gt;Go to Storage and highlight SATA Controller and click - to remove it. I had a problem with the SATA controller that prevented the VM from booting properly. &lt;/li&gt; &lt;li&gt;Highlight the IDE Controller and then click the Add Hard Disk icon (looks like a + sign on hard disk platters). &lt;/li&gt; &lt;li&gt;Highlight the newly added Hard Disk and choose Ubuntu JeOS 10.04.vdi from the Hard Disk drop down. &lt;/li&gt; &lt;li&gt;Highlight the CD ROM and click the button to open the Virtual Media Manger (looks like a green arrow on a folder). &lt;/li&gt; &lt;li&gt;Click the Add button and browse for the Ubuntu Server .ISO on the system. &lt;/li&gt; &lt;li&gt;With the Ubuntu Server .ISO highlighted, click Select to choose the image for use with this Virtual Machine. &lt;/li&gt; &lt;li&gt;Go to Network and change set ''Attached to:'' to NAT.  &lt;/li&gt; &lt;li&gt;While still in the Network settings, click Adapter 2 and Enable  Network Adapter and set ''Attached to:'' to Host-only Adapter. &lt;/li&gt; &lt;li&gt;Click OK to close the VM settings. &lt;/li&gt;&lt;/ol&gt;&lt;h2&gt;Installing Ubuntu JeOS &lt;/h2&gt;  &lt;p&gt; Follow these steps to install Ubuntu JeOS in Oracle VM VirtualBox:  &lt;/p&gt;&lt;ol&gt; &lt;li&gt;Power on the Virtual Machine by clicking Start &lt;/li&gt; &lt;li&gt;Press Enter on the Language screen &lt;/li&gt; &lt;li&gt;Press F4 to bring up the Modes Menu &lt;/li&gt; &lt;li&gt;Choose Install a minimal virtual machine &lt;/li&gt; &lt;li&gt;With Install Ubuntu Server highlighted, press Enter &lt;/li&gt; &lt;li&gt;Press Enter twice for Language and Country &lt;/li&gt; &lt;li&gt;Press Enter 3 times on the Keyboard detection screens &lt;/li&gt; &lt;li&gt;Make sure eth0 is hightlighted as the Primary network interface  &lt;/li&gt; &lt;li&gt;Leave the default of ubuntu for the Host name &lt;/li&gt; &lt;li&gt;Ensure that the installer selected the correct time zone and  continue on. &lt;/li&gt; &lt;li&gt;On the Partition Disks screen keep the default: Guided - use entire disk &lt;/li&gt; &lt;li&gt;On the Write changes to disk screen Tab to Yes and press Enter &lt;/li&gt; &lt;li&gt;On the Set up users and passwords screen, enter Test Admin as the Full name for the new user &lt;/li&gt; &lt;li&gt;Keep the suggested user name: test &lt;/li&gt; &lt;li&gt;Set the password to: test &lt;/li&gt; &lt;li&gt;Select No for encrypting the home directory. &lt;/li&gt; &lt;li&gt;When prompted for server selection choose Open SSH Server. &lt;/li&gt; &lt;li&gt;Once installation is completed highlight the new Virtual Machine and click Start. &lt;/li&gt; &lt;li&gt;If the Virtual Machine flashes a window and quits check the PAE/NX setting on the Virtual Machine. See Section enu:PAE/NX &lt;/li&gt;&lt;/ol&gt;&lt;h2&gt;Configuring Ubuntu JeOS &lt;/h2&gt;  &lt;p&gt; This section cover install the VirtualBox Guest Tools as well as  Exporting the VM as a Virtual Appliance.&lt;/p&gt;&lt;ol&gt; &lt;li&gt;Log into the new Virtual Machine as user name/password: test/test. &lt;/li&gt; &lt;li&gt;Install Vi IMproved by running the following:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;sudo apt-get install vim &lt;/dd&gt; &lt;/dl&gt; &lt;/li&gt; &lt;li&gt;Configure the first static IP address by modifying  /etc/network/interfaces as follows:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;sudo vim /etc/network/interfaces&lt;br /&gt;&lt;br /&gt;&lt;/dd&gt;&lt;dd&gt;# Testing network interface&lt;/dd&gt;&lt;dd&gt;auto eth1&lt;/dd&gt;&lt;dd&gt;iface eth1 inet static&lt;/dd&gt;&lt;dd&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address 192.168.56.2&lt;/dd&gt;&lt;dd&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;netmask 255.255.255.0&lt;/dd&gt;&lt;dd&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;network 192.168.56.0&lt;/dd&gt;&lt;dd&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;broadcast 192.168.56.255&lt;/dd&gt;&lt;/dl&gt; &lt;/li&gt; &lt;li&gt;Save the file by type :wq &lt;/li&gt; &lt;li&gt;Restart networking by running the following  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;sudo /etc/init.d/networking restart &lt;/dd&gt; &lt;/dl&gt; &lt;/li&gt; &lt;li&gt;From the host machine SSH to the Guest machine by running: ssh  test@192.168.56.2 &lt;/li&gt; &lt;li&gt;In order to install the VirtualBox Guest Tools the Linux build tools and kernel headers will have to be installed to support compiling the VirtualBox kernel modules. Install the build tools and kernel headers by running the following from the Virtual Machine:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;sudo apt-get update  &lt;p&gt; sudo apt-get install build-essential linux-headers-`uname -r`  &lt;/p&gt;&lt;/dd&gt;&lt;/dl&gt; &lt;/li&gt; &lt;li&gt;From the Virtual Machines window go to Devices &gt; Install Guest  Additions &lt;/li&gt; &lt;li&gt;Back at the machines command prompt run the following to mount the CD ROM and install the Tools:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;sudo mkdir /media/cdrom  &lt;p&gt; sudo mount /dev/cdrom /media/cdrom/  &lt;/p&gt;&lt;p&gt; cd /media/cdrom  &lt;/p&gt;&lt;p&gt; sudo ./VBoxLinuxAdditions-x86.run  &lt;/p&gt;&lt;/dd&gt;&lt;/dl&gt; &lt;/li&gt; &lt;li&gt;Remove the network card settings so this machine can act as a  template for creating other machines by running the following:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;sudo rm /etc/udev/rules.d/70-persistent-net.rules &lt;/dd&gt; &lt;/dl&gt; &lt;/li&gt; &lt;li&gt;Shut the machine by running: sudo halt &lt;/li&gt; &lt;li&gt;Back in Oracle VM VirtualBox choose File &gt; Export Appliance and  select Ubuntu JeOS 10.04 from the list.  &lt;/li&gt; &lt;li&gt;Browse to a location on the system to store the Appliance. &lt;/li&gt; &lt;/ol&gt; That's it! Now this VM template can serve as the base for all of the other machines to be used for testing.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" font-weight: bold; font-size:24px;"&gt;Provisioning Virtual Machines&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt; To Provision a new Virtual Machine for use with the various  configurations do the following:  &lt;/p&gt;&lt;ol&gt; &lt;li&gt;From Oracle VM VirtualBox go to File &gt; Import Appliance &lt;/li&gt; &lt;li&gt;Browse to where the Appliance was exported and select Ubuntu JeOS 10.04.ovf &lt;/li&gt; &lt;li&gt;On the Appliance Import Settings screen change the Name field to a new unique name, for example: Test VM 1 &lt;/li&gt; &lt;li&gt;Clicking Finish will start the import process. Once completed a new Virtual Machine should be in the list called Test VM 1 &lt;/li&gt; &lt;li&gt;Highlight the new Virtual Machine and click Start &lt;/li&gt; &lt;li&gt;Logon to the machine with the username/password of test/test. &lt;/li&gt; &lt;li&gt;One the machine is booted, configure a unique static IP address by modifying /etc/network/interfaces as follows:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;sudo vim /etc/network/interfaces&lt;br /&gt;&lt;br /&gt;# Testing network interface&lt;/dd&gt;&lt;dd&gt;auto eth1&lt;/dd&gt;&lt;dd&gt;iface eth1 inet static&lt;/dd&gt;&lt;dd&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address 192.168.56.x&lt;/dd&gt;&lt;/dl&gt; &lt;/li&gt; &lt;li&gt;Change the hostname of the VM as follows:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;sudo vim /etc/hostname&lt;br /&gt;&lt;br /&gt;ts-vm1 &lt;/dd&gt; &lt;/dl&gt; &lt;/li&gt; &lt;li&gt;Modify /etc/hosts and change the entry for 127.0.1.1  ubuntu.example.com as follows:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;127.0.1.1       ts-vm1.example.com        ts-vm1&lt;/dd&gt; &lt;/dl&gt; &lt;/li&gt; &lt;li&gt;Restart networking in Ubuntu to apply the changes:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;sudo /etc/init.d/networking restart&lt;br /&gt;&lt;br /&gt;sudo /etc/init.d/hostname start &lt;/dd&gt; &lt;/dl&gt; &lt;/li&gt; &lt;li&gt;It should now be possible to attach to the new VM using the IP  address set above from the host as follows:  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt; &lt;dt&gt; &lt;/dt&gt;&lt;dd&gt;ssh test@192.168.56.x &lt;/dd&gt; &lt;/dl&gt; &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;  &lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6221085736081443358-5032549254759562532?l=fossninja.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fossninja.blogspot.com/feeds/5032549254759562532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fossninja.blogspot.com/2010/07/ubuntu-jeos-virtual-appliances-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221085736081443358/posts/default/5032549254759562532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221085736081443358/posts/default/5032549254759562532'/><link rel='alternate' type='text/html' href='http://fossninja.blogspot.com/2010/07/ubuntu-jeos-virtual-appliances-in.html' title='Ubuntu JeOS Virtual Appliances in VirtualBox'/><author><name>Jamie L Sammons</name><uri>http://www.blogger.com/profile/01094936473480810087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_8LPJccLcve0/SphX3Ky2tfI/AAAAAAAAAKs/R0AufaA2ciA/S220/Tux-Ninja.png'/></author><thr:total>0</thr:total></entry></feed>
