| ||
|
As I move forward in the ever changing world of technology, I record my experiences and findings. As I have benefitted a lot from my fellow bloggers therefore in some small way I now wish to repay back to the community.
Wednesday, April 9, 2008
How to Create a MOSS 2007 VPC Image: Part 1
Worker Process Isolation Mode (IIS 6.0)
IIS 6.0 worker process isolation mode takes the concept of application isolation, which was introduced in IIS 4.0, one step further. In IIS 6.0, you can isolate one application from another so that an error in one application does not affect another application running in a different process. This application isolation mode provides better isolation while not incurring a performance penalty for isolation.
Worker process isolation mode loads application code — for example, ASP and ASP.NET applications — into the worker process only. By isolating application code in the worker process, this application isolation mode ensures a reliable environment for an application server: the WWW service, IIS Admin service, and HTTP.sys can run continuously despite any service interruptions that occur in a worker process. Also, Web sites running in the worker processes are not affected by failures in other worker processes because they are isolated from each other through operating system process boundaries.
Worker process isolation mode uses all of the new IIS 6.0 core components and supports application pooling, recycling, and health monitoring features.
Troubleshooting in IIS 6.0 (IIS 6.0)
Many of the design changes in Internet Information Services (IIS) 6.0 directly address the need to secure the World Wide Web Publishing Service (WWW service) as a whole, and Web and FTP sites in particular. You might experience errors if you have not enabled certain features or services that are locked, or disabled, by default. This topic describes some of the symptoms of these errors and the processes to remedy them (or a link to a topic that describes how to remedy the error). For a comprehensive list of changes in IIS 6.0, including a list of security changes and a brief explanation of the new process model, see What's Changed in IIS 6.0.
| • | |
| • | |
| • |
Installing IIS (IIS 6.0)
This topic describes 3 methods for installing IIS:
| • | Using the Configure Your Server Wizard. |
| • | Using Add or Remove Programs from Control Panel. |
| • | Using unattended setup. |
This topic also lists the directories created on install, describes the IIS initial configuration backup, and briefly describes IIS optional components.
Important
To help minimize the attack surface of the server, IIS 6.0 is not installed on Windows Server 2003 by default. When you first install IIS 6.0, it is locked down — which means that only request handling for static Web pages is enabled, and only the World Wide Web Publishing Service (WWW service) is installed. None of the features that sit on top of IIS are turned on, including ASP, ASP.NET, CGI scripting, FrontPage® 2002 Server Extensions from Microsoft, and WebDAV publishing. If you do not enable these features, IIS returns a 404 error. You can enable these features through the Web Services Extensions node in IIS Manager. For more information about how to troubleshoot 404 errors and other issues, see Troubleshooting in IIS 6.0.
Microsoft strongly recommends installing IIS on an NTFS-formatted drive. NTFS is a more powerful and secure file system than FAT and FAT32. For more information, see Securing Files with NTFS Permissions.
Important
You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc systemroot\system32\inetsrv\iis.msc".
Procedures
To install IIS using the Configure Your Server Wizard
| 1. | From the Start menu, click Manage Your Server. |
| 2. | Under Managing Your Server Roles, click Add or remove a role. |
| 3. | Read the preliminary steps in the Configure Your Server Wizard and click Next. |
| 4. | Under Server Role, click Application server (IIS, ASP.NET) and then click Next. By default, the wizard installs and enables IIS, COM+, and DTC. |
| 5. | If you want to serve either of the optional technologies (FrontPage Server Extensions or ASP.NET), on the Application Server Options page, select the appropriate check boxes, and then click Next. |
| 6. | Read the summary and click Next. |
| 7. | Complete the wizard, and then click Finish. |
Note
The Configure Your Server Wizard enables ASP.NET by default, unlike the Add/Remove Windows components install method below.
For more information on the Configure Your Server Wizard, see "Configuring Your Server Wizard" in Windows Help.
To install IIS, add components, or remove components using Control Panel
| 1. | From the Start menu, click Control Panel. |
| 2. | Double-click Add or Remove Programs. |
| 3. | Click Add/Remove Windows Components. |
| 4. | In the Components list box, click Application Server. |
| 5. | Click Details. |
| 6. | Click Internet Information Services Manager. |
| 7. | Click Details to view the list of IIS optional components. For a detailed description of IIS optional components, see "Optional Components" in this topic. |
| 8. | Select all optional components you wish to install. |
Note
The World Wide Web PublishingService optional component includes important subcomponents like the Active Server Pages component and Remote Administration (HTML). To view and select these subcomponents, click World Wide Web Publishing Service and then click Details.
| 1. | Click OK until you are returned to the Windows Component Wizard. |
| 2. | Click Next and complete the Windows Component Wizard. |
Unattended Setup
To simplify the process of setting up IIS on multiple computers running a member of the Windows Server 2003 family, you can run setup unattended. To do this, create and use an answer file, which is a customized script that automatically answers the setup questions.
For information on how to create an answer file and to view a table of all IIS unattended setup parameters, see Appendix E: Unattended Setup.
IIS Directories
IIS installs the following directories:
| • | \InetPub |
| • | systemroot\Help\IISHelp |
| • | systemroot\System32\InetSrv |
| • | systemroot\System32\InetSrv\MetaBack |
These directories contain user content and cannot be moved. You can, however, select the location of your Wwwroot and Ftproot directories at installation by using a script during unattended setup. If you uninstall IIS, the IISHelp directory is removed. The InetPub and InetSrv directories remain on your computer.
IIS Initial Configuration Backup
When you first install IIS, a backup of the initial metabase configuration is automatically created in the systemroot\System32\InetSrv\MetaBack directory. This backup can be used to restore the IIS configuration to its state immediately following IIS installation. This is a useful tool for solving metabase corruption or configuration problems, and can help you recover a known good configuration without needing to reinstall IIS. This backup is not password protected, and can only be used to restore settings on the system on which it was created. See Backing Up and Restoring the Metabase in IIS 6.0 for information about restoring the initial IIS configuration backup.
It is strongly recommended that following IIS installation, and before any configuration changes are made, you create a password-protected backup of the IIS configuration. Unlike the automatic initial configuration backup, a password-protected backup is system independent, and can be used to restore settings on other systems running IIS 6.0. See Backing Up and Restoring the Metabase in IIS 6.0 for information about creating a password-protected backup of the IIS configuration.
Optional Components
IIS includes optional components that you can enable or disable at anytime through the Add or Remove Programs item in Control Panel, or using unattended setup. Descriptions of these components and the impact to your current IIS settings are described below.
Files for Active Server Pages (ASP), Internet Data Connector, server-side includes, and WebDav are installed, but disabled by default on a clean installation. All IIS functionality is enabled by default on an upgrade. When one of these components is selected or cleared from the Windows Components Wizard or by using an unattended file, the component is enabled or disabled in the WebSvcExtRestrictionList Metabase Property.
BITS Server Extensions
The Background Intelligent Transfer Service (BITS) is a background file transfer mechanism and queue manager, also known as a drizzle service. BITS throttles file requests to minimize bandwidth consumption and enhance the end-user experience. Enable BITS with IIS to maintain Web server quality of service. From the Windows Components Wizard, click Details to enable the following BITS Server components:
| • | BITS Server Extensions ISAPI: Enable this option to drizzle IIS requests with the help of the BITS server. |
| • | BITS Server Extensions Snap-in: Enabling this option to access and view the BITS graphical user interface (GUI). |
Common Files
For the sake of added security in your server environment, you may choose to deselect some of the common files. However, if you deselect the Common Files option, all of the common files are subsequently deselected and IIS will not be installed on your machine. Therefore, if you want to install IIS on your computer, leave this option selected. If you want to limit the services and components installed with IIS, deselect the individual components that are listed below the Common Files component.
File Transfer Protocol (FTP) Server
The File Transfer Protocol (FTP) is used to copy files to and from remote computer systems on a network that uses Transmission Control Protocol/Internet Protocol (TCP/IP).
FrontPage 2002 Server Extensions
FrontPage 2002 Server Extensions allow you to view and manage a Web site in a graphical user interface using FrontPage as the authoring environment. FrontPage allows you to quickly create Web sites on your server, as well as, create, edit, and post Web pages to IIS remotely. While you are creating your site, FrontPage keeps a connection open to IIS, saving and changing the Web files so you can view your site. If you choose not to install the FrontPage Server Extensions, you will have to manually copy all of your Web content, configure your settings, and in some cases, manually register applications already registered in FrontPage. Microsoft FrontPage Server Extensions are not supported for resources in Microsoft Clustering.
Internet Information Services Manager
IIS Manager is a graphical user interface to administer your Web site. In previous releases of IIS, this tool was called the Internet Service Manager. Without IIS Manager, you can still manage your server, but you must use coded scripts that call on the IIS APIs to create sites, applications, virtual directories, and security settings.
NNTP Service
Use Network News Transfer Protocol (NNTP) to distribute network news messages to NNTP servers and to NNTP clients (news readers) on the Internet. NNTP provides for the distribution, inquiry, retrieval, and posting of news articles by using a reliable stream-based transmission of news on the Internet. NNTP is designed so that news articles are stored on a server in a central database, thus users can select specific items to read. Indexing, cross-referencing, and expiration of aged messages are also provided.
If you have NNTP installed, you can view Microsoft News (NNTP) Service Help by typing file:\\%systemroot%\help\news.chm in your browser address bar and pressing ENTER.
SMTP Service
Use Simple Mail Transfer Protocol (SMTP) to set up intranet mail services that work in conjunction with IIS. SMTP is a TCP/IP protocol for sending messages from one computer to another on a network. This protocol is used on the Internet to route e-mail.
If you have SMTP installed, you can view Microsoft Mail (SMTP) Service Help by typing file:\\%systemroot%\help\mail.chm in your browser address bar and pressing ENTER.
World Wide Web Publishing Service
IIS serves pages to the Internet and the World Wide Web. This component must be installed for IIS to perform its primary service. If you do not select this option, you disable IIS.
The World Wide Web Publishing Service (WWW service) includes the following subcomponents:
| • | About ASP: Select to enable ASP on your server. If this option is not selected, all .asp requests return a 404 error. |
| • | Internet Data Connector: Select to enable Internet Data Connector on your server. If this option is not selected, all .idc requests return a 404 error. |
| • | Administering Servers Remotely in IIS 6.0: Select to enable remote Web administration of your IIS Web server from any Web browser on your intranet. Once you install IIS and view your Web sites through IIS Manager, IIS creates a site called Administration. |
| • | Remote Desktop Web Connection: Select to enable connectivity to a computer's desktop from a remote location and run applications as if you were sitting at the console. |
| • | Using Server-Side Include Directives: Select to enable server-side include files on your server. If this option is not selected, all .shtm, .shtml, and .stm requests return a 404 error. |
| • | Web Authoring with WebDAV: Select to allow Web Distributed Authoring and Versioning (WebDAV) on your server. WebDAV is similar to File Transfer Protocol, with the exception being that WebDAV allows any WebDAV client to publish and change content in a WebDAV directory using HTTP. |
| • | Web Site Administration: Select to install the World Wide Web Publishing Service. If this option is not selected, IIS does not run on your server. |
Related Information
| • | For information about unattended setup, see "Planning for Unattended Setup" in Windows Help. |
SMTP Server Setup (IIS 6.0)
SMTP Server Setup (IIS 6.0)
The Simple Mail Transfer Protocol (SMTP) service provided by IIS is a simple component for delivering outgoing e-mail messages. Delivery of a message is initiated by transferring the message to a designated SMTP server. Based on the domain name of the recipient e-mail address, the SMTP server initiates communications with a Domain Name System (DNS) server, which looks up and then returns the host name of the destination SMTP server for that domain.
Next, the originating SMTP server communicates with the destination SMTP server directly through Transmission Control Protocol/Internet Protocol (TCP/IP) on port 25. If the user name of the recipient e-mail address matches one of the authorized user accounts on the destination server, the original e-mail message is transferred to that server, waiting for the recipient to pick up the message through a client program.
In the case where the originating SMTP server cannot communicate directly with the destination server, the SMTP service can transfer messages through one or more intermediate relay SMTP servers. A relay server receives the original message and then delivers it to the destination server, or redirects it to another relay server. This process is repeated until the message is delivered or a designated timeout period passes.
The SMTP service is not installed by default. You must install the SMTP service using the Control Panel. Installing the SMTP service creates a default SMTP configuration which you can then customize to your needs using IIS Manager.
Many articles about deploying and configuring the SMTP service are available by searching for "smtp" on the Microsoft Developer Network (MSDN) Web site.
Procedures
To install the SMTP service
| 1. | From the Start menu, click Control Panel. |
| 2. | Double-click Add or Remove Programs. |
| 3. | From the left pane, click Add/Remove Windows Components. |
| 4. | From the Components list, click Application Server, and then click Details. |
| 5. | From the Subcomponents of Application Server list, click Internet Information Services (IIS), and then click Details. |
| 6. | From the Subcomponents of Internet Information Services (IIS) list, select the SMTP Service check box. |
| 7. | Click OK. |
| 8. | Click Next. You might be prompted for the Windows Server 2003 family CD or the network install path. |
| 9. | Click Finish. |
When you install the SMTP service, a default SMTP server configuration is created with a message store in LocalDrive:\Inetpub\Mailroot.
When setting up the SMTP service for the first time, you can configure global settings for a SMTP virtual server, as well as settings for individual components of the virtual server.
Important
You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".
To configure global SMTP settings
| 1. | In IIS Manager, expand the local computer, right-click Default SMTP Virtual Server, and click Properties. |
| 2. | Change the default settings on the property pages as needed. For information about individual settings, click Help. |
To configure SMTP virtual server components settings
| 1. | In IIS Manager, expand the local computer, expand Default SMTP Virtual Server, right-click the component you want to configure, and click Properties. |
| 2. | Change the default settings on the property pages as needed. For information about individual settings, click Help. |
MOSS 2007 Evaluation VPC
Announcing the availability of a MOSS VPC (Inc 2007 client) in the VHD Program run by the Server Virtualization team and available for download on Microsoft.com.
The VPC includes the MOSS Product Evaluation Guide (on the desktop) and is configured so the walk through at the end of the guide works with the image.
Direct Download Link.
Monday, March 31, 2008
DHCP
DHCP uses the concept of a "lease" or amount of time that a given IP address will be valid for a computer. The lease time can vary depending on how long a user is likely to require the Internet connection at a particular location. It's especially useful in education and other environments where users change frequently. Using very short leases, DHCP can dynamically reconfigure networks in which there are more computers than there are available IP addresses. The protocol also supports static addresses for computers that need a permanent IP address, such as Web servers.
DHCP is an extension of an earlier network IP management protocol, Bootstrap Protocol (BOOTP). DHCP is a more advanced protocol, but both configuration management protocols are commonly used and DHCP can handle BOOTP client requests. Some organizations use both protocols, but understanding how and when to use them in the same organization is important. Some operating systems, including Windows NT/2000, come with DHCP servers. A DHCP or BOOTP client is a program that is located in (and perhaps downloaded to) each computer so that it can be configured.










