Author: C.J. Collier

  • Migrating VMs from pure paravirt hypervisor to hvm-capable hypervisor

    I’m also changing all of my disk layouts from being block devices per each guest partition to one block device hypervisor side per each /dev/xvd* guest side. The block devices all live on a single storage server and are being served via iSCSI. One of the guests is making use of AoE, but I’m thinking I’m going to move it to iSCSI, too, so there’s one less dæmon I need to maintain.

    It’s currently xen on squeeze. I want to experiment with kvm. I will miss xen-create-image, though.

    Okay. Zelda wants to watch a movie, so I’m going to stop blathering now.

    Moo,

    C.J.

  • The Very Model of a Poster to CLPM

    So, in 2002 I attended my first SPUG meeting. Also in attendance were Randal, Tim, J.P. (I think) and quite a few of the other usual suspects. The guest speaker was the inestimable Dr. Damian Conway. This night might be the single most important event in my career as a builder of the internets. I was already set in my ways regarding my operating system, and I knew enough perl to get by, but I wasn’t in touch with any users groups until then.

    The crown jewel of the night was Damian’s recital in full of his poem, “I Am The Very Model of A Poster To CLPM” (sung to the tune of that song from Pirates of Penzance). I must admit that I’d never heard of CLPM and that it all sounded like gobble-de-gook at the time. If I recall correctly, this happened just after he took about 10 minutes to teach us all to pronounce the name of then-Pumpking, Jarkko Hietaniemi. This was the same year that the following video was made…

    With that in mind, there’s one more thing I need to share with you before disclosing the lyrics. This piece was developed during a time when it was common for members of the perl community to flame one another on news feeds, take their anger and frustration out on newbies and generally be the bane of most of the internet. I like to think that it helped to shape me into a kinder, gentler perl programmer, debian user and general netizen over the years. I would also like to think that it will do the same for future members of our communities.

    And so, without further ado, Damian Conway’s


    I Am The Very Model of a Poster to CLPM

    Now everything I need to know about the Perl community
    I learned in kindergarten when I was a little lad of three
    And in these next few minutes I’ll relate those five apothegm
    For I am the very model of a poster to c.l.p.m.

    The first truism I was ever taught upon my mother’s knee
    Was that our dad’s a better dad than their’s could ever hope to be.
    His name is Larry Wall, and that’s determinism nom’native
    Since of the mural attributes he demonstrates proof positive.

    He’s eight feet tall and ten feet wide; of granite-like solidity.
    He wards us from the serpent’s tabs and coffee bean’s stupidity.
    He guards us from that Gallic tower’s B&D urbanity,
    And makes sure we don’t see sharp code that might cut loose our sanity.

    He watches over each of us, like Odin of the Norse belief —
    The stern All-Father figure and, at times, the comical relief.
    So, if you vaunt our patriarch’s supreme linguistic acumen,
    You are a model sychophantic poster to c.l.p.m.

    The second tenet that I learned concerns, of course, the fairer sex
    And why they are in short supply, while geek-boy JAPHs are multiplex.
    As every schoolboy knows each conversation has single aim:
    To raise one’s own significance, whilst razing others down in flame.

    And thus good men and true who hold this principle as sacrosanct
    Will all pursue beligerence as though they were from Mars. Or tanked.
    It is the tenor of your newgroup posts that she from Venus flies:
    Because most threads devolve into comparisons of…..meanness, guys.

    When every post affronts their own collaborative sorority
    It must exasperate them, for it renders the majority
    Of female Perl geeks absent, till we’re forced to rename blonde Dutch men
    To act as female models of a poster to c.l.p.m.

    The third grand aphorism that was drummed into my youthful head
    Was: if you can’t say something nice about someone, you should instead
    Say every nasty thing you can impart, imagine, or invent
    In any public forum that it happens you should both frequent.

    This goes especially for the young, and new, and shy, and innocent.
    To flame a newbie is a joy, t’will make you feel omnipotent.
    To watch them squirm and bleat and bleed and scurry back into their hole,
    The surge of ecstasy it brings is worth the way it eats your soul.

    So never hesitate to turn the wrath of your vocabul’ry
    Upon the hapless supplicant for Perl epistomology
    And if you flame each FAQ, and every question that’s beneath you then
    You’ll be the very model of curmudg’nly R.T.F.M.

    The next point I should like to make’s the obverse of the previous
    For while it’s true that to be newbie is a sin most grieveous
    It ain’t as bad as being old and greyed and staid and tedious
    And sitting at the keys all day dispensing thoughts invidious.

    What right have you to tell me not to ask about my CGI???
    I thought that Perl was all about website development, and I
    Expect that you’d extend to me the simple human courtesy
    Of dropping everything so you can do this homework now for me.

    The Internet exists so I need never read the manual
    And so my inane questioning can form a stream continual
    While pleading for an email since I never read this group, as well
    As posting them in jeopardy, in caps, and in HTML.

    The rule I learned in kinder that explains where this approach springs from
    Is fundamental to a certain class of Gen-X hackerdom
    The single principle that guides their Internet activity
    Is: “me, me, me, me, me, me, me, me, me, me, me, me, me, me, ME!”

    So if you are prepared to treat the Net as your god-given right
    And suck the newsgroups dry like some goodwill-devouring parasite
    And use them as a help-desk and a perldoc substitute, well then
    You are the very model clueless poster to c.l.p.m.

    The final precept that my pre-school inculcated in my head
    Is one I would commend as antithetical to all I’ve said.
    It is a noble concept that once used to garner more elan
    The idea that, when I grow up…..I want to be a fireman.

    The fire-fighter’s job’s to help, despite the inconvenience
    And spare the inexperienced the cost of their own ignorance
    And put out fires when the flames ignite the common living space
    And through it all maintain an air of competence and skill and grace.

    And this, my friends, I recommend to all of our community
    That rather than a careless match or carefully lit incendiary
    You spray out knowledge, patience, and a gentle stream of good advice
    And save the newbies from themselves, and oldies from their prejudice.

    And be yea more as Larry is, a fire-Wall against the threat
    Of ignorance and arrogance, with both of which we’re still beset.
    For if you choose to help your fellow JAPHs instead of scorching them,
    You’ll be the next burnt offering we spit-roast on c.l.p.m. ;-)

    [edit]

  • Replaced hypervisor

    The system which was hosting this blog had a tendency to go down every few days. I swapped it out for a spare yesterday. Let’s see if it stays up. The hypervisor hosts this web server, a mysql server and an SKS pool member, all of which are built on top of Squeeze.

  • Perl interface to processing / querying NIST’s NVD feed

    For a work project, I wrote a library in perl that can be used to query the NVD feed that NIST publishes here:

    http://nvd.nist.gov/download.cfm

    Here’s a snippit from the perldoc:

    use NIST::NVD::Query;
     
    # use convert_nvdcve to generate these files from the XML dumps at
    # http://nvd.nist.gov/download.cfm
     
    my( $path_to_db, $path_to_idx_cpe ) = @ARGV;
     
    my $q = NIST::NVD::Query->new( database => $path_to_db,
                                   idx_cpe  => $path_to_idx_cpe,
                                  );
     
    # Given a Common Platform Enumeration urn, returns a list of known
    # CVE IDs
     
    my $cve_id_list = $q->cve_for_cpe( cpe => 'cpe:/a:zaal:tgt:1.0.6' );
     
    my @entry;
     
    foreach my $cve_id ( @$cve_id_list ){
     
      # Given a CVE ID, returns a CVE entry
     
      my $entry = $q->cve( cve_id => $cve_id );
      push( @entry, $entry );
     
      print $entry->{'vuln:summary'};
    }
    
  • xend xml parsing failure – solution

    I got this error when starting xend after a filesystem crash:

    [2011-12-09 11:05:04 5590] ERROR (SrvDaemon:349) Exception starting xend (not well-formed (invalid token): line 3, column 0)

    It sounded like an XML parsing error, but the stack trace in the log didn’t say which file it had loaded. It turns out that it was trying to load something from /var/lib/xend/state/. Purging the /var/lib/xend/state directory fixed the problem, and hopefully had no side-effects.

    Thanks to this blog for the solution. I should probably file a bug, shouldn’t I?

    [edit]

    done: http://bugzilla.xen.org/bugzilla/show_bug.cgi?id=1797

  • Bitcoin WoT using PGP/SKS

    There was recently a post to the sks list prompting discussion regarding the use of PGP and SKS as a distributed web of trust for an alternative currency system called “Bitcoin.” This reminds me of a project I worked on in the early ’00s with the late Jeff Fairhall and Thomas Greco.

    Anyhow, I mumbled some things on IRC about my thoughts:

    08:23 < cj> nanotube: I got your email on the sks list
    08:32 < cj> nanotube: the reason SKS keyservers work at this 
                point is because there is little interest in PGP WoT
    08:32 < cj> or PGP in general
    08:33 < cj> cjac@pki:~$ df -h /var/lib/sks
    08:33 < cj> Filesystem            Size  Used Avail Use% Mounted 
                on
    08:33 < cj> /dev/xvda2             14G  9.0G  4.2G  69% 
                /var/lib/sks
    08:34 < cj> if a major monetary system were to "piggyback" on 
                the existing network, maintenance of pub keys would 
                become unmanageable
    08:34 < cj> nanotube: read through the sks archive with an eye 
                toward database size
    08:36 < cj> there are a total of a bit more than 3M keys in the 
                db at this point.
    08:36 < cj> http://keyserver.colliertech.org:11371/pks/lookup?op=stats
    08:38 < cj> My database becomes corrupt every 3 months or so 
                and I need to re-build it.  This may just be user 
                error, and probably is.  However, I do not seem to 
                be the only one who suffers from this problem.
    08:40 < cj> Assuming that there are on average about 5 keys in 
                the db per participant, that means the 9G of key 
                data represents 600K humans.
    08:42 < cj> which is roughly 0.000085719% of the world's 
                population
    08:43 < cj> if we want to support the other 100% of the 
                population, we need to implement intelligent 
                sharding or improve the efficiency of the data store
    09:04 -!- OneFixt is now known as Guest66546
    09:06 -!- Guest66546 is now known as OneFixt
    09:08 < cj> note that operating a key server which stores 
                anything less than the full set of public keys 
                compromises the integrity of the system.  The 
                primary objective of the key server is to be a 
                complete store of the set so that there is no 
                central authority.
    09:16 < cj> from the wiki page:  "Since the web of trust node 
                keys will over time grow long with a bunch of UIDs, 
                it is likely that you may not want to use your 
                regular key for this purpose, and would probably 
                want to create a separate key. If you want to tie 
                your regular PGP identity to this key, you can 
                simply cross-sign your regular key with your web of 
                trust key."
    09:18 < cj> this assumes that there is an infinite amount of 
                storage on each SKS key server.  If everybody's key 
                will over time grow long with a bunch of UIDs", 
                then we will see a very large number of very large 
                keys.
    09:19 < cj> I recommend that bitcoin participants manage their 
                own SKS pool while developing the proof of concept. 
                This will reduce the noise caused in the public 
                pool.
    09:20 < cj> and will give the developers an understanding of 
                the implications of their design decisions
    09:22 < cj> here are some thoughts I had on the subject a 
                decade or so ago and RMS' responses:
    09:22 < cj> http://web.archive.org/web/20030812201116/http://gnubucks.com/impressions/rms.html
    
  • Business Birthday

    Today is Collier Technologies, LLC’s second birthday. The company’s been around under one name or another since about 2002 or so, initially as a sole proprietorship.

    Woot, and all that.

  • F5 opens second International Technology Center in London

    Very cool. Presided over by my friend and the VP of our group, Erik Giesa. Notably lacking is the inclusion of a picture of Steve Mitchell’s smiling face.

    The first of our ITCs is here in Seattle. We’ve got some space on our internet site dedicated to them:

    http://www.f5.com/solutions/resources/technology-center/