Skip to content →

Month: December 2016

How to encrypt your home with guestfs

Continued from For security reasons, there may be the need of encrypting several partitions of volumes on your images.And you can have a pre-created image with that encryption on place, instead of having to do manually after boot. This can be done with guestfs and luks. The following script will show how to perform that encryption and mount it automatically: #!/usr/bin/env pythonimport binasciiimport guestfsimport os # remove old generated drivetry:    os.unlink(“/tmp/overcloud-full-partitioned.qcow2”)except:    pass g = guestfs.GuestFS(python_return_dict=True) # import old and new imagesprint(“Creating new repartitioned image”)g.add_drive_opts(“/tmp/overcloud-full.qcow2″, format=”qcow2”, readonly=1)g.disk_create(“/tmp/overcloud-full-partitioned.qcow2”, “qcow2”, 10 * 1024 * 1024 * 1024) #10Gg.add_drive_opts(“/tmp/overcloud-full-partitioned.qcow2″, format=”qcow2”, readonly=0)g.launch() # create…

Continue reading How to encrypt your home with guestfs

Comments closed

Start using whole disk images with TripleO

What are the differences between flat partition image and whole disk image? In order to understand this article, you first need to know what a flat partition image and a whole disk image are, and the differences between each other. flat partition image: disk image that just contains all the desired content in a filesystem, but does not carry any information about partitions on it, and it does not include a bootloader. In order to boot from a whole disk image, the kernel and ramdisk images need to be passed independently when booting, relying on an external system to mount.…

Continue reading Start using whole disk images with TripleO

Comments closed

Deploy a custom builder image on OpenShift

In the last article on creating custom s2i builder images we created the (intentionally ridiculous) pickle-http sample, and today we’re going to go ahead and deploy it under openshift. It’s the easy part, when it comes down to it. It’s rather fast, and cockpit (the web GUI) provides some nice clean information about the builds, including logs and links to webhooks to trigger builds.

Continue reading Deploy a custom builder image on OpenShift

Comments closed

Using OpenShift’s s2i custom builder

Let’s use OpenShift’s s2i custom building functionality to make a custom image build. Wait, what’s s2i? It’s “source-to-image”. The gist here is that you plug into OpenShift’s dashboard a git URL, and it combines it into an image. There’s already “builder images” pre-loaded into OpenShift, and while those are handy… If you’re doing anything more than a bog standard web app – you’re going to need a little more horsepower to put together a custom image. That’s why we’re going to look at the work-flow to create a custom builder image using s2i.

Continue reading Using OpenShift’s s2i custom builder

Comments closed

Hello Ansible CIRA!

Today we’re going to look at CIRA. CIRA is a tool to deploy a CI reference architecture to test OpenStack. I’m going to go with the Docker deployment option, as that’s the environment that I tend towards. Today we’ll get it up and running here.

Continue reading Hello Ansible CIRA!

Comments closed

Let’s try Kuryr!

We’re going to spin up a simple implementation of Kuryr. Kuryr is a Docker network driver for Neutron that I’m pretty excited about. And especially pumped to get it to run on OpenShift (and doubly so there, OpenShift on OpenStack). Of all of the things that’s gotten me exicted is this video from OpenStack Summit Austin. We’ll use an existing openstack to spin up an instance, and in that instance we’ll run devstack (I guess that would be Quintiple-O in my case as this is a devstack ontop of Triple-O). On that box, we’ll run kuryr. I recently visited the crew in #openstack-kuryr on Freenode and I found that they’re currently working on kuryr for openshift-on-openstack (awesome!). I can’t hardly wait.

Continue reading Let’s try Kuryr!

Comments closed

Create network bridge with nmcli for libvirt

In order to get libvirt working properly with bridged networking, we first need to configure our local network to have network bridge slaved to our wired ethernet adapter. I don’t have to set this up too often (as once I do, it just sits there running happily). Here are some basic steps I did to get this going locally.
Add a bridge interface via Network Manager Before we get to adding a new network interface to libvirt, we’ll add our bridge interface to our host system via Network Manager.

Continue reading Create network bridge with nmcli for libvirt

Comments closed