# (C) Copyright 2000-2008 Hewlett-Packard Development Company, L.P.
# README.txt
# Windows "Guest Kit" Notes and Procedures:

Table of Contents
=================
    Contents of this Directory
    The HPVM-Guest bundle
    Known Issues
    How to install the HPVM-Guest bundle
	Installation Option #1 - Full package
	Installation Option #2 - Just the fix

Contents of this Directory
--------------------------
    README.txt				This file.
    WMIHpvmProvider64.msi		MSI file, containing the 
					HPVM-Guest bundle for VMs running
					Windows.
    hpvmMaximumSGList.cmd               Windows script to set the SCSI
                                        maximum SG list.
    hpvmQueueDepth.cmd			Windows script to set the SCSI
					queue depth.
    hpvmTimeOutValue.cmd		Windows script to set the Disk
					Class I/I timeout value.
    hpvm_run_MaximumSGList.cmd          Windows script to run the maximum
                                        SG list script at boot time.
    hpvm_run_QueueDepth.cmd		Windows script to run the queue
					depth script at boot time.
    hpvm_run_TimeOutValue.cmd		Windows script to run the timeout
					script at boot time.
    hpvmcollect.cmd			Windows command to collect 
					information from crash or dump
					on  a windows guest.
    <other OS-named directory>		Directory with OS-specific files.
    patterns.vmmpat			Symbolic link to common patterns
					file.

The HPVM-Guest bundle
---------------------
The Windows HPVM-Guest bundle installs the Integrity VM WBEM/WMI
provider, enables performance improvements in the virtual machine's (VM)
operating system, and provides the hpvmcollect command-line interface
(CLI).

Note: If you have installed the VM Provider package from the
SSM CD version 4.6 or newer, you do not have to perform the following
install, as the HPVM-Guest bundle is already in place on your guest.

Known Issues:
--------------
If you are seeing:
Event ID: 15 - "Device is not ready yet" errors,
OR
"The device, \Device\Scsi\symmpi1, did not respond within the timeout
period."
in your Windows guest event log, when the device is using file or LV
backing stores 
OR
errors in using attached tapes, changers, or burners
you need to install the HPVM-Guest bundle.

How to install the HPVM-Guest bundle
------------------------------------
The Integrity VM product contains distribution media to install the
Integrity VM software bundle HPVM-Guest.  This media is in the form of
Microsoft Installer (MSI) file located in OS-specific directories under
/opt/hpvm/guest-images/windows/.

    Installation Option #1 - Using the MSI.
    Installs the provider, support files and Timeout and 
    Queue depth changes..
    ----------------------------------------------------
1) Connect to, and log into your Windows guest as Administrator
   using Remote Desktop as usual.

2) Open a Command Prompt Window.
Start->Programs->Accessories->Command Prompt

3) Change directory to My Documents.
cd My Documents

4) From the Command Prompt Window, Connect to and log into your VM Host
   system as "root" using FTP.
Note: You may need to enable root ftp access on your VM Host.
(See ftpd(1M) on the VM Host for instructions)

C:\> FTP VMHost.YourCompany.com
ftp> CD /opt/hpvm/guest-images/windows
ftp> binary
ftp> GET WMIHpvmProvider64.msi
ftp> QUIT

5) Run the WMIHpvmProivder64.msi.
   A) To install everything select "Typical" or "Complete".

   B) To install a subset of functionality select "Custom".
      a) Select "WMI HPVM Provider" to install the provider and 
         related files.

      b) Select "HPVM Commands" to install support files, Timeout and 
         Queue Depth Changes.
    
    To uninstall the provider and support files
    -------------------------------------------
1) Run the WMIHpvmProivder64.msi and select Remove.


    Installation Option #2 - Not using the MSI.
    Only Install the Timeout and Queue depth changes.
    -------------------------------------------------
1) Connect to, and log into your Windows guest as Administrator
   using Remote Desktop as usual.

