Saturday, August 3, 2013

Performance overview tab fails to open with error (How to ?)

Performance overview tab fails to display

1) Check for "vCenter Web Management Service" is running.

2) Check whether correct DNS & IP address are used

3) Navigate to "C:\Program Files\VMware\Infrastructure\VirtualCenter Server\extensions\com.vmware.vim.stats.report\"

4) Open file "extension.xml" in text editor.

5) Edit the line <url>https://FQDN.hostname:8443/statsreport/vicr.do</url> to use an IP address instead of an FQDN to rule out issues with DNS.

6) Restart "vCenter Web Management Service" and the "vCenter Server Service" after making any changes to the .xml

How to change the virtual SCSI controller of a virtual machine

Changing the virtual SCSI controller of a virtual machine

Before performing these steps, ensure that there are no snapshots in the virtual machine.

To change a virtual machine's SCSI controller when the guest operating system is already installed:

1) Power down the virtual machine.

2) Right-click the virtual machine and click "Edit Settings".

3) Click the SCSI controller.

4) Click "Change Type".

5) Select the controller type and click "OK".

6) Click "OK" to finish editing the properties of the virtual machine.

7) Power on the virtual machine.

If the virtual machine fails to boot:

1) Power down the virtual machine.

2) Change the first controller back to the original SCSI controller.

3) Add a new hard disk. When choosing the Virtual Device Node, select "SCSI (1:0)".

Note: When the virtual disk is created, it creates a second virtual SCSI controller.

4) Select the second virtual SCSI controller.

5) Click "Change Type".

6) Select the controller type and click "OK".

7) Click "OK" to finish editing the properties of the virtual machine.

8) Power on the virtual machine.

9) After the operating system boots, log in to the virtual machine. The operating system automatically detects the new SCSI controller and adds the appropriate drivers.

10) Power down the virtual machine.

11) Remove the added virtual disk. The controller is removed automatically.

12) Change the first virtual controller to the desired setting.

13) Power on the virtual machine.

Notes:
a) On Windows 2008 R2, perform steps 2 to 7 without powering off the virtual machine and continue with step 10.
b) Additional guest operating system specific steps may be required. The steps within the operating system after a virtual hardware change are the same as for a physical hardware change. For more information, see the appropriate software vendor documentation.

Unable to upgrade/uninstall existing VMware tools (How to ?)

Unable to upgrade/uninstall existing VMware tools

1) Start the virtual machine and log on as the Administrator.

2) Take a full backup of the registry prior to editing it. Do not skip this step.

3) Open the Windows Registry editor. Click Start > Run, type regedit, and press Enter.

4) Delete these registry keys if they exist:

HKEY_CLASSES_ROOT\Installer\Features\005014B32081E884E91FB41199E24004

HKEY_CLASSES_ROOT\Installer\Products\005014B32081E884E91FB41199E24004

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\005014B32081E884E91FB41199E24004

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\005014B32081E884E91FB41199E24004

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\0B150AC107B12D11A9DD0006794C4E25

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3B410500-1802-488E-9EF1-4B11992E0440}

HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.

5) Some services might need to be removed manually from the registry. Delete these as well if they exist:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VMTools

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VMUpgradeHelper

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VMware Physical Disk Helper Service

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vmvss

6) Search the registry for vmware and delete all associated entries.

Note: On virtual machines with any other VMware products installed (for example, vCenter Server), you might not want to delete all entries. If you do have another VMware product installed, then you can skip this step if you have already removed the entries in the previous procedures.

7) Close the registry editor.

8) Open Windows Explorer.

9) Delete the %ProgramFiles%\VMware\VMware Tools folder.

10) Restart the virtual machine.

11) Install the new version of VMware Tools.

Friday, August 2, 2013

How to reset root password for virtual appliance

Reset root password for virtual appliance (Capacity IQ)

This procedure works for all virtual appliance.

If you forget your password for logging in to the Admin Portal, reset the password. 

1) In VI Client, start up the virtual appliance and go to the console for the CapacityIQ virtual machine.

2) Press any key to display the GRUB menu in the console.

3) On the GRUB menu, select CentOS (2.6.18-92.e15).

4) Type e to edit the line. A list of items in the CentOS configuration file appears.

5) Select the line that starts with kernel and type e to edit the line.

6) At the end of the line, press the spacebar and type single to indicate single-user mode.

7) Press Enter to exit edit mode.

