Prefetch Technologies // Keeping your cache lines cozy

Archive

Posts in Virtualization

Create sasl accounts for libvirt

virtualizationJun 16, 2009 2 min read

I have been playing around with libvirt, which is a virtualization toolkit that sits on top of the native virtualization technologies in various operating systems. Libvirt provides built-in support for managing remote nodes, which is useful when you need to enable one or more virtualization properties, or when you need to perform some type of administrative action (e.g., migrate a host to another machine). To allow secure access, libvirt supports transport layer security as well as authentication. TLS is typically used to secure the network transport, and SASL is used to provide authentication…

$ read more →

Migrating KVM hosts with virsh

virtualizationJun 15, 2009 1 min

I played around with KVM live migration over the weekend, and it worked flawlessly. When I was first getting the environment (i.e., /etc/libvirt/libvirtd.conf, /etc/sysconfig/libvirt, SASL credentials, etc.) set up to allow migrations to work, I was greeted with the following error: This message wasn't the most descriptive error I've ever read, so I turned to the libvirt source to see what was going on. I saw the following comment: And immediately fired up virsh to double check the migrate syntax I was using: I had accidently run the migrate command from the destination host instead of the source host. Once I knew what was going on, I fired off the migrate from the source host and everything worked flawlessly: virsh # migrate --live kvmnode1 qemu+tcp://thecrue/system virsh # I really dig KVM, and have recently become somewhat smitten with openvz…

$ read more →

Fixing Slow Fedora PXE installations under KVM

virtualizationJun 9, 2009 1 min

I have been doing a lot of work with KVM, and bumped into an odd issue when PXE booting a Fedora 10 KVM guest. The installer (anaconda) would progress to the point where it would try to locate and configure the network interface, but would spit out the following error and wait for operator input: After doing a bit of profiling, I noticed that the guest was having issues initializing the Realtek interface (this is the default interface type presented to KVM guests by QEMU). To see if a different interface type cured my problems, I changed the NIC model to an e1000 by adding the "model" tag to the KVM guest XML file: Once I made this simple change, the PXE install worked flawlessly. This was a fun problem to debug, and I learned a TON about QEMU, Anaconda, libvirt and several Linux profiling tools in the process…

$ read more →

The Fedora 10 qemu-kvm binary doesn't support the -curses option

virtualizationJun 4, 2009 1 min

I have been playing with the serial console capabilities that are part of qemu, and noticed the following error when I ran qemu-kvm with the "-curses" option on a Fedora 10 host: The manual page indicates this should be a valid option: -curses Normally, QEMU uses SDL to display the VGA output. With this option, QEMU can display the VGA output when in text mode using a curses/ncurses interface. Nothing is displayed in graphical mode. But closer inspection of the qemu-kvm binary proves otherwise: I filed Fedora bug 504226 to get this option added.

$ read more →

Too many option ROMS bug

virtualizationJun 3, 2009 1 min

I created a new KVM host last night, and was greeted with the error "Too many option ROMS" during initialization: It turns out this is Redhat bug 473137, which is fixed in the latest etherboot package. If you are running Fedora, you can install this from the testing repository.

$ read more →