Brian C. Lane
Brian C. Lane
Creating OpenStack images with livemedia-creator

I was going to write about using mock to make live iso's without using virt-install, but this week is the OpenStack Summit and one of the things you can use livemedia-creator (lmc) for is making disk images for use with OpenStack.

If you followed the instructions in my previous post on creating live isos you already have everything you need except the kickstart and OpenStack. I'm not going to cover how to setup OpenStack, I used the instructions from the RDO project Quickstart without too much trouble.

If you don't have lmc setup, take a look at the Installation part of my post for details on what needs to be installed and setup.

The kickstart I am using for this is available from here on the lorax github repo, it is a minimal install with the addition of cloud-init and cloud-utils-growpart to make sure the system is setup properly when booted by OpenStack.

You should edit the url line to point to a Fedora 22 repository and optionally add a proxy.

Building the qcow2 disk image

The OpenStack images are stored in glance which can handle qcow2 images. This reduces the storage space and speeds up the import time. Create the image by running:

sudo livemedia-creator --make-disk --qcow2 --iso=./f22-boot.iso --ks=./fedora-openstack.ks --image-name=f22-openstack-minimal.img

This will use virt-install to produce a qcow2 disk image that can be imported into OpenStack. Copy the resulting image from /var/tmp/f22-openstack-minimal.img and on your OpenStack server import it into glance like this:

glance image-create --name "f22-minimal" --is-public true --disk-format qcow2 --container-format bare --file ./f22-openstack-minimal.img

That's all there is to it, your image is now available to be used in OpenStack.


Creating live isos with livemedia-creator

In this post I am going to describe how to create bootable live isos using livemedia-creator (lmc). It was created so that the same Anaconda installer logic would be used for installing systems and creating bootable media like the live iso. lmc can also be used to create disk images …

Read More
Creating the Anaconda boot.iso with lorax

Fedora 22 is almost here, so I thought I'd write a couple posts on how to use lorax and livemedia-creator to create bootable Fedora images. I'll start with lorax. It is used to create the Anaconda boot.iso which is used to install systems using a network connection. You can …

Read More
Saving the state for Home Media Server

Home Media Server is a Roku application for streaming video from a http server. I started the project in 2009 after Roku released the SDK for their devices. Originally it was a server and a client, but I rewrote it in 2010 as just a client so that the only …

Read More
Setup oath ssh login on Fedora

There are occasions where I’d like to be able to ssh to a system without using the password or having to setup a ssh key. Another alternative for authentication is the pam_oath module which allows you to use OATH applications like FreeOTP or Google Authenticator for 2-factor logins. Start …

Read More
Deploying clortho with ansible and venv

I have started using Ansible to manage the few services that I still have running around here. I want to deploy clortho to a user on the system I use for serving up movies to my Roku players. I need to copy the source, setup a venv with the dependencies …

Read More
https is now the default protocol

On June 5th the EFF called for people to Reset the Net and do something to enhance their privacy on the net. I have put off switching to https for my sites because I host them using S3 and CloudFront, and up until recently it was extremely expensive to use …

Read More

Receive Updates

ATOM

Contacts