VMware vSphere: Safely remove network controller

Well, it’s another day another fight. As we started migrating our VM’s from the old VMware ESX farms to the new environment, and upgraded the hardware suddenly the network devices were hot-plug-able, thus they did turn up in the “Safely Remove” dialog.

I myself don’t have any trouble with that. The trouble I do have is the people working with those VM’s and their possibly hazardous “uuuh, what’s this ? I don’t need this! <click-click, network-device unplugged>”

So I went googling (why isn’t that a dictionary term by now ?) and found something. Simple solution is to disable the hot plugging of hardware in the VM’s settings.

VBscript: Query remote OS and SP info (continued)

After some more crunching on my VBscript, I think I finally have a working script that runs through a csv-list I point it to and walk onto each system (by ip-address only sadly) and query the os and the Service Pack that is installed. The CSV may look like this:

After saving that one, and running a cscript //NoLogo win_sp_level.vbs you should find a completed list like this:

The final script looks like this:

The only thing I still need to improve is the error handling (as in notify when a system is being skipped due to RPC being unavailable).

Converting TIVSM RPMs to deb

We received a preinstalled customer server the other day, for which we had declared “as-is” support only, since it is running Lucid Lynx. Now today, I started getting the TSM client to work. Was kinda weird, since at first dsmc was reporting something like this:

# ./dsmc: no such file or directory

After fiddling with it a bit more, here are the control files, as well as the prerm and postinst-scripts for TIVSM-API, TIVSM-API64 and TIVSM-BA:

tivsm-api/debian/control:

tivsm-api/debian/tivsm-api.postinst:

tivsm-api/debian/tivsm-api.prerm:

tivsm-api64/debian/control:

tivsm-api64/debian/postinst:

tivsm-api64/debian/prerm:

tivsm-ba/debian/control:

tivsm-ba/debian/tivsm-ba.postinst:

tivsm-ba/debian/tivsm-ba.prerm:

All that was left to do, was simply adding a -n to the dh_makeshlibs call in each packages debian/rules file, otherwise dh_makeshlibs would overwrite my shiny postinst/prerm actions!

Flying home with GermanWings

Last month I had this epiphany to fly home for a visit on my mother’s birthday. Well, the idea was great but the implementation kinda sucks.

I started my trip around 12:00 AM from work to Stuttgart. Initially I had much more fear of the trip down to Stuttgart, since I have to drive on the A8 (which is kinda infamous for huge traffic jams), but as it turned out; those fears were without reason. It took me an hour to get to Stuttgart, which is fairly normal.

I was at the airport at 2pm, which was still an hour till my flight would leave. So I waited another hour (I bought myself a book in preparation) until it was 2:55pm (that’s the original boarding time).

At that time, they announced that the plane would be approximately an hour late, since it got stuck in the snow in Warsaw. Okay, I waited another half hour, until they announced that the plane just landed and we could hopefully begin boarding within the next 15 minutes or so.

After another half an hour, finally everyone finished boarding and we were rolling to the runway. After about an hour in the air, the captain announced we would be over Rostock, but we’d be in a holding pattern, because the ground crew in Rostock is trying to prepare the runway for the landing.

After ten minutes, he announced yet again, we would be flying circles for another 15 minutes (which were like 40 minutes), after which he announced we’d be flying circles for another 15 minutes (which again were half an hour). He then explained that the ground crew in Rostock is yet again trying to de-ice the runway in order to make it possible, so the plane can safely land (I figure, a Airbus A319 needs one hell of a long strip to land and brake on ice with about 75t).

So after circling for another 15 minutes, he announced with regrets, that the ground crew wasn’t able to de-ice and de-snow the runway in order to make a safe landing. He also informed us, that we would be diverted to Berlin-Schönefeld and that we’d get more information once we are on the ground.

As we were touching down and rolling into parking position, he announced that we either had the possibility to be carried to Rostock via bus (that is a charter bus), or be on our own. For that, I do have to say the following: Berlin is about 190km afar, plus the autobahn was icy that night.

He also announced that we’d get more information at the check-in booth. So 159 angry people went bothering the people at the check-in booth (which were kinda stressed out). They handed every person a Deutsche Bahn ticket with another sheet of photo-copied paper, that did hold the travelling information.

In the end, I was home around 1:30 AM, where I planned on being home at 7:00 PM. Just nice. I’m just praying, that they’re actually gonna fly from Rostock today, since tomorrow just is another workday.

VBscript: Query remote OS and SP info

