Labels

Showing posts with label Virtualization. Show all posts
Showing posts with label Virtualization. Show all posts

Tuesday, March 18, 2014

VMware Update Manager Error while upgrading from Esxi 5.0 to ESXi5.5

Remediate task fails with error “Cannot execute upgrade script on host.”. This is an unidentified issue as of now and no KB article available. Workaround is manually disable HA agent on host and start remediate task again.

Disable HA agent manually using ssh session.

#cp /opt/vmware/uninstallers/VMware-fdm-uninstall.sh /tmp
#chmod +x /tmp/VMware-fdm-uninstall.sh
#/tmp/VMware-fdm-uninstall.sh

Saturday, January 25, 2014

HP Virtual Connect - Supported Bonding Mode for Linux in a VC Environment

Information

Unsupported bonding modes in an HP Virtual Connect environment can produce packet loss and/or performance issues.

Details

HP Virtual Connect supports bonding modes 1, 5, or 6. VC does not support modes 0 (round robin) or 7 (switch assisted load balancing).

Mode 1 : Active/backup. Active-backup policy: Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. The bond's MAC address is externally visible on only one port (network adapter) to avoid confusing the switch.

Mode 5 : Adaptive transmit load balancing: channel bonding that does not require any special switch support. The outgoing traffic is distributed according to the current load (computed relative to the speed) on each slave. Incoming traffic is received by the current slave. If the receiving slave fails, another slave takes over the MAC address of the failed receiving slave.

Mode 6 : Adaptive load balancing: includes balance-tlb plus receive load balancing (rlb) for IPV4 traffic, and does not require any special switch support. The receive load balancing is achieved by ARP negotiation.

Ref:

Friday, January 24, 2014

P2V Windows Server 2003 OEM Version to VMware

Requirements:

A. A valid open Windows 2003 license [MS Volume License]

B. A valid W2k3 Volume License CD or ISO

Steps:

1. Use VMware converter to convert your server to a virtual machine.

2. Connect to converted VM

3. While still in the “Edit Settings” screen, go to the “Options” tab, then click on “Boot Options” and click the box to force you into the bios settings.

4. Open the console for the VM and start the machine

5. Boot to BIOS, make CD ROM is the first boot device.

6. Save settings and exit, Let it boot, press any key to boot from the CD

7. Choose “Install”, and then repair it.

8. Enter the CD Key in which you enter your Volume License key

9. Install VMware Tools.

10. Shutdown old server and change the address in Windows to that of the old server, test application.

Saturday, December 21, 2013

Network adapter disappears from a Windows XP virtual machine

 

ESX/ESXi 4.x and later version included a feature called HotPlug. In some deployments virtual NICs can appear as removable devices on the System Tray in Windows guest operating systems. Problems can occur if you mistake this device for one that you can safely remove

xP_12_usb_nic

Disable HotPlug capability using the vSphere Client:

  1. Connect to the ESXi/ESX host or vCenter Server using the vSphere Client.
  2. Power off the virtual machine.
  3. Right-click the virtual machine and click Edit Settings.
  4. Click the Options tab.
  5. Click General > Configuration Parameters > Add Row.
  6. Insert a new row with the name devices.hotplug and a value of false.
  7. Power on the virtual machine.

To disable HotPlug capability by editing the .vmx file:
  1. Power off the virtual machine.
  2. Access the ESXi/ESX service console using an SSH client.
  3. Open the virtual machine configuration file (.vmx) in a text editor. The default location is:
    /vmfs/volumes/datastore_name/vm_name/vm_name.vmx
  4. Add the line:
    devices.hotplug = "false"
    Note: This setting does not interfere with HotPlug CPU/memory.
  5. Save and close the file.
  6. Power on the virtual machine.

Thursday, December 12, 2013

VMware Converter: Increase copy speed by disabling disabling SSL encryption

Locate the converter-worker.xml file. By default, it is located at:

  • Windows 7 and 2008 Server – C:\ProgramData\VMware\VMware vCenter Converter Standalone
  • Windows Vista, XP and 2003 Server – %ALLUSERSPROFILE%\VMware\VMware vCenter Converter Standalone
  • In older Windows versions – %ALLUSERSPROFILE%\Application Data\VMware\VMware vCenter Converter Standalone
  • Take a backup of the converter-worker.xml file.
  • Open the file in a text editor and locate the tag pair <useSsl></useSsl>. It is located inside the <nfc> tag and has a value of true.
  • Change the value to false.
  • Save and close the file.
  • Restart the VMware vCenter Converter Standalone Worker service on the machine.

Tuesday, December 3, 2013

SCVMM R2 converted to trail after installing SP1

After installing SP1 on SCVMM 2008 it converted to trail version.

1. Download the correct licensed version of VMM 2008 R2 SP1 from the above link.
2. Uninstall VMM 2008 R2 SP1 evaluation with retain database option
3. Start the install of the downloaded VMM 2008 R2 SP1 Licensed version and select the retained database.