8) On the GRUB screen, type b to boot into single-user mode. The virtual appliance boots in single-user mode.

9) Run the passwd root command to change the root password.

10) Run the shutdown -r now command to restart the virtual appliance. When the virtual appliance starts, you can log in using the new password.

VMware Converter checklist

 VMware Converter checklist (for failed P2V migrations)

1) To eliminate permission issues, always use the local Administrator account instead of a Domain Account.

2) To eliminate DNS problems, use IP addresses instead of host names.

3) Ensure that you do not choose partitions that contain any vendor specific Diagnostic Partitions before proceeding with a conversion.

4) To reduce network obstructions, convert directly to an ESX host instead of vCenter Server as the destination. (Note: This is only an option in VMware Converter Standalone)

5) VMware Converter Standalone has many more options available to customize your conversion. If you are having issues using the Converter Plug-in inside vCenter Server, consider trying the Standalone version.

6) If a conversion fails using the exact size of hard disks, decrease the size of the disks by at least 1MB. This forces VMware Converter to do a file level copy instead of a block level copy, which can be more successful if there are errors with the volume or if there are file-locking issues.

7) Make sure there is at least 500MB of free space on the machine being converted. VMware Converter requires this space to copy data.

8) Shut down any unnecessary services, such as SQL, antivirus, and firewall programs. These services can cause issues during conversion. If you cannot stop these services, consider using the Cold Clone method.

9) Run a check disk on the volume before running a conversion as errors on disk volumes can cause VMware Converter to fail.

10) Do not install VMware Tools during the conversion. Install VMware Tools after you confirm that the conversion was successful.

11) Do not customize the new virtual machine before conversion.
12) Ensure that the following services are enabled:
          a) Workstation Service
          b) Server Service
          c) TCP/IP NetBIOS Helper Service
* Volume Shadow Copy Service

13) Check that the appropriate firewall ports are opened. For more information, see TCP and UDP Ports for vCenter Server, ESX hosts, and other network components management access (1012382).

14) Check that boot.ini is not looking for a Diagnostic/Utility Partition that no longer exists.

15) Unplug any USB, serial/parallel port devices from the source system. VMware Converter may interpret these as additional devices, such as external hard drives which may cause the conversion to fail.

16) If the source machine contains multiple drives or partitions and you are having issues failing on certain drives, consider converting one drive or partition at a time.

17) Verify that there are no host NICs or network devices in the your environment that have been statically configured to be at a different speed or duplex. This includes settings on the source operating system, switches and networking devices between the source and destination server. If this is the case, Converter sees the C: drive but not the D: drive.

18) If you are using a security firewall or Stateful Packet Inspecting (SPI) firewall, check firewall alerts and logs to make sure the connection is not being blocked as malicious traffic.

19) If you have static IP addresses assigned, assign the interfaces DHCP addresses prior to conversion.

20) If the source server contains a hard drive or partition larger than 256GB, ensure that the destination data-store block size is 2MB, 4MB, or 8MB, and not the default 1MB size. The 1MB default block size cannot accommodate a file larger than 256 GB.

21) Clear any third party software from the physical machine that could be using the Volume Shadow Copy Service (VSS). VMware Converter relies on VSS, and other programs can cause contention.

22) Break mirrored or striped volumes across multiple disks. Mirrored or striped volumes cannot be converted.

23) Verify that the VMware Converter agent is installed on the source machine. It may not be if the conversion fails right away.

24) Verify that DNS and reverse DNS lookups are working. It may be necessary to make entries into the local hosts file on source machine. As suggested in step 2, use IP addresses if possible.

25) You can run msconfig on the source server to reduce the number of services and applications running at startup. Only Microsoft Services and VMware Converter Service should be running.

26) Inject VMware SCSI drivers into the machine before conversion. Windows tries to Plug-n-Play the new SCSI Controller, and Windows may fail if the proper drivers are not installed.

27) If you customized permissions in your environment, ensure that local administrator has rights to all files, directories, or registry permissions before conversion.

28) Uninstall any UPS software. This has been known to cause issues after Conversion.

How to install HP Systems Insight Manager (SIM) bundle in ESXi for hardware monitoring

Step-by-step installation HP SIM bundle in ESXi

HPSIM user & group creation

1) Login to ESXi using vSphere client.

2) Go Local Users & Groups to create user for WBEM credentials


