C&I Wiki Portal/OCP Ready: Difference between revisions

From OpenCompute
Jump to navigation Jump to search
No edit summary
No edit summary
Line 68: Line 68:


Additionally, the OCP Ready Thumb Drive is based on old code and is not really considered reliable.  It's a nice way to demo and explore, but not really something you should be using to pre-test your hardware.
Additionally, the OCP Ready Thumb Drive is based on old code and is not really considered reliable.  It's a nice way to demo and explore, but not really something you should be using to pre-test your hardware.
=== Build your own ===
Building your own is not terribly difficult.  The following will allow you to build your own USB Thumbdrive and assumes you are using Ubuntu to do the building. ''''Note: This is not the same process we used to create the original USB images, that process is far more involved, but this will suffice for getting you a bootable device.''''
You will need the following:
* A USB thumb drive that is at least 2GB in size
* A Ubuntu Desktop or Server 14.04 LTS ISO image. (Later versions will also work)
** We use the Desktop image to provide a more useful system.  Please note that the actual test tools are console based so using Desktop or Server here is completely at your discretion.
* A computer running Ubuntu (Desktop here, we need the GTK Tools for the following, there is likely a way to do this purely from console, this is just easier and faster to describe).
# Insert the USB thumb drive into your computer running Ubuntu Desktop.
# Open the Dash (Hit the Windows key or click on the top most icon on the Unity Panel).
# Type USB and when you see '''Startup Disk Creator''' click on that to launch the tool.
# Set the following items in USB Creator GTK (Also known as Startup Disk Creator).
## Under '''Source disc image''', click '''Other''' and locate your Ubuntu ISO image and click '''Open'''.  It should now appear in the upper display.
## In '''Disk to use''', select the USB Thumb Drive you wish to build.
## Click '''Erase Disk''' to clear the disk of all data.  You will need to provide your password to do this.
## Select '''Stored in reserved extra space''' and move the slider to at least 1GB, preferably more if your Thumb Drive has the space.
# Click '''Make startup disk'''.
## This will take a few moments.  You will see a password prompt that you must use before the bootloader can be written to the thumb drive.
# When complete, exit the Startup Disk Creator.
Once the above steps are complete, you should now have a bootable Ubuntu USB Thumb drive with persistent storage of between 1 - 4 GB.  Now you need to boot something from that and complete the next steps to have a bootable USB drive with OCP Ready on it.
# Insert the USB thumb drive into a machine that has internet access.
# Boot the machine and select the USB thumb drive from the boot menu if that machine doesn't automatically boot from USB.
# At the boot menu, select '''Try Ubuntu without installing'''.  This is the default selection.
# After Ubuntu has booted, open a console by opening the Dash and typing "Terminal" into the search box and clicking on the Terminal icon.
# In the Terminal, perform the following steps:
## <code>$ sudo add-apt-repository ppa:opencompute-developers/ocp-certification-tools-ppa</code>
### Hit Enter to add the PPA when prompted.
## <code>$ sudo add-apt-repository ppa:hardware-certification/public</code>
### Again, hit Enter to add the PPA when prompted.

Revision as of 14:49, 8 April 2015

OCP Ready Test Suite Packages

OCP Ready Test Suite is a different, more generalized test to ensure your hardware works and could be ready for full OCP Certification.

Installing

Installing is pretty easy. You will need a couple things to get started:

  • A SUT (Server Under Test). This is the system you are going to be testing.
  • A second machine on the same LAN segment running iperf in server mode

The OCP Ready packages are built for Ubuntu 14.04, 14.10 and 15.04. They are based on the new OCP Certification Suite tool which is in turn based on the new Checkbox-NG tool from Canonical.

To install:

  • Install Ubuntu 14.04, 14.10 or 15.04 to the SUT
  • Once Installation is complete and the SUT is rebooted, log in as the non-privileged user.
  • Once logged in:
$ sudo add-apt-repository ppa:opencompute-developers/ocp-certification-tools-ppa
$ sudo add-apt-repository ppa:hardware-certification/public
$ sudo apt-get update
$ sudo apt-get install opencompute-ready

