Showing posts with label Virtual PC. Show all posts
Showing posts with label Virtual PC. Show all posts

Sunday, April 26, 2009

Run Virtual PC at maximum speed

I was executing my deployment scripts in one of the Test virtual machine. The deployments scripts includes uploading form templates,site template,Installing and activating the features and creating the site collection. This was taking lot of time to execute. So the issue was whenever i change my focus to the host operating system the VPC was not executing at its full speed, because of this the deployment scripts were getting time-out errors. So i had to stay focused in the virutal machine to execute all the deployment scripts it will run more than 2 hours.

I was trying various settings of VPC to get rid of this problem and found the following settings to correct this problem .

From the the virtual PC Console window click on the File-->Options. Select Performance from the left menu and choose the "Run Virtual PC at maximum speed". This resolved my problem.


However, the host machine will be bit slow after applying this settings. It was not a big difference to me and it was manageable.

Monday, March 23, 2009

Enabling Internet inside the Virtual Machine.[WS 2003]

We were trying to use the Internet inside our Virtual Machine. But the default settings in the virtual Machine were not supporting. However we were able to enable the internet by using the following settings.
Selecting the "Shared networking (NAT)" option in the "Networking" section of the Virtual Machine.

and by setting the "Obtain an IP address Automatically option" in the Local Area Connection Properties-->TCP/IP Properties.

Monday, August 4, 2008

Enabling Clipboard sharing and Dynamic resizing in Virtual PC 2007

When i was using my SPS2003 installed virtual machine, I was able to share my clipboard contents between Virtual Machine and host machine. And I was able to resize the Virtual Machine by dragging its windows to a specific size and double clicking its bottom corner, by doing this i was able to fit the virtual machine screen to the window size adjusted by drag and drop.

But the above two options didn't work in the Virtual machine I got for MOSS. It was very inconvenient for me to work with out those options. i tried various things to set it correct..

I found that these functionalities are part of Virtual Machine additions and confirmed it is installed in my Virtual PC. Based on Virtual PC Guy's(Ben Armstrong) one of the
blog i got to know that "vmusrvc.exe" is the key component for these features. So to get the above two functionalities,i did the following..

checked the registry entries and found the following entries. If there are no Registry entries for Virtual Machine additions might not be installed on the Virtual Machine.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"VMUserServices"="C:\WINDOWS\VMADD\VMUSrvc.exe"

Also verified "VMUSrvc.exe" is available in the above location and confirmed it is running by task manager processes tab. but still i had no luck.

Finally i was able to do it by closing the VMUSrvc.exe from task manager processes and restarting it from the location "C:\WINDOWS\VMADD\VMUSrvc.exe". A simple workaround resolved my long lasting issue and made me happy:)

Saturday, August 2, 2008

To enable sound in Virtual PC 2007

I resolved this problem in my VirtualPC2007 by following the below steps. wdma_ctl.inf and ctlsb16.sys should resolve the problem. These files can be extracted from a Windows XP product CD.

Insert the XP CD in host OS, then using CD--> Use Physical Drive option to access the CD Drive inside VPC.

Create a folder named SoundBlaster16 in C: drive. Open the command prompt and give the following commands one by one after changing the CD drive appropriately. This will extract the required files to C:\SoundBlaster16
        expand d:\I386\driver.cab -F:ctlsb16.sys c:\SoundBlaster16 
expand d:\I386\WDMA_ctl.IN_ C:\SoundBlaster16\wdma_ctl.inf
Start-->Run and type "Compmgmt.msc." Go to Device Manager and select the problematic soundblaster16 audio device. Right click and select the update driver option.

Choose "yes this time only option" and "Install from a list or specific location" option in the wizard.

Browse and select the C:\soundblaster16 folder created newly. Press Next ignore if any warning messages. This will install the required drivers. Click on finish once the installation is completed.

Go to start-->Settings-->control panel-->Sounds and Audio devices. Check the enable sound option. Restart the virtual machine.This will enable the audio. Check the "Place volume icon in the taskbar" option to get the sound icon in system tray.

This resolves the problem in most of the virtual PCs with windows2003 server, however it was asking the following list of files when i was configuring sound in my virtual PC. This might be because i haven’t installed SP2 yet.
[aec.sys,dmusic.sys,drmk.sys,drmkaud.sys,kmixer.sys,ks.sys,ksproxy.ax,ksuser.dll,portcls.sys,splitter.sys,swmidi.sy,sysaudio.sys,wdmaud.sys]

It was also asking few other files, i was able to select those from C:\windows\system32\ and c:\windows\system32\drivers folder of the Virtual PC itself.

These files also can be extracted from windows XP product CD using the following commands. Select these files from the SoundBlaster16 folder when the popup window asks for the file.
        expand d:\I386\sp2.cab -F:ksuser.dll c:\SoundBlaster16 
expand d:\I386\sp2.cab -F:ksproxy.ax c:\SoundBlaster16
expand d:\I386\sp2.cab -F:ks.sys c:\SoundBlaster16
expand d:\I386\sp2.cab -F:drmk.sys c:\SoundBlaster16
expand d:\I386\sp2.cab -F:portcls.sys c:\SoundBlaster16
expand d:\i386\sp2.cab -F:WDMAUD.SYS C:\soundblaster16
expand d:\i386\sp2.cab -F:sysaudio.SYS C:\soundblaster16
expand d:\i386\sp2.cab -F:splitter.sys C:\soundblaster16
expand d:\i386\sp2.cab -F:aec.sys C:\soundblaster16
expand d:\i386\driver.cab -F:swmidi.sys C:\soundblaster16
expand d:\i386\sp2.cab -F:dmusic.sys C:\soundblaster16
expand d:\i386\sp2.cab -F:kmixer.sys C:\soundblaster16
expand d:\i386\sp2.cab -F:drmkaud.sys C:\soundblaster16