3) Select "Groups" tab -> right click and select "Add" to create a group
Group name: HPSIM
Group ID: 500

"Groups" tab should show as below




4) Select "Users" tab -> right click and select "Add" to create a user
User Name: adm-hpsim
UID: 501
Make sure user "adm-hpsim" is a member of groups "root" and "HPSIM"


"Users" tab should show as below


5) Select the tab "Permissions" and provide "Administrator" role permissions to user "adm-hpsim" or group "HPSIM" (not necessary for "adm-hpsim" if group "HPSIM" is provided "Administrator" role)


"Permissions" tab should show as below



HP SIM bundle scan, list & install

Requirement: vSphere CLI to install HP ESXi offline bundle

1) Power off any virtual machines that are running on the host and place the host into maintenance mode.

2) Find out which bulletins are applicable to the ESXi host.
Search an offline HTTP server:
vihostupdate.pl --server <server> --scan --bundle http://<webserver>/rollup.zip
Search the local machine:
vihostupdate.pl --server <server> --scan --bundle <local_path>/rollup.zip
The --server argument is the ESXi host name or IP address.

Do not specify more than one bundle ZIP file at the command line each time you run the command. If you
specify --bundle more than once, the command processes only the last file that was specified.

3) (Optional) List all the bulletins that are available in the bundle.
Search an offline HTTP server:
vihostupdate.pl --server <server> --list --bundle http://<webserver>/rollup.zip
Search the local machine:
vihostupdate.pl --server <server> --list --bundle <local_path>/rollup.zip
This command lists all the bulletins contained in the bundle, even those that do not apply to the host.

4) Install bulletins from the bundle on the ESXi host.
Install from an offline HTTP server:
vihostupdate.pl --server <server> --install --bundle http://<webserver>/rollup.zip --bulletin bulletin1,bulletin2
Install from the local machine:
vihostupdate.pl --server <server> --install --bundle <local_path>/rollup.zip –bulletin bulletin1,bulletin2
If you omit the --bulletin argument, this command installs all the bulletins in the bundle.

5) Verify that the bulletins are installed on your ESXi host.
vihostupdate.pl --server <server> --query

6) (Optional) Remove individual bulletins.
vihostupdate.pl --server <server> --remove --bulletin bulletin1
Use this option only for removing bulletins that are third-party or VMware extensions. Do not remove bulletins that are VMware patches or updates. vihostupdate can remove only one bulletin at a time.

7) After bundle installation, ESX host should be rebooted to take effect of changes.

Adding ESX host to SIM centralized server

1) https://SIM_SERVER_HOST_NAME:50000/

2) Login using your domain admin account

3) Go "Options" -> Select "Discovery"
 
4) Select "New" -> Select "Discover a single system"
 
5) Deselect "automatically execute discovery every"
 
6) Keep Host name on system’s name field.

7) Select "credentials" on bottom of this page -> select "show advanced protocol credentials" on right top side of your page.

8) Select tab "wbem/wmi on top".

9) Update username as "adm-hpsim" and update its password -> Select "OK"

10) Select "save".

11) On top of your page select "run now".

12) check "target details"

13) To test whether the server is included in the SIM centralized server, Select "All systems" on left side from index -> select ESX server which has been added to SIM server

14) You should see properties under more information. Please select "properties", you will be redirected to another page you should see host identity, Status and Configuration.





Upgrade VMware tools without rebooting the Guest OS

Upgrade VMware tools without rebooting the Guest OS (works on Windows guest OS)

This works only during upgrading the VMware tools and on Windows guest OS. This script won't help you to perform fresh installation of VMware tools.

/s /v/qn ADDLOCAL=ALL REBOOT=ReallySuppress




To perform a silent, non-GUI with suppressed reboot VMware Tools installation in a Windows guest operating system:

In ESXi 5.0.x and earlier versions, run this command:

setup.exe /S /v"/qn REBOOT=ReallySuppress

In ESXi 5.1.x, run this command:

setup.exe /S /v"/qn REBOOT=R"

Note: The installer may indicate if a reboot is necessary by exiting with ERROR_SUCCESS_REBOOT_REQUIRED.

Alternatively, in vCenter Server, right-click a virtual machine, click Install/Upgrade VMware Tools, and enter this in the Advanced field:

/S /v"/qn REBOOT="ReallySuppress"

In vCenter Server 5.1.x, the Advanced field is:

/S /v"/qn REBOOT=R"