Configuring Windows Firewalls to Allow File and Print Sharing

In the case of virtual machines operating on Windows XP/Windows 2003/Windows 2008/Windows Vista/Windows 7, the firewall on the guest should be explicitly configured to allow Windows File and Print Sharing services which are required for the eG agent on the ESX host to communicate with the guest operating system.

To achieve this, do the following:

  1. Open the Virtual Infrastructure Client console, and from the tree-structure in its left pane, select the guest OS (Windows XP/Windows 2003/Windows Vista/Windows 2008/Windows 7) on which the firewall should be configured (see Figure 1).

    Figure 1 : Selecting the guest OS

  2. Follow the menu sequence: Start -> All Programs -> Control Panel (see Figure 2), and then double-click on the Windows Firewall option within. 

    Figure 2 : Opening the Windows Firewall

  3. Figure 3 then appears, with the General tab selected by default.

    Figure 3 : The General tab of the Windows Firewall dialog box

  4. Deselect the Don’t allow exceptions check box as indicated by Figure 4.

    Figure 4 : Deselecting the ‘Don’t allow exceptions’ check box

  5. Next, click on the Exceptions tab, and ensure that the File and Printer Sharing option is enabled (see Figure 5).

    Figure 5 : Enabling ‘File and Printer Sharing’

  6. Then, click the Edit button in Figure 6 to open the ports required for the agent-guest communication. Ensure that at least one of the listed TCP ports are enabled.

    Figure 6 : Opening ports

  7. Finally, click the ok button to register the changes.