coreos-image-builder/coreos
Jay Faulkner 81a73a468b Fix minor documentation issues
I updated the URL to point to the correct path to the uploaded IPA
ramdisk, as well as adding a note about running IPA inside Virtual
Media.

Change-Id: Ib4f3da5ea9fd0172e9d4ff018fd5a2890ddb978b
2014-09-08 11:23:40 -07:00
..
oem Migrate CoreOS to use coreos-cloudinit 2014-07-09 16:46:26 -07:00
build_coreos_image.sh Clean up image build script 2014-08-26 13:08:04 -07:00
coreos-oem-inject.py Bump CoreOS to latest stable 2014-07-29 23:04:16 +00:00
docker_build.bash Uniquely identify builds to prevent race 2014-04-17 11:15:29 -07:00
docker_clean.bash img(coreos): Initial commit of CoreOS image build 2014-03-04 15:16:35 -08:00
full_trusty_build.sh Clean up image build script 2014-08-26 13:08:04 -07:00
Makefile Use docker import/export to make image smaller 2014-04-17 10:05:56 -07:00
README.rst Fix minor documentation issues 2014-09-08 11:23:40 -07:00
requirements.txt Minor fixes to image build 2014-04-14 13:33:04 -07:00

ironic-python-agent CoreOS Image builder.

Builds a CoreOS image suitable for running the ironic-python-agent on a server.

Requirements

Must be run from a linux machine with a working docker installation and python-pip

Run the following locally or from a virtualenv to install the python requirements

pip install -r requirements.txt

Booting the agent with this image

PXE

The image is typically booted via PXE. Here's an example ipxe configuration (replace my-web-server with the IP/hostname of the http server hosting your image):

#!ipxe

dhcp
kernel http://my-web-server/coreos_production_pxe.vmlinuz
initrd http://my-web-server/coreos_production_pxe_image-oem.cpio.gz
boot

You can either embed a configuration file into the image, or set configuration options via the kernel command line. The only value most people will need is:

  • ipa-api-url=http://ironic-api-server:6385

But any config value supported in the agent can be given to the agent via the kernel command line, which allows the use of the same agent image across environments because it contains no state.

Virtual Media

Openstack Ironic supports booting IPA via virtual media in the form of an ISO image. Please see Ironic documentation for details on running in this configuration.

Getting the agent

Download

If you don't want to build your own image, you can download a copy of ironic-python-agent ramdisk and kernel, built using CoreOS, at: http://tarballs.openstack.org/ironic-python-agent/coreos/coreos_production_pxe.vmlinuz and http://tarballs.openstack.org/ironic-python-agent/coreos/coreos_production_pxe_image-oem.cpio.gz

Build instructions

To create a docker repository and embed it into a CoreOS pxe image:

make

To just create the docker repository in oem/container.tar.gz:

make docker

To embed the oem/ directory into a CoreOS pxe image:

Note: In order to have the ability to ssh into the created image, you need to pass ssh keys in via the kernel command line for CoreOS, or create oem/authorized_keys with the keys you need added before building the image.

make coreos