How to Create a Custom Ubuntu 12.04 Installation Image

Canonical, the team behind Ubuntu, is due to release its latest long-term support (LTS) edition this April, marking the first of their LTS releases to offer five years of support. For users, 12.04 means unprecedented stability, and although the release is still in Beta, it’s not too early to start planning for April, and to learn how to create custom installation images.  Based on the most up-to-date LTS release, a custom image saves time, and removes the hassle of individually deploying your company’s software across workstations or products.

We’ll use Ubuntu’s OEM Configuration Mode to create a modified installation, and Clonezilla to capture an image of the system after we’re done. OEM mode allows administrators to customize the installation, and prompt users to create an account, but if your setup is different, simply select the normal installation mode.

For this tutorial, we’ll need a copy of Ubuntu 12.04, a Clonezilla Live bootable device (CD/DVD, USB Flash drive, or HDD), a system to install Ubuntu, and an additional drive large enough to store the modified image. (The size of the backup drive will depend on what changes you make to the system, but I would recommend planning on at least 5 GB for the storage device.)

  • Boot the computer from the Ubuntu installation medium. At the splash screen, press F4 and select “OEM install,” and then install Ubuntu.
  • The user created during the installation stage will only be temporary, and removed before capturing the image.
  • When the computer reboots into OEM Configuration mode, make any necessary changes. This may include updating or adding packages, configuring specific settings, or loading your own software.
  • Run the “Prepare for shipping to end user” script on the desktop, or alternatively, “sudo oem-config-prepare”.
  • Shut down the computer, remove any Ubuntu installation media, and insert the Clonezilla Live drive.


  • Select “Clonezilla Live – default settings” from the boot screen.
  • Go through the menus, selecting the language, and keyboard layout. Select “Start Clonezilla” at the third menu.
  • Select “device-image” and “local-dev” to create the image on an attached drive.
  • With the backup drive inserted, and mounted, select the directory you’d like to save the image to.
  • Select beginner mode to use the default settings, and “save disk” or “save partition” depending on your setup. Name the image.
  • Select the source destination, and continue through the menu until Clonezilla has created the image.

When the capturing process is complete, the image is ready for deployment. Connect the bootable media, and the custom image to another system, and deploy the image using Clonezilla. For large scale deployments, consider a SolidLogic Core i5/i7 Rackmount System running Clonezilla Server Edition—a great setup for multi-casting in large scale deployments.

About Ruarri Serpa
Ruarri is an Assembly Technician, and joined the team in 2011. He studied Political Science, and most recently worked in Africa. He enjoys Irish music, sailing, traveling, and being a left-handed man in a right-handed world.
This entry was posted in The Hub and tagged , , . Bookmark the permalink.

10 Responses to How to Create a Custom Ubuntu 12.04 Installation Image

  1. Victor Schneider says:

    Did you know that the xine program can go full-screen in Linux running on the Cedarview platform, while mplayer can not? All you need is the xine plugin from ubuntu to complete the process, and firefox can display things formerly reserved for mplayer and the mplayer plugin.

  2. Ruarri Serpa says:

    Victor, Thanks for the insights. I haven’t checked out Mplayer on 12.04 yet for myself. What was your experience with the GStreamer codec packages?

  3. Peter says:

    In the many images/cloning that I have done with Clonezilla, I have found that it is best/easiest to have the drive to be imaged and the repository drive connected and powered up before booting to Clonezilla. This way all of the detection is done at boot and then the process goes as smooth as silk. Clonezilla is my “go-to” imaging/cloning software. It works as well on local media as it does on network shares. By the way, thanks for the tip on the OEM process.

  4. Ruarri Serpa says:

    Peter, Clonezilla is indeed a great tool – and good advice on the destination drive. Whether you’re preparing Ubuntu for internal use or external customers, OEM mode simplifies system management when you’re dealing with a lot of machines and users.

  5. Matthieu says:

    Thank you very much! I was just looking for this kind of information as I want to choose a Linux to install on a “smaller” computer that won’t need all the Office/Music programs.
    I’ll try that ASAP!

  6. Leonard says:

    is it possible to change the instalation menu with own logo’s for example ?

  7. Ruarri Serpa says:


    The Installation Menu is produced by Clonezilla, which seems to be what you’re looking to modify. I would look into that first, as I believe Clonezilla is using GRUB to create that menu.

  8. jc jones says:

    Will this method produce a live cd as well as an installation application?

  9. Ruarri Serpa says:

    This method only creates a image for deployment on Clonezilla – check out Ubuntu Customization Kit

  10. Rossco says:

    Will the cloned image from a laptop work perfectly on a desktop?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>