ArtinSoft's Blogs

Software Migration Experts
Welcome to ArtinSoft's Blogs Sign in | Join | Help
in Search

Christian Saborío's Blog

The blog deals mostly with problems and their respective solutions that I find on day to day basis at my current workplace. Most of the issues so far deal specifically with Virtualization (mostly Microsoft related), 64-bit migration, and Windows 2003 issues. Many of the problems I have faced in various projects have been solved by reading someone else's blog. This is an effort to pay back and hopefully someone will be able to solve some of their problems by reading something within these pages.

August 2006 - Posts

  • OT: What to do in case of an accident in the USA

    On a completely non-technical note, I thought I'd share with my fellow colleagues (and anyone who searches for this info), what to do in case of a car accident in the United States.

    See, in Costa Rica, whenever you are in a car accident, you leave your cars as they are until the police officer decides to drop by.  This is mainly done because in Costa Rica, many people drive without insurance, so they will go any length in trying to avoid to pay for the damages they have done.   The only way to get them (guilty counterpart) to pay is by having the cop see the accident scene as  it happened and then settle in court.  This, of course, leads to massive traffic when an accident happens.

    Anyhow, back to the accidents in the US story.  I had the (dis) pleasure of being in an accident last Saturday in Boston.  I had the honor of being crashed by none other than "Paul from Revere", on his slightly big tank car.  Here is what they look like:






    Yeah, that's right, the amphibious tank smacked me real good and left quite some damage on my rented car:




    So here is what you need to do if ever on an accident in the US:

    1. Move your car out of the way to avoid traffic congestion (your inner Costa Rican conscience will make it very hard to accomplish this task).
    2. Find out if everyone is alright, call 911 otherwise 
    3. You need to find out the following info from the driver who crashed your car: Name, Address, Company, Insurance Company, Insurance Claim Number
    4. Write down the time and street name where the accident happened
    5. Write down the names and numbers of some witnesses around who can corroborate what happened
    Once you have collected this info, call your company insurance and file a claim.  You will also need to file a report in the accident form that is usually found in the glove compartment of your rented car.

    Hope this helps someone in the future!


  • Error while linking a C++ Application with Virtual Server

    While trying to build a C++ application that tried to use the library from Virtual Server library VSComInterfaces.lib, we were getting a linker error that had us baffled for quite some time:

    Error     1          error LNK2001: unresolved external symbol _IID_IVMVirtualServer  EnumVMs.obj    
    Error     2          fatal error LNK1120: 1 unresolved externals          H:\Virtua\M01\Exercise-6\VMListing\Debug\VMListing.exe          

    Searching for an answer in various search engines, only lead us back to where the example source code had originated:  http://windowssdk.msdn.microsoft.com/en-us/library/ms699581.aspx

    We had no idea what was going on...we had brought the library from the C:\Program Files\Microsoft Virtual Server\Documentation directory from the server...the server...the x64  server!!!!

    A quick check using dumpbin displayed the following info on the lib:


    FILE HEADER VALUES
                8664 machine (x64)
                   3 number of sections
            43589BDA time date stamp Fri Oct 21 00:42:18 2005
                 57D file pointer to symbol table
                  47 number of symbols
    ... 


    We quickly compiled to 64-bit to see if the 64-bit library was indeed the culprit.  The app compiled without any problems!!

    Bringing over the 32-bt lib file from a 32-bit Virtual Server allowed us to create the 32-bit version of the application and everything is back to normal.

    Hopefully someone will find this post if they ever encounter the same problem in the future.
  • Differences bewteen Virtual Server and the Hypervisor

    When working with these labs, people who have heard about the hypervisor integration
    usually ask what is going to be different between the hypervisor and the current offerings or Virtual Server 2005 R2 Beta. In this link, you an find extensive information about the difference between them, but of special interest is the table below:


    Virtual Server 2005 R2
    Windows Server Virtualization
    32-bit VMs
    Yes
    Yes
    64-bit VMs
    No
    Yes
    Multi-processor VMs?
    No
    Yes, up to 8 processor VMs
    VM memory support?
    3.6 GB per VM
    More than 32 GB per VM
    Hot add memory/processors?
    No
    Yes
    Hot add storage/networking?
    No
    Yes
    Can be managed by System Center Virtual Machine Manager?
    Yes
    Yes
    Cluster support?
    Yes
    Yes
    Scriptable/Extensible?
    Yes, using COM
    Yes, using WMI
    Number of running VMs?
    64
    More than 64. As many as hardware will allow.
    User interface
    Web Interface
    MMC 3.0 Interface

    This table only goes to show that Microsoft’s Virtualization strategy in the future will offer a lot more than Virtual Server. Keep in mind that these features will be available about 180 days after Windows Longhorn Server ships, so until then, we will just have to sit back and watch these long awaited features with a lot of patience.
  • Who says you can't expand VHDS?

    It is a well known fact that dynamic VHDs that reach their limit cannot be made any bigger when running in Virtual Server.  I recently stumbled onto this problem when creating a differentiating disk from a base install of a dynamic disk of Win2K3 with 2 GB tops space.  I had two choices at this point:

    1. Create a new VHD and install everything I had done
    2. Try to find a way to expand the VHD with whatever hack came to my mind.
    Being the stubborn person that I am, I decided to follow the latter.

    The good news is that i t can be done - the bad news is that it may be a bit of an overkill!  Anyhow, here is what you need:

    1. A BartPE ISO that has some kind of imaging utility (ours has Ghost and TrueImage - amazing programs!)
    2. A fixed empty VHD that will fit the image of the disk you are trying to expand
    3. Lots of patience
    Step 1: Image the Image

    1. Add the BartPE.iso as an additional CD-ROM Drive
    2. Add the empty VHD (let's call it images.vhd) as an additional VHD
    3. Boot your PC, it should boot from the CD and Bart-PE should start
    4. Format images.vhd into an NTFS drive using whatever you want
    5. Create an image of your source disk (the one you are trying to expand) and place it on the images drive
    Step 2: Restore the Image

    1. Create a new VM configuration with a new VHD that will hold the new size (format it as NTFS with any utility you like)
    2. Add the BartPE.iso as an additional CD-ROM Drive
    3. Add the images VHD as an additional VHD
    4. Boot your PC, it should boot from the CD and Bart-PE should start
    5. Use Ghost or whatever you want to restore from the Image from the Images.vhd
    Reboot.  Enjoy!
  • Virtualization 101 for IT

    Without a doubt, Virtualization is the tech buzz word for this year.  Every newsletter I receive has a link to at least 3 VT sites.  Recently I stumbled on this entry which is a podcast by Dean Wells, who does a great job explaining what IT should consider nowadays when making computer purchases. 

    I think many IT departments are blindly making purchases of hardware that do not support VT technology.  What they don't know is that the moment they purchase this new equipment, they are pretty much buying outdated equipment.  Mr. Wells does an amazing job explaining what IT departments should strive for when making these types of decisions, it is definitely worth a listen.

  • Copy and Paste from Host VM to Guest VM (and vice-versa)

    I have to admit I was a bit shocked when I tried to copy and paste text between VMs using Virtual Server.  The clipboard was not copied at all and there was no easy way to transfer text back and forth.  I tried installing the Virtual PC Additions and still no luck.  I could not believe they left out a feature like this one out - I don't know if enabling this is trivial using some super secret setting, but until then, here is a workaround.

    It is actually quite simple, and it was Stephen who hinted me on this while I was ranting.  On the host machine, enable Remote Desktop Connections and connect using a RDC client.  You will be connecting to the VM just like any other mahine, and RDC supports copying and pasting of text back and forth.

    Not the best solution, I know, but it gets the job done.  It is also worth noting that the same problem happens with VMWare's VM player.
  • Microsoft Kills Virtual PC

    What?!?  Kill VPC?  A few weeks ago they announced they would give it away for free and now they are ceasing production...does not make sense, does it?

    Well, if I add a "for Mac" at the end of the my Blog title it probably makes a lot more sense, doesn't it?  ;) Today the Mac community learned the pleasant surprise that VMWare is going to be releasing a Virtualization solution for Intel Macs.  On the same day, we also find out that Virtual PC for the Mac is going bye-bye :(

    While this means that many PPC Macs will be left out in the cold without a way to emulate Windows, I understand where Microsoft is coming from.  Catching up where Parallels is right now in terms of VT support on the Mac would really take a while, and they would basically be starting from square one.  I can't wait to see what VMWare has up their sleeve...beating Parallels in the Virtualization market on Intel Macs is certainly a tough challenge.

Powered by Community Server (Non-Commercial Edition), by Telligent Systems