Note: During reinstall you might get below error, when you click the drop down for the SQL Instance:

"No Sql Server instance is found on the specified server localhost. (ID:360)  verify that SQL 2005 is installed properly and the SLQ Server service is running"

To solve this issue uninstall the evaluation Admin Console and try to install again.

Monday, September 16, 2013

Renaming .vmdk file using the virtual disk using the ESX/ESXi host console interface

  1. Navigate to the virtual machine's directory using a command similar to:
    cd "/vmfs/volumes/Datastore Name/Directory Name/"
  2. Obtain a listing of the files within a directory using the command:
    ls -l
    For example:
    total 320
    -rw------- 1 root root        8684 Aug 30 10:53 examplevm.nvram
    -rw------- 1 root root 21474836480 Aug 30 10:26 examplevm-flat.vmdk
    -rw------- 1 root root         482 Aug 30 11:26 examplevm.vmdk
    -rw------- 1 root root           0 Aug 30 10:33 examplevm.vmsd
    -rwxr-xr-x 1 root root        2724 Aug 30 12:20 examplevm.vmx
    -rw------- 1 root root         264 Aug 30 12:20 examplevm.vmxf
    -rw-r--r-- 1 root root       39168 Aug 30 10:53 vmware.log
  3. Rename a virtual disk using a command similar to:
    vmkfstools -E OldName.vmdk NewName.vmdk
    For example:
    vmkfstools -E examplevm.vmdk examplevm-renamed.vmdk
    Note: Specify the descriptor file; the associated extent file is renamed in the process.
  4. Validate the files were renamed by listing the files within the directory using the command:
    ls -l
    For example:
    total 320
    -rw------- 1 root root        8684 Aug 30 10:53 examplevm.nvram
    -rw------- 1 root root 21474836480 Aug 30 10:26 examplevm-renamed-flat.vmdk
    -rw------- 1 root root         482 Aug 30 11:26 examplevm-renamed.vmdk
    -rw------- 1 root root           0 Aug 30 10:33 examplevm.vmsd
    -rwxr-xr-x 1 root root        2724 Aug 30 12:20 examplevm.vmx
    -rw------- 1 root root         264 Aug 30 12:20 examplevm.vmxf
    -rw-r--r-- 1 root root       39168 Aug 30 10:53 vmware.log

Thursday, July 4, 2013

Hyper-V: Configure VLANs and VLAN Tagging

The most Generic model:  enable Trunking on the physical switch (specifying the VLAN IDs and native VLAN) and apply a VLAN ID in the settings of the virtual NIC of each VM that needs it and the VM is attached to the proper External Virtual Network.

Note:  Hyper-V Virtual Networks are "trunking mode" by default.

  1. Configure the switch port as a trunk
  2. Specify VLAN IDs / Tags and native VLAN
  3. On Hyper-V create an External Virtual Network attached to the configured trunk port of the physical switch
  4. Apply a VLAN ID / Tag to each VM in the settings of the virtual network adapter

The Network Teaming model:  NIC Teaming is involved (since Hyper-V does not support bonding) - you apply the VLAN tag to the Teaming virtual NIC and attach a virtual switch to this.

  1. Create a trunked port on your switch.
  2. Create a team
  3. Create several Team Virtual NICs in parent partition assigning different VLAN IDs to each virtual NIC
  4. Create a Virtual Network from each of the Teaming Virtual NICs
  5. Connect VMs to proper Virtual Networks
  6. Don’t specify the VLAN ID field in VM properties
  7. But in some cases (e.g. HP NCU) step 6 is exactly opposite. You must specify VLAN ID both on virtual NIC level (step 3) and each VM level (step 6)

SCVMM is involved – follow the Generic Model and be sure to set the “trunking” option on the Virtual Network settings in the SCVMM management console.

Note: SCVMM exposes the two different types of trunking options (the Hyper-V Manager GUI does not expose the access mode setting) - trunk mode and access mode.

Wednesday, June 19, 2013

How to Zone a Brocade SAN Switch

HBA - Host Bus Adapter, which in this case, refers to the Fibre Channel Card. In LAN networking, it’s analogous to an Ethernet card.
WWN - World Wide Name, a unique 8-byte number identifying the HBA. In Ethernet networking, it’s analogous to the MAC address.
FC Zone - Fibre Channel Zone, a partitioned subset of the fabric. Members of a zone are allowed to communicate with each other, but devices are not allowed to communicate across zones. An FC Zone is loosely analogous to a VLAN.