And that will install all the necessary packages.

Configuring and running the Tool

Edit the file /etc/xdg/opencompute-testing.conf

Uncomment the following four lines:

#TEST_TARGET_FTP = your-ftp-server.example.com
#TEST_USER = anonymous
#TEST_PASS = password
#TEST_TARGET_IPERF =  your-iperf-server.example.com


Edit the TEST_TARGET_IPERF line replacing your-iperf-server.example.com with the IP address (Or FQDN if applicable) of your iperf server

Now simply issue the command:

$ opencompute-ready

and follow the prompts.

Obtaining the Source Code

The tools are fully open source under a GPL v3 license and freely available for download here:

http://code.launchpad.net/opencompute/opencompute-testing

OR via bazaar:

bzr branch lp:opencompute/opencompute-testing


OCP Ready Thumbdrive

NOTE: The Thumbdrive is being deprecated and likely will not be maintained. Eventually, this will be updated with instructions for creating your own

The files for the thumbdrive will be available here:

http://people.canonical.com/~jlane/ocp-thumb-drive

Note that this is a rather large download (> 1GB) and will take some time to pull all the files.

The README.thumbdrive file includes instructions on building and using the OCP Ready Thumbdrive.

There is also a /OCP directory that includes some OCP Ready related documentation.

Additionally, the OCP Ready Thumb Drive is based on old code and is not really considered reliable. It's a nice way to demo and explore, but not really something you should be using to pre-test your hardware.

Build your own

Building your own is not terribly difficult. The following will allow you to build your own USB Thumbdrive and assumes you are using Ubuntu to do the building. 'Note: This is not the same process we used to create the original USB images, that process is far more involved, but this will suffice for getting you a bootable device.'

You will need the following:

  • A USB thumb drive that is at least 2GB in size
  • A Ubuntu Desktop or Server 14.04 LTS ISO image. (Later versions will also work)
    • We use the Desktop image to provide a more useful system. Please note that the actual test tools are console based so using Desktop or Server here is completely at your discretion.
  • A computer running Ubuntu (Desktop here, we need the GTK Tools for the following, there is likely a way to do this purely from console, this is just easier and faster to describe).
  1. Insert the USB thumb drive into your computer running Ubuntu Desktop.
  2. Open the Dash (Hit the Windows key or click on the top most icon on the Unity Panel).
  3. Type USB and when you see Startup Disk Creator click on that to launch the tool.
  4. Set the following items in USB Creator GTK (Also known as Startup Disk Creator).
    1. Under Source disc image, click Other and locate your Ubuntu ISO image and click Open. It should now appear in the upper display.
    2. In Disk to use, select the USB Thumb Drive you wish to build.
    3. Click Erase Disk to clear the disk of all data. You will need to provide your password to do this.
    4. Select Stored in reserved extra space and move the slider to at least 1GB, preferably more if your Thumb Drive has the space.
  5. Click Make startup disk.
    1. This will take a few moments. You will see a password prompt that you must use before the bootloader can be written to the thumb drive.
  6. When complete, exit the Startup Disk Creator.

Once the above steps are complete, you should now have a bootable Ubuntu USB Thumb drive with persistent storage of between 1 - 4 GB. Now you need to boot something from that and complete the next steps to have a bootable USB drive with OCP Ready on it.

  1. Insert the USB thumb drive into a machine that has internet access.
  2. Boot the machine and select the USB thumb drive from the boot menu if that machine doesn't automatically boot from USB.
  3. At the boot menu, select Try Ubuntu without installing. This is the default selection.
  4. After Ubuntu has booted, open a console by opening the Dash and typing "Terminal" into the search box and clicking on the Terminal icon.
  5. In the Terminal, perform the following steps:
    1. $ sudo add-apt-repository ppa:opencompute-developers/ocp-certification-tools-ppa
      1. Hit Enter to add the PPA when prompted.
    2. $ sudo add-apt-repository ppa:hardware-certification/public
      1. Again, hit Enter to add the PPA when prompted.