As I wrote on Thursday, I am battling with Windows Server 2003. Now I got a list out of our change management database, which sadly ain’t that accurate. So in order to get reliable information about the target systems (in order to do some accurate planning), I ended up writing a small vbscript which simply takes the hostname on the command line (cscript //NoLogo win_sp_level.vbs 10.0.0.5) and returns a csv-like element.

We may have to tune the script a bit more for our use, but it should show the basic functions I need.

Windows Server 2003 SP1, WSUS and Security Updates

Recently, we found some systems (sadly, customer systems) that  weren’t getting any Security Updates anymore. Much more sadly, them is running Windows Server 2003, and as you know Security Updates are pretty important for Windows Systems.

At the time of finding this, I had no clue as to why the were not getting any updates. At first we thought it had something to do with the WSUS server, so I upgraded the WSUS 3.0 SP1 to SP2. Since that didn’t solve nothing, I went searching for a internal VM, that showed the same symptoms and I quickly found one.

After cloning said VM (since that one is running in the production environment), a bit of hacking on it (you know, disabling the network of the VM, switching IP and Hostname, running NewSID, …) I went cracking at the problem.

Stopped the Windows Update Service, cleaned the %WINDIR%SoftwareDistribution, and started the Windows Update Service again; triggered a wuauclt.exe /detectnow /reportnow. Yet again the same result. “0 updates detected”. Shite.

Went ahead, and tried what Microsoft in their “If you have trouble with Windows Updateknowledge base article, but then again. Same result.

Another try, was simply reinstalling the Windows Update Agent, which also resulted in the same old … “0 updates detected”

Due to some discussion with my co-workers, I ended up clicking through a Microsoft KB for a recently released patch. What I found, was that any newer update I looked at, only had “Windows Server 2003 with Service Pack 2” listed as download element. Shite.

Somehow, I stumbled over a link (in the same KB article) detailing the Support Lifecycle for Service Packs in general, as well as the Lifecycle announcements for each Service Pack.

End of the story and solution to my problem basically is, Microsoft terminated the Lifecycle for Windows Server 2003 SP1 on 14.04.2009, which is the target date after which Security and Critical Updates are no longer issued for systems running SP1.

In the end, I don’t really blame them, since SP2 was already released in 2007. But what I would’ve expected is some kind of press release or a public note, that Security releases are gonna end. Another construction area identified, more work for me!

Samsung NC10 Anynet (HAT2DE), Ubuntu Karmic Koala and UMTS

My little brother bought himself this fancy netbook (it’s okay I guess, only the keyboard takes getting used to). A few days after he bought it, he told me he wanted something different on it than the shipped Windows XP.

At first, I favored a normal Ubuntu 9.10 Desktop. While thats okay, it simply isn’t the right thing for a netbook. Why ? For example, if the programs bar is larger than the vertical desktop resolution, it gets kinda tiring to work with this thing.

Took me (and him) a while to notice that, but in the end I put the Netbook Remix of Karmic on this sweet little thing. Only trouble he had, was that while everything worked out of the box (even the Digital Motion Camera at the top end of the screen), his UMTS didn’t. That’s kinda shitty, since he bought this thing, in order to get online, even if he is at a hotel without actual internet connection (that is no DSL or LAN connectivity).

He already bothered the guys at his local T-Mobile shop, which told him he had to send it in to Samsung for repairs, since they don’t do warranty claims (which iirc they have to do, according to the HGB). Anyway, he sent the box my way, for me to take a look at it first, to avoid paying 70€ for a damn quotation for the repair of the defect UMTS modem.

Turns out (as so often), it was just a simple software bug. The guy over at aptgetupdate, was kind enough to document the steps necessary to install a nightly build of NetworkManager (which Karmic uses to connect to any kind of network), which fixes this issue. As a proof, I’m writing this here blog post via the UMTS connection of the netbook!

For myself, here are the exact steps, in case I ever need to repeat them:

That’s it, that enables UMTS connections again.

VMware Data Recovery

I’ve been tinkering with VMware’s Data Recovery for the last two weeks (as in configured it some time before Christmas) and had it running all that time. I have to say the integration into the vCenter Client GUI is amazing, I’d love to see that for VCB also. The Changed Block Tracking is a neat way to minimize the amount backup data as well as your backup window (which is nearly zero anyhow due to vDR using snapshots).

What I don’t like about Data Recovery is the fact that you ain’t allowed supported to install any kind of backup agent inside. I  was looking into Data Recovery because I wanted to replace VCB’s functionality with something tightly integrated, that even our, well lets say — not so vCenter centered workers — could use (restoring a VM with vDR is real easy, just three clicks and you got a previous version of your VM — even if it has been deleted).

I guess, we do have to stick to Consolidated Backup for now, until VMware redesigns vDR or polishes VCB.

HOWTO: Installing XBMC on a Acer Revo R3600 with Ubuntu Jaunty/Karmic

Yesterday out of a sudden, the sound on my Acer Revo stopped working. Don’t ask me why, I didn’t update anything in between New Years eve and today. Just no sound. Tried removing my .asoundrc, tried rebooting, tried powering off; but nothing worked.

Since the Revo was running Jaunty Jackalope, I decided to reinstall the box (yeah, yet again) — but this time with Karmic Koala. Took this forums post and this blog entry as pointer (ie what needed to be installed), and started from there. And guess what … after finishing all that, changing the settings in XBMC — tada sound works. After finishing, I turned the box off and then back on, booted to the “old” installation — guess what .. Sound is working again. I really don’t have a single clue as to why the heck the sound stopped working and the started working without any doing, but I’m glad 😛

Read More

VCP410 exam

I’ve been learning for my VCP-410 exam the last week or so, and what can I say ? It helped … 463 points of a total of 500 points ain’t that bad at all (considering I spend twenty minutes doing it).

Sure, I could have spent more time, and do better than 92,6%, but then again: why should I ?

The achieved points (nor the percentage) don’t appear on the certificate (or at least it didn’t on the old one), so why bother. Anyway, that was my christmas present to myself, it that light; happy christmas ya’ll.