Plug in the FC Connector into an open port on the switch.
  1. Login to the server and verify the HBA connection. It should see the switch but not the storage device.
  2. Login to the Brocade Switch GUI interface. You’ll need Java enabled on your browser.
  3. Check the Brocade Switch Port.
    1. On the visual depiction of the switch, click on the port where you plugged in the FC connector.
    2. The Port Administration Services screen should pop up. You’ll need to enable the pop-up.
    3. Verify that the Port Status is “Online”. Note the port number.
    4. Close the Port Administration Services screen.
  4. Find the WWN of your new device
    1. Navigate back to the original GUI page.
    2. Select Zone Admin, an icon on the bottom left of the screen. It looks like two squares and a rectangle.
    3. Expand the Ports & Attaching Devices under the Member Selection List.
    4. Expand the appropriate port number. Note the attached WWN.
  5. Create a new alias for this device
    1. Click New Alias button
    2. Follow menu instructions
  6. Add the appropriate WWN to the alias
    1. Select your new device name from the Name drop down menu
    2. Expand the WWNs under Member Selection List
    3. Highlight the appropriate WWN
    4. Select Add Member
  7. Add the alias to the appropriate zone
    1. Select the Zone tab
    2. Select the appropriate zone from the Name drop down menu
    3. Select the appropriate alias from the Member Selection List
    4. Click Add Member
  8. Ensure that the zone is in Zone Config in the Zone Config tab
  9. Save your changes by selecting ZoningActions -> Enable Config

Ref:

Using esxtop to identify VMware storage performance issues

Configuring monitoring using esxtop
To monitor storage performance per HBA:
  1. Start esxtop by typing esxtop at the command line.
  2. Press d to switch to disk view (HBA mode).
  3. Press f to modify the fields that are displayed.
  4. To view the entire Device name, press SHIFT + L and enter 36 in Change the name field size.
  5. Press b, c, d, e, h, and j to toggle the fields and press Enter.
  6. Press s, then 2 to alter the update time to every 2 seconds and press Enter.
  7. See Analyzing esxtop columns for a description of relevant columns.
Note: The following options are only available in VMware ESX 3.5 and later.
To monitor storage performance on a per-LUN basis:
  1. Start esxtop by typing esxtop from the command line.
  2. Press u to switch to disk view (LUN mode).
  3. Press f to modify the fields that are displayed.
  4. Press b, c, f, and h to toggle the fields and press Enter.
  5. Press s, then 2 to alter the update time to every 2 seconds and press Enter.
  6. See Analyzing esxtop columns for a description of relevant columns.

To increase the width of the device field in esxtop to show the complete naa id:

  1. Start esxtop by typing esxtop at the command line.
  2. Press u to switch to the disk device display.
  3. Press L to change the name field size.
    Note: Ensure to use uppercase L.
  4. Enter the value 36 to display the complete naa identifier.

To monitor storage performance on a per-virtual machine basis:
  1. Start esxtop by typing esxtop at the command line.
  2. Type v to switch to disk view (virtual machine mode).
  3. Press f to modify the fields that are displayed.
  4. Press b, d, e, h, and j to toggle the fields and press Enter.
  5. Press s, then 2 to alter the update time to every 2 seconds and press Enter.
  6. See Analyzing esxtop columns for a description of relevant columns
Analyzing esxtop columns:

CMDS/s : This is the total amount of commands per second and includes IOPS (Input/Output Operations Per Second) and other SCSI commands such as SCSI reservations, locks, vendor string requests, unit attention commands etc. being sent to or coming from the device or virtual machine being monitored.In most cases CMDS/s = IOPS unless there are a lot of metadata operations (such as SCSI reservations)

DAVG/cmd :This is the average response time in milliseconds per command being sent to the device

KAVG/cmd :This is the amount of time the command spends in the VMkernel

GAVG/cmd :This is the response time as it is perceived by the guest operating system. This number is calculated with the formula: DAVG + KAVG = GAVG

If the response time increases to over 5000 ms (or 5 seconds), VMware ESX will time out the command and abort the operation. These events are logged; abort messages and other SCSI errors can be reviewed in the following logs:

  • ESX 3.5 and 4.x – /var/log/vmkernel
  • ESXi 3.5 and 4.x – /var/log/messages 
  • ESXi 5.x - /var/log/vmkernel.log

Tuesday, June 18, 2013

Hyper-V Event Logs Explained

Hyper-V-Config

This log contains entries that pertain to the configuration files that describe individual virtual machines. These are the XML files whose names are globally unique identifiers. They can be found under C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines or under VM-specific folders on a Cluster Shared Volume. The most common error is 4096, which indicates that Hyper-V is unable to locate an expected configuration file. It isn’t entirely unusual to encounter this error in normal operations, as utilities and operations may move the XML files in a fashion that isn’t entirely in sync with the Hyper-V services. It normally doesn’t require attention unless it is a persistent error.

Hyper-V-High-Availability

This section contains events related to the interaction of Failover Clustering with Hyper-V.  Most of the events here will be informational recording of actions that the Cluster service took on individual VMs. Errors should be very rare and are generally related to the same sort of synchronization issues that cause the Hyper-V-Config 4096 errors.

