Sunday, March 21, 2010

Slow Virtual PC on Windows 7 x64

The Windows 7 platform has changed the way we work and has introduced new levels of hardware abstraction that has never been seen before in the desktop and mobility markets. We are now able to boot directly into a virtual machine. This allows us to run multiple virtual desktop systems, based on our context and working role. As a software developer I find this useful to switch between my desktop developer environment and my consulting environment where i run product demos and power point presentations.

I recently discovered that while the technology was available the end user experience was not as smooth as I would have imagined it should be. I have seen many posts online with simillar symptoms. After I installed my new laptop with Windows 7 Ultimate x64 and installed the new Windows 7 virtual pc and XP mode, the virtual machine running Windows Server 2008 R2 was extremely slow and I was unable to work.

After some research the following items resolved my VM performance issue.

1. Install the following in sequence:
- WindowsXPMode_en-us.exe
- Windows6.1-KB958559-x64.msu
- Windows6.1-KB977206-x64.msu

2. Next install the Integration Features, very important.

3. Add your VHD folder to the exclude files and location on Microsoft Security Essentials. (Probably the main culprit)

4. Add the VMWindow.exe and vpc.exe processes to the Exclude Processes section in Microsoft Security Essentials.

5. Adjust the display for performance in the VM:




6. Adjust performance for programs in the VM:




7. Run windows update on the virtual machine. This ensures that you get the latest bits to support the hardware virtualisation.

Hope this helps anyone with performance issues in Windows 7 x64 virtual machines.

Monday, March 8, 2010

OSI SOFT RtWebParts on Windows Server 2008 R2

The OSI Soft RtWebparts add rich data visualisation capabilities to plant monitoring and Manufacturing Execution Systems. SharePoint Server provides the ideal application framework to host these parts and integrate LOB applciations with real-time plant information.

These parts Initially when we started testing with Windows Server 2008, we ran into the following issue which was reported in the application event log.

"Unable to access SCM Manager. 5 in AFManager::OnThreadStart”

The Pi services are not configured with sufficient rights to execute on a Server 2008 environment. Run the following commands at the command prompt with Administrator privileges to resolve the issue:

To query the current service permissions use the following command line option:
sc sdshow SCMANAGER
sc sdshow PINETMGR

Replace with the following settings:

NOTE: The entry for sdset must be on a single line in order for the changes to be made. Applying the security acl in the incorrect format can render the service unusable.

sc sdset PINETMGR D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA) (A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)


sc sdset SCMANAGER D:(A;;CCLCRPRC;;;AU)(A;;CCLCRPRC;;;IU)(A;;CCLCRPRC;;;SU)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)S:(AU;FA;KA;;;WD)(AU;OIIOFA;GA;;;WD)