From Fedora Project Wiki

Revision as of 09:07, 18 September 2012 by Eglynn (talk | contribs) (Created page with "{{QA/Test_Case |description=Create a builder instance to facilitate creation of a bootable volume |setup= Download and register some images to use for our builder instance: ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Create a builder instance to facilitate creation of a bootable volume

Setup

Download and register some images to use for our builder instance:

$> wget http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz
$> gunzip cirros-0.3.0-x86_64-uec.tar.gz 
$> tar xvf cirros-0.3.0-x86_64-uec.tar 
$> glance add name=cirros-aki is_public=true container_format=aki disk_format=aki < cirros-0.3.0-x86_64-vmlinuz 
$> glance add name=cirros-ari is_public=true container_format=ari disk_format=ari < cirros-0.3.0-x86_64-initrd 
$> glance add name=cirros-ami is_public=true container_format=ami disk_format=ami "kernel_id=$(glance index 

How to test

Boot up the instance:

$> INSTANCE=builder
$> nova boot --flavor 1 --image eb963c88-cd81-447f-8232-783d60265435 $INSTANCE

Expected Results

The instance should become active:

$> nova list

Capture the private IP address:

$> IP_ADDR=$(nova show $INSTANCE