Hyper-V-Hypervisor

As the name implies, these events are related to the hypervisor itself. Most of the events will be related to the creation and destruction of partitions, which are the temporary container that hold running virtual machines. If there is any sort of problem with Hyper-V itself, especially issues that prevent the service from starting, this is where you’ll find out about it.

Hyper-V-Image-Management-Service

The related service is devoted to the handling of VHD files. If any operation involving a virtual hard drive fails, details are logged here.

Hyper-V-Integration

This log tracks events associated with the Integration Services that are installed into virtual machines. Most of the problems reported here can be corrected by re-installing or upgrading the Integration Services components.

Hyper-V-Network

The virtual switch(es) in your deployment will record events here. The first events will be the creation of the virtual networks themselves, as well as pairing of external networks to physical network cards. When a virtual network adapter is created or destroyed in a virtual machine, a matching virtual port is created on the virtual switch; the creation/destruction of those ports will be registered here.

Hyper-V-SynthNic

The synthetic network cards in virtual machines will log an event when they start (12582). Look here for clues as to why a network card won’t function, such as MAC collisions.

Hyper-V-SynthStor

Virtual storage controller drivers use this log for their events. The most common event is logged by virtual SCSI controllers as they start. The virtual IDE driver is emulated and not synthetic, so it initializes before the VM loads and will not log a matching event. If a drive cannot be attached to the virtual controller port as expected, it will be logged here.

Hyper-V-VMMs

The Virtual Machine Management Service generates these events. Problems with import and export actions will be logged here, as will AVHD merge operations. Host shutdown events will also be tracked in this log. It will also report when it cannot locate the files for a VM. As in other logs, these are likely to be cleaned up once a VM is completely removed.

Hyper-V-Worker

Hyper-V’s worker threads log these events. Normally, this is the busiest of all the logs, but most of them are trivial. If you’re curious how long that last Live Migration took, this is where you’ll find it. Emulated network and storage drivers (as opposed to the synthetic drivers) will create events here.

Friday, June 14, 2013

VMware ESXXi 5.x error while adding Datastore : "HostDatastoreSystem.QueryVmfsDatastoreCreateOptions" for object "ha-datastoresystem" on ESX "xx.xx.xx.xx" failed

You need to run the following command for each disk that you’re having issues with (this overwrites the partition table with a standard msdos one which VMware can work with); NOTE: This will ERASE ALL DATA on the disk in question so be careful to select the right disks.

# partedUtil mklabel /dev/disks/<disk id> msdos

To get a list of your disks;

#ls /dev/disks

Tuesday, June 11, 2013

ESXi requires the Execute Disable/No Execute CPU feature to be enabled

During installation of ESXi 5.1 U 1 on HP DL360 G5, I  received a purple screen with above warning message

Solution: BIOS> Advanced Options > Processor Options > No-Execute Memory Protection>Enabled

Tuesday, April 2, 2013

Creating virtual hard disks takes long time- Hyper V

If you have ever created a fixed-size virtual hard disk that was larger than, oh - 2GB, you probably noticed that it takes quite a while to create.  The reason why this takes so long is that when we create a new fixed-size virtual hard disk we take the time to explicitly zero-out all of the disk space that is being assigned to the new file.

Now - we could do this practically instantaneously by not zeroing out the data - but this has an interesting potential security problem.

Imagine the following situation:

  • You have a virtual machine with a bunch of confidential data running on a central server (e.g. your company payroll).
  • This virtual machine gets moved to a new physical server in response to increased work load.
  • You create a new virtual machine which is given to someone on from the in-house dev team - but the virtual hard disk data was not zeroed out.
  • Developer then runs data recovery tools on his new, blank virtual machine and is able to recover data from the old payroll server (yikes!)

You see - data is never actually deleted from a disk when a file is moved or deleted (it is just dereferenced) so to avoid the above scenario - we must take the time to "do the right thing" and zero out the VHD contents.

Link 1

Link 2

Tuesday, February 5, 2013

vCenter Performance Counters

 

The following table of vCenter (VC) performance counters lists the  counters with a description of their purpose.

CPU Statistics

Level

Counter name in API

Description

Units

1

cpu.ready.summation

Ready time is the time spend waiting for CPU(s) to become available in the past update interval.

millisecond

1

cpu.usagemhz.average

The CPU utilization.  The maximum possible value here is the frequency  of the processors times the number of cores.  As an example, a VM using  4000 MHz  on a system with four 2 GHz processors is using 50% of the CPU  (4000 / (4 * 2000) = 0.5)

megaHertz

1

cpu.usage.average

The CPU utilization.  This value is reported with 100% representing all  processor cores on the system.  As an example, a 2-way VM using 50% of a  four-core system is completely using two cores.

