Archive for November 4th, 2007

Gentoo “hardened” multilib?

I had some system problems yesterday.  My VMware guests just stopped.  Middle of the day and they just died.  I tried to run the management console or even the command line programs, but they all failed with the infamous “VMware is installed but is not configured for this system…” message and the prompt to run vmware-config.pl.  I re-emerged vmware-server and vmware-modules with no luck.  vmware-config.pl was failing trying to run vmware-vmx at the serial number check, the error was “No such file or directory”.  But there it was, right where it was supposed to be, permissions correct and everything…

Knowing that generic error can apply to a missing file that the program is trying to execute, I checked what type of file I was looking at: file reported a dynamically linked program.  Great, run ldd to find out what it wants: ldd reports “not a dynamic executable”.  Oh dear.  It was starting to look like a long night was ahead.

I jumped on the Googleweb and discovered that others had encountered the problem I was seeing, but the hits were all a couple of years old.  Their problems seemed to be caused by missing 32-bit libraries on a 64-bit system.  How could this happen?  In older Gentoo releases you had to choose multilib, but according to most of the doco all profiles are multilib unless you choose a “non-multilib” profile (this explained the fact there were few-to-no recent hits for the issue).

Recently I had switched to the hardened profile…  I had a look, and there is a separate “multilib” profile in hardened.  So is the doco wrong: are all profiles multilib except ones called “non-multilib” AND except hardened because they have a different rule?

I had two choices then, try out the hardened multilib profile, or switch back to the previous profile I used.  Considering I hadn’t enabled any Hardened features and don’t really have time to figure it all out at the moment any (I only did it to get rid of the “unsupported profile” warning I get every time I merge a package), I copped out and switched back to the old profile.

Then I had the next issue: I couldn’t use the non-multilib gcc and glibc to build multilib versions of gcc and glibc.  The gcc build complained about a missing 32-bit header (should have been part of glibc) and the glibc build complained that cpp failed sanity test.  Again the Googleweb came to the rescue, pointing me to a Gentoo repository containing binary packages of gcc and glibc that I could apply.  They allowed me to rebuild my own gcc and glibc.

At this point I found that the vmware-config.pl script could run again.  I was BACK!  I started VMware services, ran the managment console, and started my VMs.

I think I get a bit complacent with my home gear sometimes; switching profile to hardened was something I almost did on a whim, and it’s bitten me fairly badly.  Lesson learned.

Tags:

Another big bang

I was using a fitness ball (swiss ball, exercise ball, gym ball, etc) to sit on in the study in lieu of a normal chair.  I have to be honest and say that the experiment wasn’t working for me (it was supposed to get me disciplined to keep straight posture while seated) and I was considering giving up and going back to a chair.  The decision was made for me yesterday when it burst while I was sitting on it.

I’ll admit, it was helped (but not deliberately).  I had bits of PC case lying all over the floor, and I was rolling around to reach something to one side of me[1]…  The ball pushed onto the corner of a CD-ROM drive bracket, hard enough to pierce the rubber.

Before I talk about what inevitably happened next, I need to mention that the manufacturer of the ball labelled it “anti-burst”.  I actually gave this a bit of thought — not to the point of buying an anti-burst type over one that made no such claim, but more that I was intrigued by the thought of what a large rubber sphere filled with air to a sufficient pressure to keep 100+kg of human off the floor was supposed to do when breached if not burst.

Also, just prior to my deciding to start using a gym ball as an office chair I had listened to This Week In Tech Episode 98, “The Big Bang”, in which the show’s host famously, during the episode, experienced a “catastrophic decompression” of his own swiss ball.  In fact, ironically, that event was my inspiration or motivation to use a gym ball (and if you can figure that out for me, I’d appreciate it).

If you listen to that episode (as one poster to the TWiT forums said, “the magic happens at 47:30″) you hear quite a loud explosion as Leo’s ball gives way, followed by impacts of various objects (including Leo himself).  He described it as “my swiss ball exploded”.

My experience was nothing like that!  As I said I was sitting on the ball and rolled toward what I was working on.  I heard the sound of the ball being pierced, and a slight hiss of air — but I was still sitting.  I realised instantly what had happened, but before I could actually move the ball gave way and dropped me to the floor.  About a third to a half a second elapsed between the sound of the puncture and my assumption of a new lower seating position.

Picking myself up, I inspected the carcass of the ball and found a single tear in the rubber that was nearly half the ball’s circumference — the initial hole travelled as the pressurised air was forced through.

So was the ball “anti-burst”?  I’d have to say yes.  It still failed, but not in the way that Leo’s ball went BANG.  There was virtually no sound (other than me hitting the deck of course) and even though I didn’t have enough time to jump off the ball or otherwise avoid the fall, that might just be because I’m on the heavier end of the scale.  Someone lighter may well have put the hole under less stress and caused it to rip later or slower (or maybe not at all).

So if you’re a gym-equipment-for-office-furniture type of person, having lived through the event I’d say definitely get the “anti-burst”.  Sure, it won’t keep you off the floor if it gives way, but it’ll be a smoother ride down.  You’ve probably got more to worry about from possibly hitting your head on the desk as you go down (I reckon I was perilously close to that this time, as I had my back to the desk), or from landing on the tacks your “friends” put out to find out if your gym ball is the anti-burst kind.

Oh and I’m fine, by the way…  ;)

[1] Anyone who’s used one of these things as fitness equipment or as office furniture will understand the movements you just pick up like second-nature.  Office-chair users: when you need to talk to your buddy at the next desk, you don’t think twice about turning around and pushing yourself backwards across the floor to reach her do you?  Same kind of thing.

Sorry, AMD

I haven’t switched sides, really… but four cores for AU$330 was too much to resist.  :)

I’m doing the cascading hardware trick…  But instead of buying the new top-end rig and finding something to do with the surplus gear, I found something new to do with my existing desktop and had to replace it.  AMD’s 4×4 stuff looks good, but by the time I got two CPUs, a Socket F board and some new RAM I’d be in for around AU$1500 which I just can’t justify at the moment.

A colleague at work posted that the Q6600 was at his fave online store for AU$340.  Not believing this could be true, I went to my fave online store — which has a shopfront just down the road — and saw it for AU$330.

Beads of sweat started to form on my upper lip…  My left eyelid started to twitch uncontrollably…  Well, not really, but I’m sure you know the symptoms of Shiny Mania!

So I have some Intel kit again (not counting laptops).  The last Intel chip I bought was a thermonuclear 2.4GHz Pentium 4, and it’s actually running the system that will get replaced in this project.  Ever since I bought my first Athlon I’ve wanted to be AMD-only, but it seems that the performance gong belongs to Intel right now.  I’m confident that AMD will get it back with the next Opteron generation, and that will likely be what I replace the current Opteron server with one day.  For now, I’ll console myself with building a system in an architecture called “amd64″ on an Intel chip. ;-)

I’ll save the details of the buildup for another set of posts (what I’m building now is the P4 replacement, not the new desktop) but I will say this: It’s Quick.  And it’s got four cores.

Tags: ,