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.

January 2007 - Posts

  • VMWare Releases FREE P2V Utility

    There are many many alternatives out there that will assist you to migrate a Physical machine to a Virtual - heck, even NT Backup can be used to accomplish this.  The supported procedure recommended to carry out this procedure is to use ADS to create an image of the source machine and then dump it to a Virtual Machine.  I am currently testing this procedure and trust me, it is not a straightforward one.

    Given the choice, I would recommend any other approach when carrying out a P2V migration.  VMWare currently released they migration utility that allows to move physical machines to virtual ones.   It even goes the extra mile and imports various virtual machines from other solutions such as Microsoft's Virtual Server.

    This is perfect for users of VMWare, but what about if you want to carry a P2V migration to the Virtual Server format?  Well, you can still carry this out by using VMWare's tool and then using this utility to convert from VMWare to Virtual Server format.  Not the cleanest solution, but I guess this is a perfect example in which the ends justify the means ;)

    ZZ26DC60E9

  • Virtual Server R2 SP1 not Remembering Passwords Workaround

    Before I get started on this blog post, allow me to say that this is something that you should never do in a production environment.  That being said, when working with the Administrative Web Interface of Virtual Server, it will prompt you for username/password when you start the browser session and when you want to use VMRC to control a VM:

    ZZ78FCD0C7

    See that "Remember my password" checkbox?  Well, it has never worked for us, and according to David Wang, this is an issue with the Virtual Server's Administrative Web Interface being accessed not as an Intranet site but rather as an Internet site.  I tried messing with the security settings of my trusted site to allow the use of the currently logged on user on the sites - this lead me nowhere as the web site would not even show up.

    I then proceeded to mess with some settings with IIS and I have achieved my purpose: no more password input every time I need to VMRC! .  It is worth mentioning again that this is something I am doing on an isolated machine that we use for testing purposes - never, ever do this on a production machine!!!

    Here is what you need to do:

    • Access the IIS Control Panel
    • Expand the following nodes: Virtual Server --> VirtualServer
    • Right click on the VirtualServer node and select Properties

    ZZ1C6C3828

    • Click on the Directory Security Tab
    • Click the Edit button under Authentication and access control
    • Mark the check labeled "Enable anonymous access"
    • Enter a username/password combination that is allowed to access Virtual Server

    ZZ177EA0BB

    • Close the dialog

    So far what you have done will allow you to access Virtual Servers main Administrative interface.  If you want to skip the whole username/password issue when using VMRC, you must change some settings in IE:

    1. Access Internet Options from within IE
    2. Select the Trusted Sites Zone
    3. Click on Custom level
    4. Scroll all the way to the bottom and under User Authentication--> Logon, select "Automatic logon with current user name and password"
    5. Close the dialogs, restart IE

    Once you do this, you will be able to access the Administrative Web Interface as the user you specified above.  Nifty trick for testing but a big no-no for any other scenario.

  • Optimizing Multi-Threaded Applications on the Itanium 2 (Part 1)

    If the tasks that your application carries out are independent of each other, a way to optimize things is to create threads for various tasks.  There are many ways to thread applications including Pthreads, windows threading, and recently OpenMP.  OpenMP excels in the sense that it can make your application multi-threaded by just writing a few pragmas here and there.

    Once you multi-thread your application, many things can go astray.  For instance, different threads can access variables at different intervals in a loop, which can only lead to disastrous results in your calculations.  You can break your head and lose some of your sanity by manually debugging what is going wrong with your application or you can use Intel's thread checker to find out what is going on.  For instance, the following sceenshot shows you the output of all the problems (referred to as data races) when various threads were accessing variables and changing them on each loop:

    ZZ209DC9B6

     

    Furthermore, your application's threads might starve waiting for a particular resource to be freed, which can only make the whole multi-threading effort futile.  Tools like Intel's thread profiler can help you find this info.  For example, after data collection, based on the following screenshot, you can pretty much tell that due to locks in the code, the threads are pretty much stalling the application:

    ZZ3BEA36A3

     

    Now that you know what these two tools are and what they do, what I wanted to show you was how to get around the fact that none of these tools can be installed on a Itanium box.  That is, now that the Itanium is dual-core, how do you go about optimizing multi-threaded apps using these tools?   The solution to this problem will be included in the second part of this post, stay tuned!

  • An Error with the Intel C++ Compiler 9.1.028

    These days I have been testing all of our 64-bit labs on a Montecito (Itanium) box that was lent to use by HP.  The newest feature of this new chip is the fact that it has two cores, which should make multi-threaded applications perform a lot faster.  I have not developed in a while for the Itanium, and one of the first things that struck me was the fact that there is no "Intel Compiler Installer" available for download.  As of version 9.1.028, the compiler installer includes compilers for x86, x64, and IA64 - sweet.

    While following my usual install procedure (click next until the installer finishes) I noticed that my IA64 compiler was completely broken - even when compiling a Hello World.  The error I got was the following:

    icl: internal error: Assertion failed (shared/driver/drvutils.c, line 535)

    After reading some forums which did not hint me at all what the problem was, I decided to re-install but this time around reading the installer screens.   It happens that one of the requirements for this compiler to work is that it needs the PSDK from Microsoft installed, something that I had completely forgotten to do.  Once I installed the PSDK, the IA64 compiler was a happy camper and everything worked OK.  Hopefully, some desperate soul will be able to find this info if they ever face that dreaded message.

  • VHD Test Drive and SCSI Adapters

    We have mentioned several times that if you can use SCSI for your VMs, then you should use it.  In order to practice what we preach, I downloaded a VHD from the VHD Test Drive program (Windows Server Pro 2003)  and hooked it up to a SCSI adapter and booted the machine.   It was unpleasantly  greeted by the dreaded Blue Screen of Death when booting.  As far as the reason why it happens, I really cannot tell.  Perhaps it has to do something with the VHD being syspreped and whatnot, but the purpose if this entry is not to tell you why it happens but rather how to get around it.

    What I did was that I connected the VM to a virtual IDE controller and booted.   I let the sysprep process finish and once I had a Windows Server 2003 logon screen, I turned off the VM.   In the configuration screen of Virtual Server, I added a SCSI adapter and then added the VHD to an empty device:

    ZZ71F94143 

    Once this was set, the VM booted without any issues.

  • How to start Blogging

    There are many ways to post blogs.  You can use the web interface that most blog applications (blogger, community server, wordpress, etc.) offer.  This can be very cumbersome and if you hit back by mistake on your browser, then all that you have typed can be gone in a matter of seconds.

    I have recently stumbled on some (free) tools that will allow you to blog like a pro.  The first one is called Live Writer Beta and is made by Microsoft - I found out about this from Volker's blog today.  So far it has been very stable and is very easy to use.  It is basically the same thing as using Word.  This will get you covered as far as blogging goes, but if you want to add images and such (something our Community Server blog currently does not offer) you will need additional software.

    To insert images, get the Flickr4Writer plugin, which will allow you insert images on your blog that are linked from Flickr account:

    Flicr Madness!!

    I am currently uploading my images to flickr using this (OS X) widget, I am pretty sure there is something similar for Vista if you look around (drop me a line if you find one).

    Happy Blogging!

    Posted Jan 02 2007, 06:04 PM by Csaborio with no comments
    Filed under:
  • New Webcasts for the IT Pro

    Microsoft has recently posted on their website a plethora of webcasts dealing with many current topics.  Of particular interest are the ones posted on Virtualization.   The ones that deal specifically with topic follows:

    How to Virtualize Infrastructure Workloads
    http://www.microsoft.com/emea/itsshowtime/sessionh.aspx?videoid=348

    Using Application Virtualization to Decrease Your Application Management TCO
    http://www.microsoft.com/emea/itsshowtime/sessionh.aspx?videoid=361

    An Overview of Microsoft's Vision for Virtualization
    http://www.microsoft.com/emea/itsshowtime/sessionh.aspx?videoid=337

    Transitioning to Windows Server Virtualization
    http://www.microsoft.com/emea/itsshowtime/sessionh.aspx?videoid=343

    I have yet to watch them, but if I find something particularly interesting, I will post it on my blog ASAP. 
Powered by Community Server (Non-Commercial Edition), by Telligent Systems