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.
Read more →

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.

Read more →

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).
Read more →

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 ~/.
Read more →