Shlrm.org Blag

W00t!

vim syntax hilighting for ruby/rails

by David Kowis on May.18, 2010, under Ruby, W00t!

http://www.vim.org/scripts/script.php?script_id=1567

Woot.

EDIT:

Man, this guy has all sorts of good stuff: http://www.vim.org/account/profile.php?user_id=9012

cucumber, rails, ruby, git-vim integration. VIM FTW!

Leave a Comment :, , more...

xen pv_ops domU

by David Kowis on May.01, 2010, under Linux, Source Mage, W00t!, fedora

…means I can finally pause/suspend a domU vm again!

Finding this information should’ve been obvious, but for some reason it wasn’t. Maybe I had some silly mental block or something. Anyways, get the kernel source from here. Then build it for your architecture. If you want to build a 32-bit kernel for some 32-bit domUs, and you’re running on 64-bit, it’s as easy as make ARCH=i386 <target>. This does work and I’ve verified it. Had to fool a Fedora domU into beleiving that it really was a 32-bit system.

I’ve found make tarbz2-pkg to be quite handy in packaging up the kernel to be deployed.

I have verified that this works in Xen 3.4.2 on a patched 2.6.29.6 kernel.

On my Xen 4.0 test box, it fails to suspend. I’m using the blktap2 stuff, and perhaps that doesn’t pause well. As far as I understand it, that blktap2 should not affect suspending, but I’m going to test it with some logical volume based vms. I usually use the lvm backed disks anyway, but the blktap2 stuff offers some interesting features, if it were to work. Not being able to pause stuff probably isn’t good, but again, I’m not sure what’s causing it.

Apparently, that is what’s causing it. The domU will pause and unpause just fine when using an lvm backed disk, rather than the blktap2 ones. I should test a couple of other combinations to see if things like tap:aio will behave, as that’s needed for nifty things like remus.

Leave a Comment :, more...

Xen 4.0 released

by David Kowis on Apr.07, 2010, under Source Mage, W00t!, fedora

Finally!

From the official page:

The Xen 4.0 release contains a number of important new features and updates including:

  • Blktap2 – High performance VHD implementation supporting snaphots and clonces including live snapshots
  • Netchannel2 – Support for new Smart NICs with multi-queue and SR-IOV functionality
  • Fault Tolerance – Live transactional synchronization of VM state between physical servers
  • Libxenlight – New library providing higher-level control of Xen between various toolstacks
  • PV-USB and VGA Pass-through

SourceMage has already updated packages for it.

There’s a repository and src RPMs available for Fedora here. Specifically the Xen 4.0 src RPM. I’ll try to remember to fire up a build on my xen DomU that I use to build RPMs for me :)

Leave a Comment :, , , , more...

Xen Stats Revised

by David Kowis on Mar.08, 2010, under Linux, W00t!

I had reimplemented some monitoring on my network and then I got to wondering if there was a revised version of the original xen-stats stuff I was using. Turns out there is. The site details instructions on how to set it up in cacti, and it works pretty well. I do wish there was a single graph to collect all for the hosts, instead of individual host graphs, but it’s not bad. Perhaps I’ll build a template that uses the data source and glues them all into one graph. But it provides reasonably accurate data, and it’s not difficult to set up.

Xen stats FTW!

(The UPS graphs I need to fix too, somethings broken in the PHP datasource it uses. So if you’ve got a reliable Network UPS Tools graphing source for cacti, other than this one, lemme know.)

Leave a Comment :, , , , , more...

Xen 3.4.2 rpms for Fedora 11 x86_64

by David Kowis on Nov.12, 2009, under Linux, W00t!, fedora

I was using xen 3.4.1 on my fedora 11 Domain0, but I couldn’t ever suspend anything. xm save always failed. Someone on IRC suggested that it was the guest kernel that was to blame. Turns out it was xen 3.4.1.

After many hours searching the intertubes for a srpm or a spec file for building xen 3.4.2 for fedora, I decided that I would hack an existing one to 3.4.2 and hope for the best.

It built after I removed a few patches. The patches mostly complained about being already applied, so I assume the bugs the patches were addressing were fixed in 3.4.2. I have generated rpms for x86_64 and put the spec file up on my site. Enjoy.

Leave a Comment :, , more...

Archives

Hacker’s Diet

The Hacker's Diet Online