percent

2

cpu.reservedCapacity.average

CPU Reserved Capacity

megaHertz

2

cpu.idle.summation

CPU Idle

millisecond

2

cpu.swapwait.summation

Swap wait time is time that the world spent waiting for memory to be  swapped in.  When the VM is waiting for memory, it is not doing work.

millisecond

3

cpu.system.summation

System time is the time spent in VMkernel during the last update interval.  This does not include guest code execution.

millisecond

3

cpu.wait.summation

Wait time is the time spent waiting for hardware or VMkernel lock thread locks during the last update interval.

millisecond

3

cpu.extra.summation

CPU extra is the time above the statically calculated entitlement.  Entitlement is the share of processing time that a VM should get as a  result of its vCPU count and assigned shares. You should not use or care about this counter in any of your own analysis.

millisecond

3

cpu.used.summation

CPU Used

millisecond

3

cpu.guaranteed.latest

Guaranteed time is reported as the amount of the reservation time that  the VM used in the past update interval.  As an example, if 2000 MHz  have been reserved for the VM on an four-way, 2 GHz host, that's 25% of  the CPU resource.  In a 20s update interval, there are 80,000 ms  available on this four-way system.  That means 20,000 ms of time has  been reserved.  If a VM used only half of its available cycles, the  guaranteed time is 10,000 ms.

millisecond

4

cpu.usage.none

CPU Usage (None)

percent

4

cpu.usage.minimum

CPU Usage (Minimum)

percent

4

cpu.usage.maximum

CPU Usage (Maximum)

percent

4

cpu.usagemhz.none

CPU Usage in MHz (None)

megaHertz

4

cpu.usagemhz.minimum

CPU Usage in MHz (Minimum)

megaHertz

4

cpu.usagemhz.maximum

CPU Usage in MHz (Maximum)

megaHertz

Memory Statistics

Level

Counter name in API

Description

units

1

mem.consumed.average

The amount of machine memory that is in use by the VM. While a VM may
have been configured to use 4 GB of RAM, as an example, it might have
only touched half of that. Of the 2 GB left, half of that might be
saved from memory sharing. That would result in 1 GB of consumed memory.

kiloBytes

1

mem.overhead.average

The memory used by the VMkernel to maintain and execute the VM.

kiloBytes

1

mem.swapinrate.average

The swap in rate reports the rate at which a VM's memory is being swapped in from disk.

kiloBytesPerSecond

1

mem.swapoutrate.average

The swap out rate reports the rate at which a VM's memory is being swapped out to disk.

kiloBytesPerSecond

1

mem.usage.average

The percentage of memory used as a percent of all available machine memory.  Available for host and VM.

percent

1

mem.vmmemctl.average

The amount of memory currently claimed by the balloon driver. This is
not a performance problem, per se, but represents the host starting to
take memory from less needful VMs for those with large amounts of
active memory. But if the host is ballooning, check swap rates (swapin
and swapout) which would be indicative of performance problems.

kiloBytes

2

mem.granted.average

The amount of memory that was granted to the VM by the host.  Memory is  not granted to the host until it is touched one time and granted memory  may be swapped out or ballooned away if the VMkernel needs the memory.

kiloBytes

2

mem.active.average

The amount of memory used by the VM in the past small window of time.   This is the "true" number of how much memory the VM currently has need  of.  Additional, unused memory may be swapped out or ballooned with no  impact to the guest's performance.

kiloBytes

2

mem.shared.average

The average amount of shared memory.  Shared memory represents the  entire pool of memory from which sharing savings are possible.  The  amount of memory that this has been condensed to is reported in shared  common memory.  So, total saving due to memory sharing equals shared  memory minus shared common memory.

kiloBytes

2

mem.zero.average

The amount of zero pages in the guest.  Zero pages are not represented  in machine memory so this results in 100% savings when mapping from the  guest to the machine memory.

kiloBytes

2

mem.unreserved.average

Memory Unreserved (Average)

kiloBytes

2

mem.swapused.average

The amount of swap memory currently in use.  A large amount of swap  memory is not a performance problem.  This could be memory that the  guest doesn't need.  Check the swap rates (swapin, swapout) to see if  the guest is actively in need of more memory than is available.

kiloBytes

2

mem.swapunreserved.average

Memory Swap Unreserved (Average)

kiloBytes

2

mem.sharedcommon.average

The average amount of shared common memory.  Shared memory represents  the entire pool of memory from which sharing savings are possible.  The  amount of memory that this has been condensed to is reported in shared  common memory.  So, total saving due to memory sharing equals shared  memory minus shared common memory.

kiloBytes

2

mem.heap.average

Memory Heap (Average)

kiloBytes

2

mem.heapfree.average

Memory Heap Free (Average)

kiloBytes

2

mem.state.latest

Memory State

number

2

mem.swapped.average

