Sunday, September 30, 2012

Basic Steps to learn Vmware ESXI Trouble shooting


When ever an issue arises on an ESX host people often rush to the Service Console and start typing various commands to figure out what is wrong. Of course some of the commands are not available with ESXi and you might not even have access to the ESXi console. Many will resort to the vCLI/vMA or even PowerCLI and that works perfectly fine. Especially the vCLI/vMA is geared towards those who have experience with ESX command-line troubleshooting. You will have all "esxcfg-*" commands to your disposal and of course resxtop; which will cover 95% of those cases where commandline details are required.
I want to stress that ESXi was not built for console access, although we do provide access to the console and it works fine. The idea around ESXi is to have a lean hypervisor which is managed from the outside versus the inside and VMware has provided multiple tools to do so. The first and foremost being of course vCenter Server or the vSphere Client. Many problems can be solved simply by using the vSphere Client connected to a host directly or through vCenter Server itself. The first KB article in the list below is a good example of how vCenter can be used to troubleshoot an inaccessible virtual machine. Something that people tend to forget is that the vSphere Client can also be used to read log files, there is no need to open up a console session for that shown below and explained in the second article in the list:
    1. Open a browser and enter the URL http://, where is the IP or fully qualified domain name for the vCenter Server.
    2. Provide administrative credentials when prompted.
    3. Click the Browse datastores in the vCenter inventory link.
    4. Navigate the webpages until you reach the appropriate datacenter, datastore, and folder as noted in step 1.
    5. Click the link to the appropriate log file, and open it with your preferred editor.
    On the topic of log files, for those who never worked with ESXi the location is slightly different than you are used to:
    • The VMkernel, vmkwarning, and hostd logs are located at /var/log/messages
    • The Host Management service (hostd = Host daemon) log is located at /var/log/vmware/hostd.log\
    • The vCenter Agent log is located at /var/log/vmware/vpx/vpxa.log
    • The System boot log is located at /var/log/sysboot.log
    • The Automatic Availability Manager (AAM) logs are located at /var/log/vmware/aam/vmware_-xxx.log
    Note that the /var/log/messages is a combination of all logs out there except for the HA log. You will need to monitor open that up seperately when troubleshooting HA related issues. Also be noted that the HA logfiles aren't part of the Syslog mechanism either unfortunately. Knowing the logfiles and the type of info you can get from it is key when troubleshooting. I encourage everyone to get familiar with it when you have the time to do so, as under pressure you don't want to find yourself fiddling around in the wrong location or logfile when you have 4 managers and your director watching over your shoulder if you have fixed it already or not.
    After you have dived into the log files make sure you check the Knowledge Base. Our Knowledge Base has an excellent set of articles which can be used to troubleshoot very specific issues or at least lead you into the right direction. I have listed some of the most common issues and used KB's including a link to the article below for your convenience:
      1. Restart the management agents on an ESXi host (1003490)
      2. Determining why a single virtual machine is inaccessible (1018834).
      3. Determining why a virtual machine was powered off or restarted (1019064).
      4. Determining why multiple virtual machines are inaccessible (1019000).
      5. Troubleshooting virtual machine network connection issues (1003893).
      6. Interpreting virtual machine monitor and executable failures (1019471).
      7. Determining why a virtual machine does not respond to user interaction at the console (1017926).
      8. Using Tech Support Mode in ESXi 4.1 (1017910)
      9. Determining why a VMware ESXi host is inaccessible (1019082)
      10. Determining why a VMware ESXi host was powered off or restarted (1019238).
      11. Determining why a VMware ESXi host does not respond to user interaction (1017135).
      12. Enabling serial-line logging for an ESXi host (1003900).
      13. Using performance collection tools to gather data for fault analysis (1006797).
      14. Using hardware NMI facilities to troubleshoot unresponsive hosts (1014767)
      15. Interpreting a VMware ESX host purple diagnostic screen (1004250).
      16. Troubleshooting VMware High Availability (HA) (1001596).
        In some cases however it might be required or desirable to log in to Technical Support Mode (yes this is fully supported) and work directly from the ESXi shell. The ESXi shell as many of you know also contains all esxcfg-* commands, the invaluable esxcli command and of course some shell commands that are required for troubleshooting. Some  of those commands are obvious, others are less obvious. I have listed several below to make things easier.
        The one many complained about in the past but actually is available is vmkping. Vmkping can be used to do basic network troubleshooting, but also for instance to validate if jumbo frames can be used by simply adding the size of the packet:
        vmkping -s 9000
        One that many bumped into in the ESXi 4.0 time frame was the lack of a mount command. This mount command was actually available, but as part of busybox:
        /usr/bin/busybox mount
        In 4.1 though the "mount" command has been linked to busybox itself enabling you to just use "mount. The same applies to for instance fdisk. Fdisk will enable you to validate the partition setup. It has helped me many times in the past to validate that partitions were still marked as "VMFS" when someone accidentally presented VMFS volumes to Windows machines which immediately resignatured the disks. Again under 4.0 fdisk is not available as a binary but is available through "busybox", and in 4.1 is available as a link. (Most of these links are located in /usr/sbin)
        /usr/bin/busybox fdisk -l
        Another thing that I have done in the past regularly when I needed to evacuate a host is place the host in maintenance mode. With ESXi you can do this as follows:
        vim-cmd hostsvc/maintenance_mode_enter
        And of course you can also exit maintenance mode:
        vim-cmd hostsvc/maintenance_mode_exit
        What about listing all VMs and stopping a specific one?
        vim-cmd vmsvc/getallvms
        vim-cmd vmsvc/poweroff
        These are just examples to show the power of vim-cmd. Many try to avoid using it, but really it is not overly complex and it gets the job done fairly simple. It can be difficult sometimes to figure out the syntax but than again if you can't find figure it someone else probably has, google it.
        Something that I was asked about this week which can also come in handy when troubleshooting memory issues is the following command which will give you the memory utilization of the hypervisor components:
        vdf -ph
        These commands are just a couple of examples of what is possible within the ESXi shell, although we do generally recommend to avoid logging in to the ESXi shell (via remote or local tech support mode) and prefer to use the alternatives we offer it will work fine. In general troubleshooting hasn't changed much due to the full support of the "Technical Support Mode" feature, the remote command line utilities (vCLI or the vMA) and of course vCenter or the vSphere Client.

        Monday, September 24, 2012


        VCP5 - Upgrade a vNetwork Distributed Switch

        There are 3 versions of vNetwork Distribute Switches available: 4.0, 4.1, and 5.0. Each version provides new functionality, but also limits the interop with older versions

        Upgrade Distributed Switch

        1. In vSphere, browse to Networking
        2. Select the switch and on the Summary tab, click Upgrade
        3. Select the upgrade version and click Next
        4. Confirm no hosts report as incompatible, click Next
        5. Click Finish
        Version Compatibility / Features
        VersionFeaturesCompatibility
        4.0N/AESX 4.0 and later
        4.1Load-Based Teaming
        Network I/O Control
        ESX 4.1 and later
        5.0User-defined network resource pools
        NetFlow
        Port Mirroring
        ESX 5.0 and later
        Step-1
        1) How to add the ESX host to distributed switch with out downtime.
        2) while upgrading the distributed switch , is there any impact on ESX hosts.

        What is Fibre Channel over IP (FCIP or FC/IP)


        Fibre Channel over IP (FCIP or FC/IP, also known as Fibre Channel tunneling or storage tunneling) is an Internet Protocol (IP)-based storage networking technology developed by the Internet Engineering Task Force (IETF). FCIP mechanisms enable the transmission of Fibre Channel (FC) information by tunneling data between storage area network (SAN) facilities over IP networks; this capacity facilitates data sharing over a geographically distributed enterprise. One of two main approaches to storage data transmission over IP networks, FCIP is among the key technologies expected to help bring about rapid development of the storage area network market by increasing the capabilities and performance of storage data transmission.

        FCIP Versus iSCSI

        The other method, iSCSI, generates SCSI codes from user requests and encapsulates the data into IP packets for transmission over an Ethernet connection. Intended to link geographically distributed SANs, FCIP can only be used in conjunction with Fibre Channel technology; in comparison, iSCSI can run over existing Ethernet networks. SAN connectivity, through methods such as FCIP and iSCSI, offers benefits over the traditional point-to-point connections of earlier data storage systems, such as higher performance, availability, and fault-tolerance. A number of vendors, including Cisco, Nortel, and Lucent have introduced FCIP-based products (such as switches and routers). A hybrid technology called Internet Fibre Channel Protocol (iFCP) is an adaptation of FCIP that is used to move Fibre Channel data over IP networks using the iSCSI protocols.

        Thursday, June 21, 2012

        Vsphere 5 New Features

        1. Storage DRS


        2. Storage I/O Control for NFS

        3. VMFS-5

        4. ESXi Firewall

        5. VMFS Scalability and Performance enhancements

        6. 2TB+ pass-through RDM support

        7. vCenter inventory extensibility

        8. Storage APIs -- VAAI T10 Compliancy

        9. Storage APIs -- VAAI Offloads for NAS

        10. Storage APIs -- VAAI Thin Provisioning

        11. Storage APIs -- Storage Awareness/Discovery

        12. Storage APIs -- Data Protection compatible with MN

        13. APD, Permanent APD Survivability Enablement

        14. Snapshot enhancements

        15. Storage vMotion scalability improvements

        16. iSCSI Enablement: iSCSI UI Support

        17. iSCSI Enablement: Stateless Support

        18. Multi-queue Storage IO adapters

        19. Increase NFSv3 Max Share Count to 256

        20. SATA 3.0

        21. Software FCoE initiator support

        22. Enhanced logging support

        23. Enhanced Storage metrics

        24. Profile-Driven Storage

        25. Storage vMotion support for snapshots

        26. vSphere Storage Appliance (VSA)

        27. SSD Detection and Enablement

        28. vSphere Replication

        29. vSphere Data Recovery 2.0

        30. VADP enhancements

        31. vCenter Orchestrator (vCO) Enhancements

        32. vCO -- Library extension and consolidation

        33. vCO -- Scalability

        34. Network I/O Control (NIOC) Phase 2

        35. NIOC -- User Defined Resource Pools

        36. NIOC -- HBR traffic type

        37. NIOC -- 802.1p tagging

        38. Network Traffic Stats for iOPS

        39. Improvement to UDP and Multicast traffic types

        40. New networking drivers for server enablement

        41. vDS support for Port mirror, LLDP and NetFlow V5

        42. vDS Manage Port Group UI enhancement

        43. Hot-Insert/Remove of Filters

        44. Enhanced vMotion Compatibility

        45. Storage vMotion support for Linked Clones

        46. vMotion scalability (dual-NIC & longer latency support)

        47. vNetwork API enhancements

        48. vNetwork Opaque Channel

        49. Support for 8 10GbE Physical NIC ports per host

        50. Add Host Resources MIB to SNMP offering

        51. Metro vMotion

        52. Host Profile for DRS to support Stateless ESX

        53. HA interop with agent VMs

        54. DRS/DPM interop with agent VMs

        55. DRS enhancements for Maintenance Mode

        56. Enhanced processor support for FT

        57. vSphere 5.0 HA aka "FDM / Fault Domain Manager"

        58. vSphere HA - Heartbeat Datastores

        59. vSphere HA - Support for partitions of management network

        60. vSphere HA - Default isolation response changed

        61. vSphere HA - New Status information in UI

        62. vSphere HA - IPv6 support

        63. vSphere HA - Application Awareness API publicly available

        64. Extensions to create special icons for VMs

        65. ESX Agent Management

        66. Solution Management Plugin

        67. Next-Gen vSphere Client

        68. Host Profiles Enhancements

        69. vCenter enhancements for stateless ESXi

        70. vCenter Server Appliance

        71. vCenter: Support for FileManager and VirtualDiskManager APIs

        72. Virtual Hardware - Smartcard support for vSphere

        73. Virtual Hardware Version 8

        74. Virtual HW v8 -- 1TB VM RAM

        75. Virtual HW v8 -- 32-way Virtual SMP

        76. Virtual Hw v8 -- Client-Connected USB Devices

        77. Virtual HW v8 -- EFI Virtual BIOS

        78. Virtual HW v8 -- HD Audio

        79. Virtual Hw v8 -- Multi-core Virtual CPU Support UI

        80. Virtual HW v8 -- New virtual E1000 NIC

        81. Virtual HW v8 -- UI and other support

        82. Virtual HW v8 -- USB 3.0 device support

        83. Virtual HW v8 -- VMCI device enhancements

        84. Virtual HW v8 -- xHCI

        85. Support SMP for Mac OS X guest OS

        86. Universal Passthrough (VMdirect path with vMotion support)

        87. Guest Management Operations (VIX API)

        88. Guest OS Support -- Mac OS X Server

        89. VM Serial Port to Host Serial Port Redirection (Serial Port Pass-Through)

        90. Passthrough/SR-IOV

        91. VMware Tools Portability

        92. VMRC Concurrent Connections enhancements

        93. Scalability: 512 VMs per host

        94. ESXCLI enhancements

        95. Support SAN and hw-iSCSI boot

        96. Hardware -- Interlagos Processor Enablement

        97. Hardware -- SandyBridge-DT Processor Enablement

        98. Hardware -- SandyBridge-EN Processor Enablement

        99. Hardware -- SandyBridge-EP Processor Enablement

        100. Hardware -- Valencia Processor Enablement

        101. Hardware -- Westmere-EX Processor Enablement

        102. Platform -- CIM Enhancements

        103. Platform -- ESX i18n support

        104. Host Power Management Enhancements

        105. Improved CPU scheduler

        106. Improved scalability of CPU (NUMA) scheduler

        107. Memory scheduler improvements to support 32-way VCPU's

        108. Swap to host cache

        109. API enhancements to configure VM boot order

        110. VMX swap

        111. Support for ESXi On Apple XServe

        112. Redirect DCUI to host serial port for remote monitoring and management

        113. UEFI BIOS Boot for ESXi hosts

        114. Scalability -- 160 CPU Threads (logical PCPUs) per host

        115. Scalability -- 2 TB RAM per host

        116. Scalability -- 2048 VCPUs per host

        117. Scalability -- 2048 virtual disks per host

        118. Scalability -- 2048 VMs per VMFS volume

        119. Scalability -- 512 VMs per host

        120. Stateless -- Host Profile Engine and Host Profile Completeness

        121. Stateless -- Image Builder

        122. Stateless -- Auto Deploy

        123. Stateless -- Networking Host Profile Plugin

        124. Stateless -- VIB Packaging Enhancement

        125. Stateless -- VMkernel network core dump

        126. Host profiles enhancements for storage configuration

        127. Enhanced driver support for ESXi

        128. Intel TXT Support

        129. Memsched policy enhancements w.r.t. Java balloon

        130. Native Driver Autoload support

        131. Root password entry screen in interactive installer

        132. vCenter Dump Collector

        133. vCenter Syslog Collector

        134. VMware Update Manager (VUM) enhancements

        135. VUM -- Virtual Appliance enhancements

        136. VUM -- vApp Support

        137. VUM -- Depot management enhancements

        138. vCLI enhancements

        139. PowerCLI enhancements

        140. VProbes -- ESX Platform Observability

        Tuesday, April 10, 2012

        would like to add more swap space to my Linux system. Can you explain with clear examples on how to increase the swap space?

        You can either use a dedicated hard drive partition to add new swap space, or create a swap file on an existing filesystem and use it as swap space.

        How much swap space is currently used by the system?

        Free command displays the swap space. free -k shows the output in KB.
        # free -k
                     total       used       free     shared    buffers     cached
        Mem:       3082356    2043700    1038656          0      50976    1646268
        -/+ buffers/cache:     346456    2735900
        Swap:      4192956          0    4192956
        
        Swapon command with option -s, displays the current swap space in KB.
        # swapon -s
        Filename                        Type            Size    Used    Priority
        /dev/sda2                       partition       4192956 0       -1
        
        Swapon -s, is same as the following.
        # cat /proc/swaps
        Filename                        Type            Size    Used    Priority
        /dev/sda2                       partition       4192956 0       -1
        

        Method 1: Use a Hard Drive Partition for Additional Swap Space

        If you have an additional hard disk, (or space available in an existing disk), create a partition using fdisk command. Let us assume that this partition is called /dev/sdc1
        Now setup this newly created partition as swap area using the mkswap command as shown below.
        # mkswap /dev/sdc1
        
        Enable the swap partition for usage using swapon command as shown below.
        # swapon /dev/sdc1
        
        To make this swap space partition available even after the reboot, add the following line to the /etc/fstab file.
        # cat /etc/fstab
        /dev/sdc1               swap                    swap    defaults        0 0
        
        Verify whether the newly created swap area is available for your use.
        # swapon -s
        Filename                        Type            Size    Used    Priority
        /dev/sda2                       partition       4192956 0       -1
        /dev/sdc1                       partition       1048568 0       -2
        
        # free -k
                     total       used       free     shared    buffers     cached
        Mem:       3082356    3022364      59992          0      52056    2646472
        -/+ buffers/cache:     323836    2758520
        Swap:      5241524          0    5241524
        
        Note: In the output of swapon -s command, the Type column will say “partition” if the swap space is created from a disk partition.

        Method 2: Use a File for Additional Swap Space

        If you don’t have any additional disks, you can create a file somewhere on your filesystem, and use that file for swap space.
        The following dd command example creates a swap file with the name “myswapfile” under /root directory with a size of 1024MB (1GB).
        # dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
        1024+0 records in
        1024+0 records out
        
        # ls -l /root/myswapfile
        -rw-r--r--    1 root     root     1073741824 Aug 14 23:47 /root/myswapfile
        
        Change the permission of the swap file so that only root can access it.
        # chmod 600 /root/myswapfile
        
        Make this file as a swap file using mkswap command.
        # mkswap /root/myswapfile
        Setting up swapspace version 1, size = 1073737 kB
        
        Enable the newly created swapfile.
        # swapon /root/myswapfile
        
        To make this swap file available as a swap area even after the reboot, add the following line to the /etc/fstab file.
        # cat /etc/fstab
        /root/myswapfile               swap                    swap    defaults        0 0
        
        Verify whether the newly created swap area is available for your use.
        # swapon -s
        Filename                        Type            Size    Used    Priority
        /dev/sda2                       partition       4192956 0       -1
        /root/myswapfile                file            1048568 0       -2
        
        # free -k
                     total       used       free     shared    buffers     cached
        Mem:       3082356    3022364      59992          0      52056    2646472
        -/+ buffers/cache:     323836    2758520
        Swap:      5241524          0    5241524
        
        Note: In the output of swapon -s command, the Type column will say “file” if the swap space is created from a swap file.
        If you don’t want to reboot to verify whether the system takes all the swap space mentioned in the /etc/fstab, you can do the following, which will disable and enable all the swap partition mentioned in the /etc/fstab
        # swapoff -a
        
        # swapon -a
        

        How to Mount a Data store in ESX Server ?


        You need to use the esxcfg-volume command. It can be used in this way:
        • Execute this command to list the volumes that are detected as snapshots/replicas:

          # esxcfg-volume -l

          The output appears similar to:

          VMFS3 UUID/label: 49d22e2e-996a0dea-b555-001f2960aed8/VMFS_1
          Can mount: Yes
          Can resignature: Yes
          Extent name: naa.60a98000503349394f3450667a744245:1 range: 0 - 97023 (MB)


          Here the Datastore UUID is 49d22e2e-996a0dea-b555-001f2960aed8 and its last label is VMFS_1.

        • To mount the volume without performing a resignaturing of that volume (this volume is unmounted when the ESX host is rebooted), run this command:

          # esxcfg-volume -m

          For example:

          # esxcfg-volume -m "VMFS_1"
          # esxcfg-volume -m "49d22e2e-996a0dea-b555-001f2960aed8"


        • To mount the volume without performing a resignaturing of that volume (this volume is mounted when the ESX host is rebooted), run this command:

          # esxcfg-volume -M


          For example:

          # esxcfg-volume -M "VMFS_1"
          # esxcfg-volume -M "49d22e2e-996a0dea-b555-001f2960aed8"


        • Run this command to resignature the volume (the volume is mounted immediately after the resignature):

          # esxcfg-volume -r

          For example:

          # esxcfg-volume -r "VMFS_1"
          # esxcfg-volume -r "49d22e2e-996a0dea-b555-001f2960aed8"

        Thursday, February 02, 2012

        VMWARE ESXi 5.0

        Creation of New -VM Files in ESX i 5.0
        Files:
        .hlog                           vMotion log file
        .lck-XXX                    Locking file on NFS datastore
        file.log                        VM activity log
        file-#.log                     Old VM log
        .nvram                        BIOS or EFI settings
        file.rdm                       RDM in Virtual Compatibility mode
        team.rdmp                 RDM in Physical Compatibility mode
        memory.vmdk           Disk descriptor (also raw virtual disk for hosted products

        -flat.vmdk                   Raw pre-allocated virtual disk
         -00000#.vmdk-         Snapshot child disk
         -ctk.vmdk                  Changed Block Tracking file 
        -00000#-delta.vmdk Snapshot differential file
        file.vmsd                    Snapshot metadata
        vmsn                          Snapshot state file
        .vmss                         Suspended state file
        log.vmss                   Suspended state file
        .vmtx                          Template header
        .vmx                           Primary configuration file
        .vmxf                          Extra configuration file for VMs in a team
        .vswp                         Swap file for over committed memory



        Friday, January 27, 2012

        As simple questions for Vmware administrator?

        1) How to find the log of ESX Server when Esx server is down?

        2) How to get the  log information of HBA ?

        3) I had upgraded the bios version  after that esx server is not running , how to find the log?

        4)what is vilogger?

        5) How to check the network information of esx server from a centralized place?


        Use VMA server for all this solutions 

        Monday, November 07, 2011

        Create a snapshot but do not have enough space on the VMFS volume

        Power on a virtual machine but there is not enough space to create a swap file on the VMFS volume

        To change the default location:

        Power off the virtual machine.

        Add the following line to the VMX configuration file for the virtual machine:

        workingDir=""

        For example:

        workingDir="/vmfs/volumes/46f1225f-552b0069-e03b-00145e808070/vm-snapshots"

        To reload virtual machine configuration, run the command:

        # vimsh -ne "vmsvc/reload "

        When you power on the virtual machine, snapshot files and VSWP files are created in the new location.

        Note: If you do not want to redirect the virtual machine’s swap file, add the following line to the VMX configuration file, then reload the configuration:

        sched.swap.dir=""



        When you power on the virtual machine, the swap file is created in the same directory as virtual machine.

        Friday, August 26, 2011

        Choosing a block size when creating VMFS datastores

        When you create a VMFS datastore on your VMware ESX servers many administrators select the default 1MB block size without knowing when or why to change it. The block size determines the minimum amount of disk space that any file will take up on VMFS datastores. So an 18KB log file will actually take up 1MB of disk space (1 block) and a 1.3MB file will take up 2MB of disk space (2 blocks). But the block size also determines the maximum size that any file can be, if you select a 1MB block size on your data store the maximum file size is limited to 256GB. So when you create a VM you cannot assign it a single virtual disk greater then 256GB. There is also no way to change the block size after you set it without deleting the datastore and re-creating it, which will wipe out any data on the datastore.
        Because of this you should choose your block size carefully when creating VMFS datastores. The VMFS datastores mainly contain larger virtual disk files so increasing the block size will not use all that much more disk space over the default 1MB size. You have the following choices when creating a datastore:


        • 1MB block size – 256GB maximum file size
        • 2MB block size – 512GB maximum file size
        • 4MB block size – 1024GB maximum file size
        • 8MB block size – 2048GB maximum file size


        Besides having smaller files use slightly more disk space on your datastore there are no other downsides to using larger block sizes. There is no noticeable I/O performance difference by using a larger block size. When you create your datastore, make sure you choose your block size carefully. 1MB should be fine if you have a smaller datastore (less than 500GB) and never plan on using virtual disks greater then 256GB. If you have a medium (500GB – 1TB) datastore and there is a chance that you may need a VM with a larger disk then go with a 2MB or 4MB block size. For larger datastores (1TB – 2TB) go with a 4MB or 8MB block size. In most cases you will not be creating virtual disks equal to the maximum size of your datastore (2TB) so you will usually not need a 8MB block size.

         
        There is no noticeable I/O performance difference by using a larger block size. When you create your datastore, make sure you choose your block size carefully. 1MB should be fine if you have a smaller datastore (less than 500GB) and never plan on using virtual disks greater then 256GB. If you have a medium (500GB – 1TB) datastore and there is a chance that you may need a VM with a larger disk then go with a 2MB or 4MB block size. For larger datastores (1TB – 2TB) go with a 4MB or 8MB block size. In most cases you will not be creating virtual disks equal to the maximum size of your datastore (2TB) so you will usually not need a 8MB block sizeVMFS Size Limitations

        New Partition Tables For VMFS

        Tuesday, April 26, 2011

        SOAP

        SIMPLE OBJECT ACESS PROTOCOL

        The VMware Host Server (SOAP) sensor monitors a VMware host server using Simple Object Access Protocol. It shows CPU (percent) and memory (absolute) usage, disk read and write speed, and network received and transmitted speed of a VMware host server

        Add Sensor


        The Add Sensor dialog appears when adding a new sensor on a device manually. It only shows the setting fields that are imperative for creating the sensor. Therefore, you will not see all setting fields in this dialog. You can change all settings in the sensor's Settings tab later.

        VMware Host Server Sensor Settings

        On the sensor's detail page, click on the Settings tab to change settings.


        Note: If not set explicitly in a sensor's settings, it will connect to the IP address or DNS name defined in the settings of the parent device the sensor is created on.


        Basic Sensor Settings

        Sensor Name


        Enter a meaningful name to identify the sensor. The name will be shown by default in the device tree and in all alarms.

        Tags: Enter one or more tags, separated by space or comma. You can use tags to group sensors and use tag-filtered views later on. Tags are not case sensitive. We recommend using the default value. You can add additional tags to it, if you like. Tags are automatically inherited.

        Priority

        Select a priority for the sensor. This setting determines where the sensor will be placed in sensor lists. Top priority will be at the top of a list. You can choose from one star (low priority) to five stars (top priority).

        Sensor Display
        Primary Channel: Select a channel from the list to define it as the primary channel. In the device tree, the last value of the primary channel will always be displayed underneath the sensor's name. The available options depend on what channels are available for this sensor.


        Chart Type


        Define how different channels will be shown for this sensor.


        •Show channels independently (default) : Show an own graph for each channel.


        •Stack channels on top of each other : Stack channels on top of each other to create a multi-channel graph. This will generate an easy-to-read graph which visualizes the different components of your total traffic.


        Stack Unit: This setting is only available if stacked graphs are selected above. Choose a unit from the list. All channels with this unit will be stacked on top of each other. By default, you cannot exclude single channels from stacking, if they use the selected unit. However, there is an advanced procedure to do so.


        Inherited Settings:  By default, all following settings are inherited from objects higher in the hierarchy and should be changed there, if necessary. Often, best practice is to change them centrally in the Root group's settings. To change a setting for this object, disable inheritance by clicking on the check mark symbol in front of the respective setting name. You will then see the options described below.


        Scanning Interval
        Scanning Interval: The scanning interval determines the time the sensor waits between two scans. Select a scanning interval (seconds, minutes, or hours) from the list. You can change the available intervals in the system administration.


        Schedules and Dependencies
        Schedule:


        Select a schedule from the list. Schedules can be used to pause monitoring for a certain time span (days, hours) throughout the week. You can create new schedules and edit existing ones in the account settings. Note: Schedules are generally inherited. New schedules will be added to existing ones, so all schedules are active.


        Inherit Access Rights
        User Group Access
        Define which user group(s) will have access to the object you're editing. A table with user groups and right is shown; it contains all user groups from your setup. For each user group you can choose from the following access rights:


        •Inherited : Use the settings of the parent object.


        •None : Users in this group cannot see or edit the object. The object does not show up in lists and in the sensor tree. Exception: If a child object is visible to the user, the object is visible in the sensor tree, though not accessible.


        •Read : Users in this group can see the object and review its monitoring results.


        •Write : Users in this group can see the object, review its monitoring results, and edit the object's settings. They cannot edit access rights settings.


        •Full : Users in this group can see the object, review its monitoring results, edit the object's settings, and edit access rights settings.


        You can create new user groups in the System Administration—User Groups settings. To automatically set all objects further down in the hierarchy to inherit this object's access rights, set a check mark for the Revert children's access rights to inherited option

        Tuesday, February 08, 2011

        Types Of VMDK FILES

        After a long research from Google , i found the differences of VMDK Files
        vmdk files – These are the disk files that are created for each virtual hard drive in your VM. There are 3 different types of files that use the vmdk extension, they are:
        *–flat.vmdk file
          *.vmdk file
        *–delta.vmdk file
           *–flat.vmdk file - This is the actual raw disk file that is created for each virtual hard drive. Almost all of a .vmdk file's content is the virtual machine's data, with a small portion allotted to virtual machine overhead. This file will be roughly the same size as your virtual hard drive.
        *.vmdk file – This isn't the file containing the raw data anymore. Instead it is the disk descriptor file which describes the size and geometry of the virtual disk file. This file is in text format and contains the name of the –flat.vmdk file for which it is associated with and also the hard drive adapter type, drive sectors, heads and cylinders, etc. One of these files will exist for each virtual hard drive that is assigned to your virtual machine. You can tell which –flat.vmdk file it is associated with by opening the file and looking at the Extent Description field.
         
            *–delta.vmdk file - This is the differential file created when you take a snapshot of a VM (also known as REDO log). When you snapshot a VM it stops writing to the base vmdk and starts writing changes to the snapshot delta file. The snapshot delta will initially be small and then start growing as changes are made to the base vmdk file, The delta file is a bitmap of the changes to the base vmdk thus is can never grow larger than the base vmdk. A delta file will be created for each snapshot that you create for a VM. These files are automatically deleted when the snapshot is deleted or reverted in snapshot manager


        SnapShot -1
        Snap Shot-2


        I think it will be very help full for all the viewers............................................................

        Wednesday, January 19, 2011


        Esxcfg Command Help



        Esxcfg command help


        Jump
        To:
        Networking: Esxcfg-firewall
        Esxcfg-nics Esxcfg-vswitch
        Esxcfg-vswif
        Esxcfg-route
        Esxcfg-vmknic

        Storage: Esxcfg-mpath Esxcfg-nas Esxcfg-swisci
        Esxcfg-vmhbadevs
        General: Esxcfg-advcfg
        Esxcfg-auth Esxcfg-info Esxcfg-resgrp Esxcfg-upgrade
        Boot/Diagnostic: Esxcfg-boot Esxcfg-dumppart Esxcfg-init
        Esxcfg-linuxnet Esxcfg-module
         

        Esxcfg-firewall
        Description: Configures the service
        console firewall ports
        Syntax: esxcfg-firewall <options>

        Options:

        -q Lists current settings
        -q <service> Lists settings for the specified service
        -q incoming|outgoing Lists settings for non-required incoming/outgoing
        ports
        -s Lists known services
        -l Loads current settings
        -r Resets all options to defaults
        -e <service> Allows specified service through the firewall
        (enables)
        -d <service> Blocks specified service (disables)
        -o <port, tcp|udp,in|out,name> Opens a port
        -c <port, tcp|udp,in|out> Closes a port previously opened by –o
        -h Displays command help
        -allowincoming Allow all incoming ports
        -allowoutgoing Allow all outgoing ports
        -blockincoming Block all non-required incoming ports (default
        value)
        -blockoutgoing Block all non-required outgoing ports (default
        value)

        Default Services:

        AAMClient Added by the vpxa RPM: Traffic between ESX
        Server hosts for VMware High Availability (HA) and EMC Autostart Manager –
        inbound and outbound TCP and UDP Ports 2050 – 5000 and 8042 – 8045
        activeDirectorKerberos Active Directory Kerberos - outbound TCPs Port 88 and
        464
        CIMHttpServer First-party optional service: CIM HTTP Server - inbound
        TCP Port 5988
        CIMHttpsServer First-party optional service: CIM HTTPS Server - inbound
        TCP Port 5989
        CIMSLP First-party optional service: CIM SLP - inbound and
        outbound TCP and UDP Ports 427
        commvaultDynamic Backup agent: Commvault dynamic – inbound and outbound
        TCP Ports 8600 – 8619
        commvaultStatic Backup agent: Commvault static – inbound and outbound
        TCP Ports 8400 – 8403
        ftpClient FTP client - outbound TCP Port 21
        ftpServer FTP server - inbound TCP Port 21
        kerberos Kerberos - outbound TCPs Port 88 and 749
        LicenseClient FlexLM license server client - outbound TCP Ports 27000
        and 27010
        nfsClient NFS client - outbound TCP and UDP Ports 111 and 2049 (0
        – 65535)
        nisClient NIS client - outbound TCP and UDP Ports 111 (0 –
        65535)
        ntpClient NTP client - outbound UDP Port 123
        smbClient SMB client - outbound TCP Ports 137 – 139 and 445
        snmpd SNMP services - inbound TCP Port 161 and outbound TCP
        Port 162
        sshClient SSH client - outbound TCP Port 22
        sshServer SSH server - inbound TCP Port 22
        swISCSIClient First-party optional service: Software iSCSI client -
        outbound TCP Port 3260
        telnetClient NTP client - outbound TCP Port 23
        TSM Backup agent: IBM Tivoli Storage Manager – inbound and
        outbound TCP Ports 1500
        veritasBackupExec Backup agent: Veritas BackupExec – inbound TCP Ports
        10000 – 10200
        veritasNetBackup Backup agent: Veritas NetBackup – inbound TCP Ports
        13720, 13732, 13734, and 13783
        vncServer VNC server - Allow VNC sessions 0-64: inbound TCP Ports
        5900 – 5964
        vpxHeartbeats vpx heartbeats - outbound UDP Port
        902
        Note: You can configure your own services in the file
        /etc/vmware/firewall/services.xml

        esxcfg-firewall
        examples:

        Enable ssh client connections from the
        Service Console:
        # esxcfg-firewall -e sshClient
        Disable the Samba client connections:
        # esxcfg-firewall
        -d smbClient
        Allow syslog outgoing
        traffic:
        # esxcfg-firewall -o
        514,udp,out,syslog
        Turn off the
        firewall:

        # esxcfg-firewall -allowIncoming
        #
        esxcfg-firewall -allowOutgoing
        Re-enable the
        firewall:

        # esxcfg-firewall -blockIncoming
        #
        esxcfg-firewall –blockOutgoing


        Esxcfg-nics
        Description: Prints a list of physical network adapters along with information
        on the driver, PCI device, and link state of each NIC. You can also use this
        command to control a physical network adapter’s speed and
        duplexing.
        Syntax:
        esxcfg-nics <options> [nic]

        Options:

        -s <speed> Set the speed of this NIC to one of
        10/100/1000/10000. Requires a NIC parameter.
        -d <duplex> Set the duplex of this NIC to one of 'full' or 'half'.
        Requires a NIC parameter.
        -a Set speed and duplex automatically. Requires a NIC
        parameter.
        -l Print the list of NICs and their settings.
        -r Restore the NICs configured speed/duplex settings.
        (Internal use only)
        -h Displays command help

        esxcfg-nics
        examples:

        Set the speed and duplex of a NIC
        (vmnic2) to 100/Full:

        esxcfg-nics -s 100 -d full
        vmnic2
        Set the speed and duplex of a NIC (vmnic2)
        to auto-negotiate:

        esxcfg-nics -a vmnic2



        Esxcfg-vswitch
        Description: Creates and updates
        virtual machine (vswitch) network settings
        Syntax: esxcfg-vswitch <options>
        [vswitch[:ports]]

        Options:


        -a Add a new virtual switch.
        -d Delete the virtual switch.
        -l List all the virtual switches.
        -L <pnic> Set pnic as an uplink for the vswitch.
        -U <pnic> Remove pnic from the uplinks for the vswitch.
        -p <portgroup> Specify a portgroup for operation. Use ALL for operation
        to work on all portgroups
        -v <vlan id> Set VLAN ID for portgroup specified by -p. 0 would
        disable the VLAN.
        -c Check to see if a virtual switch exists. Program outputs
        a 1 if it exists, 0 otherwise.
        -A <name> Add a new portgroup to the virtual switch.
        -D <name> Delete the portgroup from the virtual switch.
        -C <name> Check to see if a portgroup exists. Program outputs a 1
        if it exists, 0 otherwise.
        -r Restore all virtual switches from the configuration file
        (Internal use only)
        -h Displays command help


        esxcfg-vswitch examples:

        Add a pnic (vmnic2) to a vswitch (vswitch1):
        esxcfg-vswitch -L vmnic2 vswitch1
        Remove a pnic (vmnic3) from a vswitch (vswitch0):
        esxcfg-vswitch -U vmnic3 vswitch0
        Create a portgroup (VM Network3) on a vswitch
        (vswitch1):

        esxcfg-vswitch -A "VM Network 3"
        vSwitch1

        Assign a VLAN ID (3) to a portgroup (VM
        Network 3) on a vswitch (vswitch1):

        esxcfg-vswitch
        -v 3 -p "VM Network 3" vSwitch1



        Esxcfg-vswif
        Description: Creates and updates service console network settings. This
        command is used if you cannot manage the ESX Server host through the VI Client
        because of network configuration issues.

        Syntax: esxcfg-vswif <options>
        [vswif]

        Options:

        -a Add vswif, requires IP parameters.
        Automatically enables interface.
        -d Delete vswif.
        -l List configured vswifs.
        -e Enable this vswif interface.
        -s Disable this vswif interface.
        -p Set the portgroup name of the vswif.
        -i <x.x.x.x> or DHCP The IP address for this vswif or specify DHCP to use
        DHCP for this address.
        -n <x.x.x.x> The IP netmask for this vswif.
        -b <x.x.x.x> The IP broadcast address for this vswif. (not required
        if netmask and ip are set)
        -c Check to see if a virtual NIC exists. Program outputs a
        1 if the given vswif exists, 0 otherwise.
        -D Disable all vswif interfaces. (WARNING: This may result
        in a loss of network connectivity to the Service Console)
        -E Enable all vswif interfaces and bring them up.
        -r Restore all vswifs from the configuration file.
        (Internal use only)
        -h Displays command help.
        Note: You can set the Service Console
        default gateway by editing the /etc/sysconfig/network file or through the VI
        Client under Configuration, DNS & Routing.

        esxcfg-vswif
        examples:

        Change your Service Console (vswif0)
        IP and Subnet Mask:

        esxcfg-vswif -i 172.20.20.5 -n
        255.255.255.0 vswif0

        Add a Service Console
        (vswif0):

        esxcfg-vswif -a vswif0 -p "Service
        Console" -i 172.20.20.40 -n 255.255.255.0



        Esxcfg-route
        Description: Sets or retrieves the default VMkernel gateway
        route
        Syntax:
        esxcfg-route <options> [<network> [<netmask>] <gateway>]

        <network> can be specified in 2 ways: as a single argument in
        <network>/<mask> format or as a <network> <netmask>
        pair.
        <gateway> is either an IP address or 'default'

        Options:

        -a Add route to the VMkernel, requires network
        address (or 'default') and gateway IP address.
        -d Delete route from the VMkernel, requires network address
        (or 'default').
        -l List configured routes for the Service Console.
        -r Restore route setting to configured values on system
        start. (Internal use only)
        -h Displays command help

        esxcfg-route examples:

        Set the VMkernel default gateway route:
        esxcfg-route 172.20.20.1

        Add a
        route to the VMkernel:

        esxcfg-route -a default
        255.255.255.0 172.20.20.1



        Esxcfg-vmknic
        Description: Creates and updates
        VMkernel TCP/IP settings for VMotion, NAS, and iSCSI
        Syntax: esxcfg-vmknic <options>
        [[portgroup]]

        Options:


        -a Add a VMkernel NIC to the system, requires IP
        parameters and portgroup name.
        -d Delete VMkernel NIC on given portgroup.
        -e Enable the given NIC if disabled.
        -D Disable the given NIC if enabled.
        -l List VMkernel NICs.
        -i <x.x.x.x> The IP address for this VMkernel NIC. Setting an IP
        address requires that the -n option be given in same command.
        -n <x.x.x.x> The IP netmask for this VMkernel NIC. Setting the IP
        netmask requires that the -i option be given in the same command.
        -r Restore VMkernel TCP/IP interfaces from configuration
        file. (Internal use only)
        -h Displays command help
        esxcfg-vmknic examples:
        Add
        a VMkernel NIC and set the IP and subnet mask:

        esxcfg-vmknic -a "VM Kernel" -i 172.20.20.19 -n 255.255.255.0



        Tuesday, January 11, 2011

        Physical to virtual converstion Issues, Virtual to Virtual Conversion

        Hi All
        Most of the members will facing problem due to VSS writer , This issue will be faced due to volume shadow copy issue
        Symptoms

        •You cannot convert a virtual machine using VMware vCenter Converter Standalone
        •Conversion of a virtual machine fails immediately
        •Conversion fails with the error:
        Converter unable to create a VSS snapshot of the source volume
        Error code 2147754776 (0x80042318)
        •On a Windows machine running vCenter Converter Standalone, under Administration Tools > Event Viewer > Application you see the error:
        Event Type: Error
        Event Source: VSS
        Event Category: None
        Event ID: 5013
        Date: 8/19/2005
        Time: 10:38:14 PM


        User: N/A
        Computer: ComputerName
        Description: Volume Shadow Copy Service error: Shadow Copy writer ContentIndexingService called routine RegQueryValueExW which failed with status 0x80070002 (converted to 0x800423f4). For more information, see Help and Support Center at http://support.microsoft.com.


        Data: 0000: 57 53 48 43 4f 4d 4e 43 WSHCOMNC 0008: 32 32 39 32 00 00 00 00 2292.... 0010: 57 53 48 43 49 43 00 00 WSHCIC.. 0018: 32 38 37 00 00 00 00 00 287.....


        Procedure to reolve the issue 

        Click Start, click Run, type regedit, and then click OK.

        Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs
        Click the registry subkey for each program that is listed under the Catalogs registry subkey. For each registry subkey, verify whether the Location registry entry exists.
        If the Location registry entry is missing for a selected program, verify whether the program is still installed.
        If the program is not installed, right-click the registry subkey for the program under the Catalogs subkey, and then click Delete. If the program is installed, correct the location information.
        Restart the computer, and then use Windows Backup Utility to test this problem


        Please find more information http://support.microsoft.com/kb/907574

        acm bottom ad