Creating Custom ExoGENI Images using Virtual Box

This post describes how to create a custom ExoGENI image using Virtual Box.  Note that these instructions can be used to create custom ExoGENI images from many other types of machines (virtual and otherwise).

Background:

We will be using the ExoGENI image snapshot mechanism described in a previous post. These instructions assume you have read the previous post and are familiar with the procedure it describes.

Creating a Virtual Box VM:

Virtual Box is a free open source application for running virtual machines.  Typically Virtual Box is used to run virtual machines on a desktop or laptop.

1.  Download the Virtual Box software.  Follow the instructions for installing Virtual Box on your machine.

2.  Download the installation ISO for your favorite Linux distribution (OR obtain a Virtual Box compatible image).

3.  Use Virtual Box to create a new virtual machine from your Linux ISO (OR import your existing image into Virtual Box)

Creating the ExoGENI image:

1.  Install the NEuca tools. The tools are available as an .rpm, .deb, or source.

Prepare the VM for the NEuca guest tools.  The NEuca tools depend on several python packages and the iSCSI tools which will need to be installed before the guest tools.  Also, you will need to install ssh to be able to access the VM after it boots on ExoGENI.

Debian/Ubuntu:

> sudo apt-get install python python-boto python-daemon python-ipaddr python-netaddr open-iscsi python-lockfile ssh

Get and install the NEuca guest tools:

> wget http://software.exogeni.net/repo/exogeni/neuca-guest-tools/neuca-guest-tools_1.4-1_all.deb
> dpkg -i neuca-guest-tools_1.4.1_all.deb

Centos:

> rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
> yum install python python-devel python-boto python-daemon python-ipaddr python-netaddr

Get and install the NEuca guest tools:

> wget http://software.exogeni.net/repo/exogeni/neuca-guest-tools/neuca-guest-tools-1.4-1.noarch.rpm
> rpm -ivh neuca-guest-tools-1.4-1.noarch.rpm

2.  The remainder of the instructions are the same as capturing an image from the previous post (starting at step “3. Get the snapshot script”).

Things that might go wrong:

1.   You need to allow root to login with keys.

In /etc/ssh/sshd_config, add to or modify the file to include the line:

PermitRootLogin without-password

And you must disable selinux.  Modify /etc/selinux/config to include the line:

SELINUX=disabled

Have something to add?

Loading Facebook Comments ...