Sunday, November 22, 2009

How to increase the size of vmware hard disk (.vmdk)

I was preparing 64-bit VM for my (SharePoint 2010 beta) development environment using VMWare, with the capacity of hard disk 20GB. But in order to install everything required for SharePoint 2010 beta 20GB was not sufficient, so I planned to increase the size of hard disk. I thought it would be very easy to increase the size of hard disk through management web console of VMWare but I could not find any option to increase the size of hard disk. After searching on the internet I found following some blogs/articles on same issue but nothing could work for me as it is mentioned in following links:

http://www.novell.com/coolsolutions/tip/15344/html
http://consultingblogs.emc.com/kalpeshprajapati/archive/2007/07/24/How-to-Extend-virtual-Hard-Disk-_2008_-WMWARE_2900_.aspx

When I ran command:
c:\program files\VMWare\VMWare Server>vmware-vdiskmanager.exe -x 30Gb "filepath\filename.vmdk"

I got error:
FILE: FileIO_Lock on 'filepath\filename.vmdk' failed:Lock timed out
Failed to open the disk 'filepath\filename.vmdk': The file is already in use (0x400800000000f).

So in order to increase the size of vmware hard disk, I have performed following steps

1- Make sure VM is stop
2- Remove the hard disk from VM
3- Increase the size of hard disk using aforementioned command
4- Attach the existing hard disk with VM
5- Turn on the VM
6- VM was up and running successfully with extended size 40 Gb of hard disk
7- Turned on the VM
8- Go to command prompt and type diskpart
9- then type list disk
10- then type list volume, which shows all the drives with volume numbers and other information. In order to increase the size of respective disk, volume is required to be selected
11- Type select volume=
12- After selecting the volume, type extend
13- Done

Hoping this will help someone else time while increase the size of VMWare hard disk.

Following are the steps which I followed in order to increase the size of hard disk

Monday, November 16, 2009

SharePoint Designer Workflow and InfoPath

While working on SharePoint Designer Workflow, I came across the following challenges:

Assign approver dynamically

I was developing a SharePoint Designer Workflow, in which approver of the Workflow was selected dynamically while reading from a field (exposed from InfoPath Form - People Picker) of SharePoint List, the problem I was facing that field was returning nothing to me even InfoPath Form had contained data in it.
After digging more into this, I figured it out SharePoint Designer Workflow was not able to fetch the value from the field in Step-1 (SharePoint Designer Workflow works in steps and within each step activities can be performed based on the conditions, if any), so when I moved the logic to assign the approver on the fly in step-2, it started working.

Set Infopath form field within the workflow

Another challenge I faced while working on SharePoint Designer Workflow to set the value of InfoPath field within the workflow. As there is no OOTB activity which allows setting the Infopath form field but after researching a bit I found a utility on the CodePlex (SharePoint Open Source Community), which adds new activities in SharePoint Designer Workflow related to Infopath and one of the activity is used to set the value of InfoPath field. In order to read more, use this link Useful Sharepoint Designer Custom Workflow Activities