Memory Swapped (Average)

kiloBytes

2

mem.swaptarget.average

Memory Swap Target (Average)

kiloBytes

2

mem.swapin.average

The rate at which memory is being swapped in from disk.  A large number  here represents a problem with lack of memory and a clear indication  that performance is suffering as a result.

kiloBytes

2

mem.swapout.average

The rate at which memory is being swapped out to disk.  A large number  here represents a problem with lack of memory and a clear indication  that performance is suffering as a result.

kiloBytes

2

mem.vmmemctltarget.average

Memory Balloon Target (Average)

kiloBytes

2

mem.sysUsage.average

Memory Used by vmkernel

kiloBytes

2

mem.reservedCapacity.average

Memory Reserved Capacity

megaBytes

4

mem.usage.none

Memory Usage (None)

percent

4

mem.usage.minimum

Memory Usage (Minimum)

percent

4

mem.usage.maximum

Memory Usage (Maximum)

percent

4

mem.granted.none

Memory Granted (None)

kiloBytes

4

mem.granted.minimum

Memory Granted (Minimum)

kiloBytes

4

mem.granted.maximum

Memory Granted (Maximum)

kiloBytes

4

mem.active.none

Memory Active (None)

kiloBytes

4

mem.active.minimum

Memory Active (Minimum)

kiloBytes

4

mem.active.maximum

Memory Active (Maximum)

kiloBytes

4

mem.shared.none

Memory Shared (None)

kiloBytes

4

mem.shared.minimum

Memory Shared (Minimum)

kiloBytes

4

mem.shared.maximum

Memory Shared (Maximum)

kiloBytes

4

mem.zero.none

Memory Zero (None)

kiloBytes

4

mem.zero.minimum

Memory Zero (Minimum)

kiloBytes

4

mem.zero.maximum

Memory Zero (Maximum)

kiloBytes

4

mem.unreserved.none

Memory Unreserved (None)

kiloBytes

4

mem.unreserved.minimum

Memory Unreserved (Minimum)

kiloBytes

4

mem.unreserved.maximum

Memory Unreserved (Maximum)

kiloBytes

4

mem.swapused.none

Memory Swap Used (None)

kiloBytes

4

mem.swapused.minimum

Memory Swap Used (Minimum)

kiloBytes

4

mem.swapused.maximum

Memory Swap Used (Maximum)

kiloBytes

4

mem.swapunreserved.none

Memory Swap Unreserved (None)

kiloBytes

4

mem.swapunreserved.minimum

Memory Swap Unreserved (Minimum)

kiloBytes

4

mem.swapunreserved.maximum

Memory Swap Unreserved (Maximum)

kiloBytes

4

mem.sharedcommon.none

Memory Shared Common (None)

kiloBytes

4

mem.sharedcommon.minimum

Memory Shared Common (Minimum)

kiloBytes

4

mem.sharedcommon.maximum

Memory Shared Common (Maximum)

kiloBytes

4

mem.heap.none

Memory Heap (None)

kiloBytes

4

mem.heap.minimum

Memory Heap (Minimum)

kiloBytes

4

mem.heap.maximum

Memory Heap (Maximum)

kiloBytes

4

mem.heapfree.none

Memory Heap Free (None)

kiloBytes

4

mem.heapfree.minimum

Memory Heap Free (Minimum)

kiloBytes

4

mem.heapfree.maximum

Memory Heap Free (Maximum)

kiloBytes

4

mem.swapped.none

Memory Swapped (None)

kiloBytes

4

mem.swapped.minimum

Memory Swapped (Minimum)

kiloBytes

4

mem.swapped.maximum

Memory Swapped (Maximum)

kiloBytes

4

mem.swaptarget.none

Memory Swap Target (None)

kiloBytes

4

mem.swaptarget.minimum

Memory Swap Target (Minimum)

kiloBytes

4

mem.swaptarget.maximum

Memory Swap Target (Maximum)

kiloBytes

4

mem.swapin.none

Memory Swap In (None)

kiloBytes

4

mem.swapin.minimum

Memory Swap In (Minimum)

kiloBytes

4

mem.swapin.maximum

Memory Swap In (Maximum)

kiloBytes

4

mem.swapout.none

Memory Swap Out (None)

kiloBytes

4

mem.swapout.minimum

Memory Swap Out (Minimum)

kiloBytes

4

mem.swapout.maximum

Memory Swap Out (Maximum)

kiloBytes

4

mem.vmmemctl.none

Memory Balloon (None)

kiloBytes

4

mem.vmmemctl.minimum

Memory Balloon (Minimum)

kiloBytes

4

mem.vmmemctl.maximum

Memory Balloon (Maximum)

kiloBytes

4

mem.vmmemctltarget.none

Memory Balloon Target (None)

kiloBytes

4

mem.vmmemctltarget.minimum

Memory Balloon Target (Minimum)

