update to enable config drive and IP config via user-data

This change updates the build scripts enables config drive while removing
old seed data out of the images.

Change-Id: I999322e4cb7cc9dc2ccdbc90af658e4cc2b7b63e
This commit is contained in:
Mark McClain 2015-04-12 17:29:41 -04:00
parent 7e789c4d14
commit 92cf4d83eb
6 changed files with 31 additions and 8 deletions

View File

@ -1,10 +1,22 @@
This directory contains elements necessary to build the Akanda appliance with
the diskimage-builder from the OpenStack project.
Install via:
1) Install diskimage-builder via:
pip install diskimage-builder
pip install diskimage-builder
or source at:
http://git.openstack.org/cgit/openstack/diskimage-builder
2) Ensure a few require packages are installed:
- debootstrap
- qemu-utils
3) Add elements to path
$ export ELEMENTS_PATH=~/akanda-appliance-builder/diskimage-builder/elements
4) Build image
$ DIB_RELEASE=wheezy DIB_EXTLINUX=1 disk-image-create debian vm akanda
5) If you're testing with kvm, don't forget to build the nocloud iso image
or source at:
http://git.openstack.org/cgit/openstack/diskimage-builder

View File

@ -1,4 +1,3 @@
install-static
cloud-init-nocloud
cloud-init-datasources
source-repositories
ansible

View File

@ -0,0 +1 @@
export DIB_CLOUD_INIT_DATASOURCES="ConfigDrive, NoCloud"

12
nocloud/README.md Normal file
View File

@ -0,0 +1,12 @@
The files in this directory help to make test nocloud disk image:
genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data
You can test the image in kvm without OpenStack by invoking kvm like this:
kvm -m 1024 -curses -net nic,model=virtio,macaddr=52:54:00:12:34:56 \
-net tap,ifname=tap0 \
-drive file=image.qcow2,if=virtio \
-drive file=seed.iso,if=virtio

View File

@ -15,8 +15,7 @@ debug:
- verbose: true
bootcmd:
- ip link list
- ip addr list
- /usr/local/bin/akanda-configure-management 52:54:00:12:34:56 fdca:3ba5:a17a:acda:5054:ff:fe12:3456
users:
- name: akanda