Gray Flannel Dwarf

12/13/2006

Xen hurts my monkey mind.

So I’ve been spending parts of the last two evenings trying to get a xen guest installed. First thing that annoyed me right off is the necessity to use an http, ftp or nfs point as the source tree, versus a standard directory. Why, oh why?

Anyway, so I sez to myself, “ok, well, I’m running a webserver on this machine, I will just mount an iso over loop, within my webspace, and bingo!”

Right? WRONG… SELinux — which I have been trying to rationalise as that pile of veggies on your plate as a kid that you hate but have been told are good for you — won’t allow arbitrary directories to be accessed from within httpd. No, you need to run restorecon… and you can’t do so to a read-only volume!

With that, I temporarily set SELinux to Permissive, rebooted, and started trying to install my Xen guest.

Once again, no luck. Regardless of what tool I use — virt-manager or virt-install, I kept getting ‘Invalid Argument’ errors thrown back at me.

So after searching google for various, convoluted references to spammy errors, I simplified my search to ‘fedora xen “invalid argument’, which took me to something I wish I had seen all along, the Fedora Xen Quickstart FC6 page. SURELY this would save me!

Alas, my hopes were dashed and turned to petty rage when I read this:

    Q. When creating a guest the message “Invalid argument” is displayed.
    A. This usually indicates that the kernel image you are trying to boot is incompatible with the hypervisor. This will be seen if trying to run a FC5 (non-PAE) kernel on FC6 (which is PAE only), or if trying to run a bare metal kernel.

      Ahem.

      [root@ramen ~]# uname -r
      2.6.18-1.2849.fc6xen

      I re-read the page again. I grepped all the /proc info. I am cool there — not that I would expect otherwise, running a dual core AMD. Everything else matches, so I dunno what this Wiki is implying.

      As a last gasp, I then decided that maybe I should try running against a real anaconda-friendly distribution tree, so I chose the mirror at Duke. Kicked off my install… it didn’t kick back an error right away… are we set this time?

      No. :( As it turns out, I got the same error as before — it just took longer because I was accessing a site over the internet.

      So, long story short, I am utterly out of ideas. Xen should be easy to configure — and it seems darn well like it’s been designed as such. Nonetheless, I’m a bit at the end of my rope with this thing.


      Tags: , , , , , — cswiii @ 11:11 pm