kiloBytes

4

mem.vmmemctltarget.maximum

Memory Balloon Target (Maximum)

kiloBytes

4

mem.overhead.none

Memory Overhead (None)

kiloBytes

4

mem.overhead.minimum

Memory Overhead (Minimum)

kiloBytes

4

mem.overhead.maximum

Memory Overhead (Maximum)

kiloBytes

4

mem.consumed.none

Memory Consumed (None)

kiloBytes

4

mem.consumed.maximum

Memory Consumed (Maximum)

kiloBytes

4

mem.consumed.minimum

Memory Consumed (Minimum)

kiloBytes

4

mem.sysUsage.none

Memory Used by vmkernel

kiloBytes

4

mem.sysUsage.maximum

Memory Used by vmkernel

kiloBytes

4

mem.sysUsage.minimum

Memory Used by vmkernel

kiloBytes

Disk Statistics

Level

Counter name in API

Description

units

1

disk.maxTotalLatency

The highest reported total latency (device and kernel times) in the sample window.

milliseconds

1

disk.usage.average

Average disk throughput over the sample period.

kiloBytesPerSecond

2

disk.read.average

Average disk throughput due to read operaitons over the sample period.

kiloBytesPerSecond

2

disk.write.average

Average disk throughput due to write operations over the sample period.

kiloBytesPerSecond

2

disk.commands.summation

Disk Commands Issued

number

2

disk.commandsAborted.summation

The number of aborts that have occurred in the last window of time.  Abort commands are issued by the guest when the storage system has not  responded within an acceptable amount of time (as defined by the guest  OS or application.)

number

2

disk.busResets.summation

Disk Bus Resets

number

2

disk.deviceReadLatency.average

Device read latency.  This is the time the physical device from the HBA to the platter takes to service an IO request.

millisecond

2

disk.kernelReadLatency.average

Kernel read latency.  This is the time the VMkernel takes to service an  IO.  This is the time between the guest OS and the device.

millisecond

2

disk.totalReadLatency.average

Total read latency.  The sum of the device and kernel read latencies.

millisecond

2

disk.queueReadLatency.average

Queue Read Latency

millisecond

2

disk.deviceWriteLatency.average

Device write latency. This is the time the physical device from the HBA to the platter takes to service an IO request.

millisecond

2

disk.kernelWriteLatency.average

Kernel write latency.  This is the time the VMkernel takes to service an  IO.  This is the time between the guest OS and the device.

millisecond

2

disk.totalWriteLatency.average

Total write latency.  The sum of the device and kernel write latencies.

millisecond

2

disk.queueWriteLatency.average

Queue Write Latency

millisecond

2

disk.deviceLatency.average

Physical Device Command Latency

millisecond

2

disk.kernelLatency.average

Kernel Disk Command Latency

millisecond

2

disk.queueLatency.average

Queue Command Latency

millisecond

3

disk.numberRead.summation

The number of IO read operations in the previous sample period.  Note that these operations may be variable sized up to 64 KB.

number

3

disk.numberWrite.summation

The number of IO write operations in the previous sample period.  Note that these operations may be variable sized up to 64 KB.

number

3

disk.totalLatency.average

This is the average total latency over the sample window.  Total latency  is the sum of kernel and device latency for both read and write  commands.

millisecond

3

disk.write.average

Disk Write Rate

kiloBytesPerSecond

4

disk.usage.none

Disk Usage (None)

kiloBytesPerSecond

4

disk.usage.minimum

Disk Usage (Minimum)

kiloBytesPerSecond

4

disk.usage.maximum

Disk Usage (Maximum)

kiloBytesPerSecond

Network Statistics

Level

Counter name in API

Description

units

1

net.usage.average

Network Usage (Average)

kiloBytesPerSecond

2

net.droppedRx.summation

The number of received packets that were dropped over the sample period.

number

2

net.droppedTx.summation

The number of transmitted packets that were dropped over the sample period.

number

2

net.received.average

Average network throughput for received traffic.

kiloBytesPerSecond

2

net.transmitted.average

Average network throughput for transmitted traffic.

kiloBytesPerSecond

3

net.packetsRx.summation

Network Packets Received

number

3

net.packetsTx.summation

Network Packets Transmitted

number

4

net.usage.none

Network Usage (None)

kiloBytesPerSecond

4

net.usage.minimum

Network Usage (Minimum)

kiloBytesPerSecond

4

net.usage.maximum

Network Usage (Maximum)

kiloBytesPerSecond

Other Statistics

Level

Counter name in API

Description

units

1

sys.uptime.latest

Uptime

second

1

sys.heartbeat.summation

Heartbeat

number

1

clusterServices.cpufairness.latest

CPU Fairness

number

1

clusterServices.memfairness.latest

Memory Fairness

number

1

clusterServices.effectivecpu.average

Effective CPU Resources