Comments
Thank you - Great
Thank you - Donald
Thanks.. ^^;
Thx
I'll give this a try.
Ad Weterings - The Netherlands
http://microsoftwatcher.spaces.live.com/
Thanks
.NET Framework Version
Awesome effort here, by the way.
Disk Setup
Could not install SP2
I am running on Vista, but VPC 2007 is supposed to support it.
Any ideas?
Domain Controller needed?
Does the windows server need to be a domain controller? Are all local accounts ok.
thanks for posting this!
-gezelle
RE:.NET Framework 2.0, it wasn't listed among the possibilities
download it from msft
Doain ontroller
\anders
Which version of VPC?
How big should my virtual disk be when making this VPC image?
Answers to .NET Framework. VPC Version, W2K3 Version
Download .NET Framework 2.0 from http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en
I have used both. Been using VPC 2007 with WSS 3/MOSS 2007 images for the last 10 months.
W2K3. Minimum on a VPC is Standard. In production you could use Web Edition in the WFE.
Dave B
How big a VPC drive.
I have found a 25 gig split in two 15 and 10. I keep VHD's dynamic.
With 15 gig you have enough room for all of the updates. You can install MOSS on Drive D which is a best practice in production.
If you get the size wrong on the second partition you can use VhdResizerto resize. Cann't resize the boot partition. Oh yes VhdResizer is freeware. ANDit works.
Dave