Docker, trusted builds, and Fedora 20

Docker is a hot topic in the Linux world at the moment and I decided to try out the new trusted build process. Long story short, you put your Dockerfile along with any additional content into your GitHub repository, link your GitHub account with Docker, and then fire off a build. The Docker index labels it as “trusted” since it was build from source files in your repository. I set off to build a Dockerfile to provision a container that would run all of the icanhazip services....

2014-03-26 · 2 min · Major Hayden

virt-manager: ‘NoneType’ object has no attribute ‘cpus’

After upgrading my Fedora 20 Xen hypervisor to virt-manager 1.0.0, I noticed that I couldn’t open the console or VM details for any of my guests. Running virt-manager --debug gave me the following traceback: Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/engine.py", line 803, in _show_vm_helper details = self._get_details_dialog(uri, uuid) File "/usr/share/virt-manager/virtManager/engine.py", line 760, in _get_details_dialog obj = vmmDetails(con.get_vm(uuid)) File "/usr/share/virt-manager/virtManager/details.py", line 530, in __init__ self.init_details() File "/usr/share/virt-manager/virtManager/details.py", line 990, in init_details for name in [c....

2014-03-06 · 1 min · Major Hayden

Installing Xen on Fedora 20

I’ve written about installing Xen on Fedora 19 and earlier versions on this blog before. Let’s tackle it on Fedora 20. Start with the Xen hypervisor and the basic toolset first: yum -y install xen xen-hypervisor xen-libs xen-runtime systemctl enable xend.service systemctl enable xendomains.service Get GRUB2 in order: # grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2 Fedora, with Linux 3.13.4-200.fc20.x86_64 Fedora, with Linux 0-rescue-c9dcecb251df472fbc8b4e620a749f6d Fedora, with Xen hypervisor # grub2-set-default 'Fedora, with Xen hypervisor' # grub2-editenv list saved_entry=Fedora, with Xen hypervisor # grub2-mkconfig -o /boot/grub2/grub....

2014-02-28 · 2 min · Major Hayden

PXE boot Fedora 19 using a Mikrotik firewall

Outside of the RHCA exams, I haven’t configured a PXE system for my personal needs. A colleague demoed his PXE setup for me and I was hooked. Once I realized how much time I could save when I’m building and tearing down virtual machines, it made complete sense. This post will show you how to configure PXE and tftpd in Mikrotik’s RouterOS to boot and install Fedora 19 (as well as provide rescue environments)....

2013-07-23 · 3 min · Major Hayden

Boot VM’s with virt-manager and libvirt with ISO’s stored remotely via samba/cifs

Pairing virt-manager with KVM makes booting new VM’s pretty darned easy. I have a QNAP NAS at home with a bunch of ISO’s stored in share available to guests and I wanted to use that with libvirt to boot new VM’s. (By the way, if you’re looking for an off-the-shelf NAS that is built with solid hardware and pretty reliable software, try one of the QNAP devices. You still get access to many of the usual commands that you would normally find on a Linux box for emergencies....

2013-07-07 · 2 min · Major Hayden

Red Hat Summit 2013 Recap

The 2013 Red Hat Summit was my second one and I enjoyed it more than last year. Quite a few people asked for a recap and some takeaways from the Summit and that’s what I hope to do in this post. Keynotes It’s quite apparent that Red Hat is taking a more assertive - and sometimes aggressive - stance against closed source, overpriced solutions that prevent consumers from getting things done....

2013-06-15 · 5 min · Major Hayden

Installing the Xen hypervisor on Fedora 19

It’s been a little while since I last posted about installing Xen on Fedora, so I figured that Fedora 19’s beta release was as good a time as any to write a new post. To get started, you’ll need to get Fedora 19 installed on your favorite hardware (or virtual machine). Install the Xen hypervisor and tools. Also, ensure that both of the necessary daemons are running on each boot:...

2013-06-03 · 3 min · Major Hayden

Migrate KVM virtual machines from CentOS 6 to Fedora 18 without the luxury of shared storage

I’ve converted one of my KVM hypervisors from CentOS 6 to Fedora 18 and now comes the task of migrating my virtual machines off of my single remaining CentOS 6 hypervisor. This is definitely on a budget, so there’s no shared storage to make this process easier. Here’s how I did it: Migrate the logical volume My first VM to migrate is my Fedora development VM where I build and test new packages....

2013-05-22 · 3 min · Major Hayden

Changing your ssh server’s port from the default: Is it worth it?

Changing my ssh port from the default port (22) has been one of my standard processes for quite some time when I build new servers or virtual machines. However, I see arguments crop up regularly about it (like this reddit thread or this other one). Before I go any further, let’s settle the “security through obscurity” argument. (This could probably turn into its own post but I’ll be brief for now....

2013-05-15 · 3 min · Major Hayden

virt-manager won’t release the mouse when using ssh forwarding from OS X

The latest versions of virt-manager don’t release the mouse pointer when you’re doing X forwarding to a machine running OS X. This can lead to a rather frustrating user experience since your mouse pointer is totally stuck in the window. Although this didn’t affect me with CentOS 6 hosts, Fedora 18 hosts were a problem. There’s a relatively elegant fix from btm.geek that solved it for me. On your Mac, exit X11/Xquartz and create an ~/....

2013-03-20 · 1 min · Major Hayden