megaHertz

1

clusterServices.effectivemem.average

Effective Memory Resources

megaBytes

1

clusterServices.failover.latest

Current failover level

number

3

sys.resourceCpuUsage.average

Resource CPU Usage (Average)

megaHertz

3

managementAgent.memUsed.average

Memory Used (Average)

kiloBytes

3

managementAgent.swapUsed.average

Memory Swap Used (Average)

kiloBytes

3

managementAgent.swapIn.average

Memory Swap In (Average)

kiloBytesPerSecond

3

managementAgent.swapOut.average

Memory Swap Out (Average)

kiloBytesPerSecond

3

rescpu.actav1.latest

CPU Active (1 min. average)

percent

3

rescpu.actpk1.latest

CPU Active (1 min. peak)

percent

3

rescpu.runav1.latest

CPU Running (1 min. average)

percent

3

rescpu.actav5.latest

CPU Active (5 min. average)

percent

3

rescpu.actpk5.latest

CPU Active (5 min. peak)

percent

3

rescpu.runav5.latest

CPU Running (5 min. average)

percent

3

rescpu.actav15.latest

CPU Active (15 min. average)

percent

3

rescpu.actpk15.latest

CPU Active (15 min. peak)

percent

3

rescpu.runav15.latest

CPU Running (15 min. average)

percent

3

rescpu.runpk1.latest

CPU Running (1 min. peak)

percent

3

rescpu.maxLimited1.latest

CPU Throttled (1 min. average)

percent

3

rescpu.runpk5.latest

CPU Running (5 min. peak)

percent

3

rescpu.maxLimited5.latest

CPU Throttled (5 min. average)

percent

3

rescpu.runpk15.latest

CPU Running (15 min. peak)

percent

3

rescpu.maxLimited15.latest

CPU Throttled (15 min. average)

percent

3

rescpu.sampleCount.latest

Group CPU Sample Count

number

3

rescpu.samplePeriod.latest

Group CPU Sample Period

millisecond

4

sys.resourceCpuUsage.none

Resource CPU Usage (None)

megaHertz

4

sys.resourceCpuUsage.maximum

Resource CPU Usage (Maximum)

megaHertz

4

sys.resourceCpuUsage.minimum

Resource CPU Usage (Minimum)

megaHertz

Reference: http://communities.vmware.com/docs/DOC-5600

Monday, October 8, 2012

Hyper-V cluster error: Cluster network name resource 'Cluster Name' failed to update the DNS record for name

Source:FailoverClustering
EventID: 1579
Task Category: Network Name Resource

Cluster network name resource 'Cluster Name' failed to update the DNS record for name ‘xxxxxxxxx' over adapter 'Local Area Connection'. The error code was 'DNS operation refused. (9005)'. Ensure that a DNS server is accessible from this cluster node and contact your DNS server administrator to verify the cluster identity can update the DNS record “xxxxxxxxxxx’

Solution:

Cluster  DNS A record was manually created before configuring cluster and cluster computer account was not having write access to its A record. Go to DNS A record properties > Security Tab\, add Cluster Computer Account and give full rights.

Sunday, September 30, 2012

HYPERVISOR COMPARISON 2012

A feature comparison of the three main competitors in the hypervisor space, Citrix, Microsoft and VMware.
Updated to the latest two versions, Citrix XenServer 5.6 & 6.0, Microsoft Hyper-V 2008 R2 SP1 & 2012 and
VMware vSphere 5.0 & 5.1.  Read more

Wednesday, August 15, 2012

Export VM details to CSV in SCVMM using PowerShell

PS C:\Users\admin> GET-VM -VMMServer XXXXXX | Select Name, Owner, Description, OperatingSystem, CPU Count, Memory, VirtualHardDisks, Location, VirtualizationPlatform, HostName, Status | Export-Csv C:\Users\admin\vms.csv

Tuesday, July 31, 2012

Use CSVDE to export user accounts from Active Directory

Export all user accounts in the domain

csvde -f c:\allusers.csv -r "(objectclass=person)"

Export only from on OU

csvde -f c:\allusers.csv -r "(objectclass=person)" –d “OU DN”

Monday, July 16, 2012

VMware Tools Installation on Oracle Linux Fails

VMware Tools installation on Oracle Linux fails. The vmware-install.pl installation script causes errors like below.

Searching for GCC...
The path "" is not valid path to the gcc binary.

Searching for a valid kernel header path...
The path "" is not a valid path to the 2.6.32-200.13.1.el5uek kernel headers.

Solution:

Update Linux as below:

yum -y install gcc
yum -y install kernel-uek-devel-`uname -r`
yum -y install kernel-uek-headers-`uname -r`
And then repeat installation. 

After completing installation, verify the version of VMware tools installed as below.


vmware-toolbox


Restart VMware tools if required.


/etc/init.d/vmware-tools restart.