Summary This document outlines the process to perform the following tasks. 1. Configure Windows Server 2003 Release 2 Server Network File Share (NFS) as an authenticated storage repository for XenServer. 2. Using XenServer and NFS to update provisioning server device target software Configure Windows Server 2003 Release 2 Server Network File Share (NFS) as an authenticated storage repository for XenServer The NFS component is included in Windows Server 2003 Release 2. If you do not have Windows Server 2003 Release 2, you can achieve the same results by installing Microsoft Services for UNIX, available from the Microsoft Web site. Procedure Microsoft Services for NFS component can be installed using Add/Remove Windows Components wizard. 1. Select the Other Network File and Print Services and click Details. 2. Select the Microsoft Services for NFS check box and click Details.
3. All options should be selected.
4. Click OK to close the subcomponents window, click OK to close the Other Network File and Print Services window. You might be prompted to insert the Window 2003 Release 2 Disk 2 media. To allow only a specific host to authenticate with NFS shares on your Windows server, you can use a User Mapping, Active Directory, or maphost file. For this article only the User Mapping method is described. 5. Copy the following files from your XenServer to a folder on your NFS server. For example C:\etc. passwd group The files can be found in the /etc directory on your XenServer. You can use WinScp or a similar program to transfer files from your XenServer. 6. Click Start > Administrative Tools > Services for Network Filesystem. 7. Right click on User Name Mapping from the Microsoft Services For NFS console. 8. From the Unix User Source tab select User Password and Group files and type the path for the files copied to in step 5, for example, C:\etc and click OK.
9. From the main console expand the User Name Mapping node.
10. Right click on User Maps and select Create Map.
11. From Create Advanced User Mapping select your domain or local machine name from the Windows domain drop down and click List Windows Users and List UNIX Users to display the list of available users for mapping. Select the Windows users and the XenServer users from each list that you wish to map together and click Add.
12. After clicking Add the mapping should be shown in the console. 13. Create the folder that you would like to use as the XenServer NFS Storage Repository. Open the properties of the folder. Select the NFS tab. Select the option to Share this folder. Make sure that Allow anonymous access is not selected.
14. Click Permissions. The Type of access should be Read-Write. The Allow root access box should be selected.
After clicking OK you can now add the NFS share to your XenServer using the new storage repository wizard from the XenCenter console.
Using XenServer and NFS to update provisioning server device target software A NFS share is required to successfully complete this process. This document assumes the share is mounted and accessible from XenServer. 1. From XenCenter console, create a new virtual machine based on the target device properties. In this scenario, our target device is a Windows XP SP3 virtual machine with two (2) vcpus and 512MB RAM. 2. Click Next 3. Enter a name for the virtual machine.
4. Click Next 5. Specify the location to the Provisioning Services ISO image 6. Allocate the desired number of vcpu and memory 7. Click Next 8. Modify the default storage by selecting Edit then select the Disk Setting Location for the NFS storage repository.
9. Click OK 10. Click Next 11. After assigning the correct virtual network interface(s) click Next 12. Uncheck the option to Start VM automatically 13. Click Finish 14. Browse to the NFS share via Windows Explorer. NOTE: During the process of mounting the NFS storage repository via XenCenter, a folder was created with a GUID. 15. Ensure that vdisk that needs updating is not in use by any devices 16. Copy vdisk to XenServer folder specified in step 14 17. This folder should already contain a *.vhd file that was created and assigned to the virtual machine created earlier. The file name is represented by a GUID. 18. Rename the copied vdisk to match the name of the vhd file created by XenServer from Step 17. 19. Start the newly created virtual machine. 20. Once the virtual machine boots into the operating system proceed to uninstall the current version of the device target software. 21. Reboot the virtual machine. 22. Install the new version of the provisioning client software 23. Reboot the virtual machine 24. Shutdown the virtual machine 25. Copy the vdisk back to the original PVS share location. 26. Rename the vdisk to its original name. The vdisk is now ready to be deployed to the devices with the updated device target software.