2) Using the Windows File Explorer. Check whether the folder:
   "C:\Program Files\Hewlett-Packard\HPVM\bin"
   exists. If it doesn't, then create the path to it.

3) Click on "My Computer". Start at "C:\Documents and Settings\" and
   make note of what the "ALL USERS" directory is called. Usually it is
   simply "All Users" but sometimes there will also be a 
   "All Users.WINDOWS" or something similar. The desired directory should
   contain the series of directories with your startup folder in it:
   "ALL USERS\Start Menu\Programs\Startup".

Note: You shouldn't need to create the startup folder, it should
      already exist.

   Other "ALL USERS" directories will simply be empty.  Make note of the
   path to your startup folder. It will be used during the FTP operation
   that follows.

4) Open a Command Prompt Window
Start->All Programs->Accessories->Command Prompt

5) From the Command Prompt Window, connect to and log into your VM Host
   system as "root" using FTP.
Note: You may need to enable root ftp access on your VM Host.
      (See ftpd(1M) on the VM Host for instructions)

C:\> FTP VMHost.YourCompany.com
ftp> CD /opt/hpvm/guest-images/windows
ftp> LCD "C:\Documents and Settings\ALL USERS\Start Menu\Programs\Startup"
ftp> GET hpvm_run_MaximumSGList.cmd
ftp> GET hpvm_run_QueueDepth.cmd
ftp> GET hpvm_run_TimeOutValue.cmd
ftp> LCD "C:\Program Files\Hewlett-Packard\HPVM\bin"
ftp> GET hpvmMaximumSGList.cmd
ftp> GET hpvmQueueDepth.cmd
ftp> GET hpvmTimeOutValue.cmd
ftp> GET README.txt
ftp> QUIT

6) Insert the MaximumSGList setting into the registry.
Execute:
C:\> "\Program Files\Hewlett-Packard\HPVM\bin\hpvmMaximumSGList.cmd" /d

7) Insert the QueueDepth setting into the registry.
Execute:
C:\> "\Program Files\Hewlett-Packard\HPVM\bin\hpvmQueueDepth.cmd" /d

8) Insert the TimeOutValue setting into the registry.
Execute:
C:\> "\Program Files\Hewlett-Packard\HPVM\bin\hpvmTimeOutValue.cmd" /d

9) Exit Command Prompt window.
C:\> Exit

10) Reboot your Windows guest.
Start->Shutdown->Restart

Note: These registry settings do not take effect until the guest is
      rebooted.

    To uninstall the the Timeout and Queue depth changes
    ----------------------------------------------------
1) Open a Command Prompt Window.
Start->All Programs->Accessories->Command Prompt

2) Remove the MaximumSGList setting from the registry.
Execute:
C:\> "\Program Files\Hewlett-Packard\HPVM\bin\hpvmMaximumSGList.cmd" /r

3) Remove the QueueDepth setting from the registry.
Execute:
C:\> "\Program Files\Hewlett-Packard\HPVM\bin\hpvmQueueDepth.cmd" /r

4) Remove the TimeOutValue setting from the registry.
Execute:
C:\> "\Program Files\Hewlett-Packard\HPVM\bin\hpvmTimeOutValue.cmd" /r

5) Exit command prompt window.
C:\> Exit

6) Open a Windows File Explorer window to:
"\Documents and Settings\ALL USERS\Start Menu\Programs\Startup"

7) Delete the file:
"hpvm_run_MaximumSGList.cmd"

8) Delete the file:
"hpvm_run_QueueDepth.cmd"

9) Delete the file:
"hpvm_run_TimeOutValue.cmd"

10) Open a Windows File Explorer window to:
"\Program Files\Hewlett-Packard\HPVM\bin\"

11) Delete the file:
"hpvmMaximumSGList.cmd"

12) Delete the file:
"hpvmQueueDepth.cmd"

13) Delete the file:
"hpvmTimeOutValue.cmd"

14) Reboot your Windows guest:
Start->Shutdown->Restart


