Tech Alliant - Your technology ally

  • blogs
  • events
  • forums
  • training
  • contact us
Home › Blogs › John Hoffler's blog

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password

Navigation

  • Popular content

Search

Who's online

There are currently 0 users and 1 guest online.

Last viewed

  • OK, You're finally an Architect........Now what? 27 sec ago
  • #NotIntendedToBeAFactualStatement and Why so Many Projects Fail 57 sec ago
  • the Fellas 2 min ago
more

Tag John Hoffler's blog

Feed Icon
Google
Delicious
Yahoo!
NetworkedBlogs
Furl
Simplify

Who's new

  • Marlon R. Rigaud
  • autocarrera
  • GeorgeSzynal
  • daemnant
  • lannsaby

Old School Virtualization

John Hoffler's picture

John Hoffler — Tue, 03/09/2010 - 5:04pm

Yes, it's been a while since my last post . I've been completely buried under a number of projects, including kicking off this year's BDPA-Charlotte High School Computer Competition (HSCC) training program. The good news is I learned a few things, which I may write about in future blogs.

I also got to revisit the use of virtualization in a way I hadn't used it since the 90's. Back then developers used VMware to create test environments on their desktops. We'd configure the Virtual Machine (VM) to write disk IO to a temporary scratch file, so every time we restarted the VM we'd have a pristine environment. Normally, the HSCC students receive a USB drive with a VirtualBox image of Windows XP configured with all the software needed for the program. This year we moved to a computer lab with PCs that weren't really powerful enough to run our VirtualBox image. However, our hosts were generous enough to allow installing the development software directly onto their lab PCs.

Creating an Install script

My first attempt to install the development software involved giving directions to a couple of volunteers. That was a catastrophe! Let's face it; if you really want something done right several times you gotta automate it. Unlike OS/2 (yes, I'm that old!) apps, which nearly always support unattended installation, Windows apps generally resist attempts to automate their installation.  I learned more than I expected about Windows Scripting Host (WSH) and Microsoft HTML Applications (HTA). For example, did you know that there's no sleep function in HTAs? The only real workaround is to dynamically create a VBScript file with the desired wait and execute that file with a background call to cscript.exe. I did the poor-man's workaround of calling "ping -n <number of seconds to sleep> localhost."  In any event, creating a script to install Java, Tomcat, MySQL, Eclipse and various other packages took a fair amount of trial and error.

Luckily, virtualization software still allows developers to repeatedly return their VMs to a known state. In VirtualBox it's as easy as pushing the Snapshot button on a VM. When I close a VM without shutting down the guest operating system VirtualBox even asks if I'd like to go back to the last snapshot.

 VirtualBox Close VM confirmation

What could be easier? Seriously, I never could have gotten the installation script tested on Windows XP and Vista without virtualization. Getting the Vista VM is a whole story unto itself. For now, I will spare you my tirade over how OEMs (Original Equipment Manufacturers) give us these bogus "Recovery Disks" instead of a real Windows install DVD. The hassle of.....

No, I said I was going to spare you that tirade! There will plenty of time for that next week after I tell you have to P2V a Windows Vista laptop to VirtualBox.

  • HTA
  • Technology
  • virtual server
  • Windows Vista
  • Windows XP
  • WSH
  • John Hoffler's blog
  • Add new comment
  • Share/Save

Subscribe for email notifications

Want to be informed when someone posts to your favorite forum or replies to an interesting blog article? Create a Tech Alliant account and you can get email notifications based on authors, individual posts, even topic keywords.

Today's top pages

  • The Hot IT Skills of 2011 (13)
  • The 2010 Science and Engineering Apprentice Program (SEAP) online application is NOW open! (3)
  • #NotIntendedToBeAFactualStatement and Why so Many Projects Fail (3)
more

Recent blog posts

  • Embracing Diversity in the Information Age
  • #NotIntendedToBeAFactualStatement and Why so Many Projects Fail
  • The Hot IT Skills of 2011
  • Setting up a Xen Server
  • A quick look at Liferay Portal Server
  • Have you checked your electric bill?
  • Old School Virtualization
  • OK, You're finally an Architect........Now what?
  • Hammers and Screws - Know when you shouldn't use a technology
  • Virtualization: The Importance of a Story to Tell
more

Monthly archive

  • November 2009 (7)
  • December 2009 (8)
  • January 2010 (1)
  • March 2010 (1)
  • May 2010 (1)
  • June 2010 (1)
  • October 2010 (1)
  • January 2011 (2)
  • April 2011 (1)
  • February 2012 (1)

Recent comments

  • Liferay 6.x jQuery update
    1 year 15 weeks ago
  • Good stuff!!
    1 year 16 weeks ago
  • No story, no plot, no characters
    1 year 31 weeks ago
  • "It's the way we have always done it...."
    2 years 1 week ago
  • Yes, let's partner up
    2 years 21 weeks ago
  • Link Network Instruments Virtualization Study
    2 years 22 weeks ago
  • what a great opportunity!
    2 years 22 weeks ago
  • I don't even remember when I first heard it!
    2 years 22 weeks ago
  • Preconceived notions...
    2 years 22 weeks ago
  • "when you're holding a
    2 years 22 weeks ago

All Comments, © and ™ belong to their respective owners/posters
Other content © Copyright 2012 Tech Alliant Corporation, All Rights Reserved

  • blogs
  • events
  • forums
  • training
  • contact us