Monday, January 24, 2011

Restarting hostd (mgmt-vmware) on ESX hosts restarts hosted virtual machines where virtual machine Startup/Shutdown is enabled

Details
This is an issue with virtual machines that are set to automatically start or stop and that are hosted on ESX 3.x. Manually shutting down, starting up, or restarting hostd through the service console causes hosted virtual machines that are set to automatically change power states to stop, start, or restart, respectively. 

Disable Virtual Machine Startup/Shutdown for the ESX host through VirtualCenter or a VMware Infrastructure (VI) Client that is directly connected to the host.
 
GUI Method 
To disable Virtual Machine Startup/Shutdown:
  1. Log in to VirtualCenter.
  2. Select the ESX Server host where you want restart hostd.
  3. Select the Configuration tab.
  4. Select Virtual Machine Startup/Shutdown.
  5. Select Properties.
  6. Deselect Allow Virtual machines to start and stop automatically with the system.
CLI Method
If the host is not reachable through VirtualCenter or the VI Client:
  1. Log in to the ESX Server service console as root.
  2. At the command line run vimsh.
  3. At the [/] prompt, type:
    hostsvc/autostartmanager/enable_autostart 0
     
  4. Type exit. You can now safely restart mgmt-vmware (hostd).

How to Divide & Combine vSphere 4.x license keys

Dividing vSphere 4.x license keys

To divide vSphere 4.x license keys:
  1. Go to http://www.vmware.com/account/login.do and log in to the license portal.
  2. Expand the product edition (e.g vSphere 4 Standard) under Your VMware Product License Keys to view the available license keys.
  3. Click Divide.
  4. Select the license you wish to Divide by clicking on the associated radio button.
  5. Click Continue.

    You can review the order information for the license you wish to split and decide how many new licenses you want to generate.
  6. Enter the count for each of the new license keys.
  7. Click Continue.

    On the confirmation page, you can review the split operation. A warning message appears.
  8. Click Confirm.

    A dialog is displayed while the operation is in progress. When the Split Operation is complete, you return to the Licensing page. The original license key is no longer visible in the portal and you see the newly generated license keys indicated by New.

Combining vSphere 4.x license keys

To combine the vSphere 4.x license keys:
  1. Go to http://www.vmware.com/account/login.do and log in to the license portal.
  2. Expand the product edition (e.g vSphere 4 Standard) under Your VMware Product License Keys to view the available license keys.

    Note: You cannot combine license keys that belong to different editions. For example you cannot combine a vSphere Standard License key with a vSphere Enterprise License Key.
  3. Click Combine.
  4. Select the licenses you wish to combine by clicking on the associated check boxes
  5. Click Continue.

    On the confirmation page, you have a chance to review the combine operation. A warning message appears.
  6. Click Confirm to proceed with the combine operation.

    A dialog is displayed while the operation is in progress. When the Combine Operation completes, you return to the Licensing page. The original license keys are no longer visible in the portal. You see the newly generated license keys indicated by New.

Friday, January 14, 2011

ESXTOP - Deep Dive

Source - www.yellow-bricks.com
ESXTOP
Intro
Thresholds
Howto – Run
Howto – Capture
Howto – Analyze
Howto – Limit esxtop to specific VMs
References
Changelog
This page is solely dedicated to one of the best tools in the world for ESX; esxtop.

Intro

I am a huge fan of esxtop! I read a couple of pages of the esxtop bible every day before I go to bed. Something I however am always struggling with is the “thresholds” of specific metrics. I fully understand that it is not black/white, performance is the perception of a user in the end.
There must be a certain threshold however. For instance it must be safe to say that when %RDY constantly exceeds the value of 20 it is very likely that the VM responds sluggish. I want to use this article to “define” these thresholds, but I need your help. There are many people reading these articles, together we must know at least a dozen metrics lets collect and document them with possible causes if known.
Please keep in mind that these should only be used as a guideline when doing performance troubleshooting! Also be aware that some metrics are not part of the default view. You can add fields to an esxtop view by clicking “f” on followed by the corresponding character.
I used VMworld presentations, VMware whitepapers, VMware documentation, VMTN Topics and of course my own experience as a source and these are the metrics and thresholds I came up with so far. Please comment and help build the main source for esxtop thresholds.

Metrics and Thresholds

Display Metric Threshold Explanation
CPU %RDY 10 Overprovisioning of vCPUs, excessive usage of vSMP or a limit(check %MLMTD) has been set. See Jason’s explanation for vSMP VMs
CPU %CSTP 3 Excessive usage of vSMP. Decrease amount of vCPUs for this particular VM. This should lead to increased scheduling opportunities.
CPU %SYS 20 The percentage of time spent by system services on behalf of the world. Most likely caused by high IO VM. Check other metrics and VM for possible root cause
CPU %MLMTD 0 The percentage of time the vCPU was ready to run but deliberately wasn’t scheduled because that would violate the “CPU limit” settings. If larger than 0 the world is being throttled due to the limit on CPU.
CPU %SWPWT 5 VM waiting on swapped pages to be read from disk. Possible cause: Memory overcommitment.
MEM MCTLSZ 1 If larger than 0 host is forcing VMs to inflate balloon driver to reclaim memory as host is overcommited.
MEM SWCUR 1 If larger than 0 host has swapped memory pages in the past. Possible cause: Overcommitment.
MEM SWR/s 1 If larger than 0 host is actively reading from swap(vswp). Possible cause: Excessive memory overcommitment.
MEM SWW/s 1 If larger than 0 host is actively writing to swap(vswp). Possible cause: Excessive memory overcommitment.
MEM CACHEUSD 0 If larger than 0 host has compressed memory. Possible cause: Memory overcommitment.
MEM ZIP/s 0 If larger than 0 host is actively compressing memory. Possible cause: Memory overcommitment.
MEM UNZIP/s 0 If larger than 0 host has accessing compressed memory. Possible cause: Previously host was overcommited on memory.
MEM N%L 80 If less than 80 VM experiences poor NUMA locality. If a VM has a memory size greater than the amount of memory local to each processor, the ESX scheduler does not attempt to use NUMA optimizations for that VM and “remotely” uses memory via “interconnect”.
NETWORK %DRPTX 1 Dropped packets transmitted, hardware overworked. Possible cause: very high network utilization
NETWORK %DRPRX 1 Dropped packets received, hardware overworked. Possible cause: very high network utilization
DISK GAVG 25 Look at “DAVG” and “KAVG” as the sum of both is GAVG.
DISK DAVG 25 Disk latency most likely to be caused by array.
DISK KAVG 2 Disk latency caused by the VMkernel, high KAVG usually means queuing. Check “QUED”.
DISK QUED 1 Queue maxed out. Possibly queue depth set to low. Check with array vendor for optimal queue depth value.
DISK ABRTS/s 1 Aborts issued by guest(VM) because storage is not responding. For Windows VMs this happens after 60 seconds by default. Can be caused for instance when paths failed or array is not accepting any IO for whatever reason.
DISK RESETS/s 1 The number of commands reset per second.
DISK CONS/s 20 SCSI Reservation Conflicts per second. If many SCSI Reservation Conflicts occur performance could be degraded due to the lock on the VMFS.

Running esxtop

Although understanding all the metrics esxtop provides seem to be impossible using esxtop is fairly simple. When you get the hang of it you will notice yourself staring at the metrics/thresholds more often than ever. The following keys are the ones I use the most.
Open console session or ssh to ESX(i) and type:
esxtop
By default the screen will be refreshed every 5 seconds, change this by typing:
s 2
Changing views is easy type the following keys for the associated views:
c = cpu
m = memory
n = network
i = interrupts
d = disk adapter
u = disk device (includes NFS as of 4.0 Update 2)
v = disk VM
p = power states

V = only show virtual machine worlds
e = Expand/Rollup CPU statistics, show details of all worlds associated with group (GID)
k = kill world, for tech support purposes only!
l  = limit display to a single group (GID), enables you to focus on one VM
# = limiting the number of entitites, for instance the top 5

2 = highlight a row, moving down
8 = highlight a row, moving up
4 = remove selected row from view
e = statistics broken down per world
6 = statistics broken down per world
Add/Remove fields:
f
Changing the order:
o
Saving all the settings you’ve changed:
W
Keep in mind that when you don’t change the file-name it will be saved and used as default settings.
Help:
?
In very large environments esxtop can high CPU utilization due to the amount of data that will need to be gathered and calculations that will need to be done. If CPU appears to highly utilized due to the amount of entities (VMs / LUNs etc) a command line option can be used which locks specific entities and keeps esxtop from gathering specific info to limit the amount of CPU power needed:
esxtop -l
More info about this command line option can be found here.

Capturing esxtop results

First things first. Make sure you only capture relevant info. Ditch the metrics you don’t need. In other words run esxtop and remove/add(f) the fields you don’t actually need or do need! When you are finished make sure to write(W) the configuration to disk. You can either write it to the default config file(esxtop4rc) or write the configuration to a new file.
Now that you have configured esxtop as needed run it in batch mode and save the results to a .csv file:
esxtop -b -d 2 -n 100 > esxtopcapture.csv
Where “-b” stands for batch mode, “-d 2″ is a delay of 2 seconds and “-n 100″ are 100 iterations. In this specific case esxtop will log all metrics for 200 seconds. If you want to record all metrics make sure to add “-a” to your string.
Or what about directly zipping the output as well? These .csv can grow fast and by zipping it a lot of precious diskspace can be saved!
esxtop -b -a -d 2 -n 100 | gzip -9c > esxtopoutput.csv.gz

Analyzing results

You can use multiple tools to analyze the captured data.
  1. perfmon
  2. excel
  3. esxplot
Let’s start with perfmon as I’ve used perfmon(part of Windows also know as “Performance Monitor”) multiple times and it’s probably the easiest as many people are already familiar with it. You can import a CSV as follows:
  1. Run: perfmon
  2. Right click on the graph and select “Properties”.
  3. Select the “Source” tab.
  4. Select the “Log files:” radio button from the “Data source” section.
  5. Click the “Add” button.
  6. Select the CSV file created by esxtop and click “OK”.
  7. Click the “Apply” button.
  8. Optionally: reduce the range of time over which the data will be displayed by using the sliders under the “Time Range” button.
  9. Select the “Data” tab.
  10. Remove all Counters.
  11. Click “Add” and select appropriate counters.
  12. Click “OK”.
  13. Click “OK”.
The result of the above would be:

With MS Excel it is also possible to import the data as a CSV. Keep in mind though that the amount of captured data is insane so you might want to limit it by first importing it into perfmon and then select the correct timeframe and counters and export this to a CSV. When you have done so you can import the CSV as follows:
  1. Run: excel
  2. Click on “Data”
  3. Click “Import External Data” and click “Import Data”
  4. Select “Text files” as “Files of Type”
  5. Select file and click “Open”
  6. Make sure “Delimited” is selected and click “Next”
  7. Deselect “Tab” and select “Comma”
  8. Click “Next” and “Finish”
All data should be imported and can be shaped / modelled / diagrammed as needed.
Another option is to use a tool called esxplot”. You can download the latest version here.
  1. Run: esxplot
  2. Click File -> Import -> Dataset
  3. Select file and click “Open”
  4. Double click host name and click on metric

As you can clearly see in the screenshot above the legend(right of the graph) is too long. You can modify that as follows:
  1. Click on “File” -> preferences
  2. Select “Abbreviated legends”
  3. Enter appropriate value
For those using a Mac, esxplot uses specific libraries which are only available on the 32Bit version of Python. In order for esxplot to function correctly set the following environment variable:
export VERSIONER_PYTHON_PREFER_32_BIT=yes

Limiting your view

In environments with a very high consolidation ratio (high number of VMs per host) it could occur that the VM you need to have performance counters for isn’t shown on your screen. This happens purely due to the fact that height of the screen is limited in what it can display. Unfortunately there is currently no command line option for esxtop to specify specific VMs that need to be displayed. However you can export the current list of worlds and import it again to limit the amount of VMs shown.
esxtop -export-entity filename
Now you should be able to edit your file and comment out specific worlds that are not needed to be displayed.
esxtop -import-entity filename
I figured that there should be a way to get the info through the command line as and this is what I came up with. Please note that needs to be replaced with the name of the virtual machine that you need the GID for.
VMWID=`vm-support -x | grep  |awk '{gsub("wid=", "");print $1}'`
VMXCARTEL=`vsish -e cat /vm/$VMWID/vmxCartelID`
vsish -e cat /sched/memClients/$VMXCARTEL/SchedGroupID
Now you can use the outcome within esxtop to limit(l) your view to that single GID. William Lam has written an article a couple of days after I added the GID section. The following is a lot simpler than what I came up with, thanks William!
VM_NAME=STA202G ;grep "${VM_NAME}" /proc/vmware/sched/drm-stats  | awk '{print $

IOBlazer - storage micro-benchmark tool - run in VM - brand new baby from VMware Labs

IOBlazer is a multi-platform storage stack micro-benchmark. IOBlazer runs on Linux, Windows and OSX and it is capable of generating a highly customizable workload. Parameters like IO size and pattern, burstiness (number of outstanding IOs), burst interarrival time, read vs. write mix, buffered vs. direct IO, etc., can be configured independently. IOBlazer is also capable of playing back VSCSI traces captured using vscsiStats. The performance metrics reported are throughput (in terms of both IOPS and bytes/s) and IO latency.
IOBlazer evolved from a minimalist MS SQL Server emulator which focused solely on the IO component of said workload. The original tool had limited capabilities as it was able to generate a very specific workload based on the MS SQL Server IO model (Asynchronous, Un-buffered, Gather/Scatter). IOBlazer has now a far more generic IO model, but two limitations still remain:
  1. The alignment of memory accesses on 4 KB boundaries (i.e., a memory page)
  2. The alignment of disk accesses on 512 B boundaries (i.e., a disk sector).
Both limitations are required by the gather/scatter and un-buffered IO models.
A very useful new feature is the capability to playback VSCSI traces captured on VMware ESX through the vscsiStats utility. This allows IOBlazer to generate a synthetic workload absolutely identical to the disk activity of a Virtual Machine, ensuring 100% experiment repeatability.


http://labs.vmware.com/flings/ioblazer

Wednesday, October 27, 2010

Power CLI (Part 1) - for Power users how to work with VC over CLI

www.virtualizationadmin.com - Author: Scott D. Lowe

http://www.virtualizationadmin.com/articles-tutorials/general-virtualization-articles/use-powercli-quick-stats-part1.html

Train Signal VMware vSphere Video Training

Train Signal VMware vSphere Video Training


NEW! As a follow up to David Davis's best selling video series on VMware ESX Server, David has released an entirely new video training course covering VMware vSphere. The course is available from www.TrainSignal.com! This video series is over 17 hours and provides hands-on demonstration of VMware vSphere, from installation to advanced features. In the video series, David covers awesome new vSphere features like Fault Tolerance (FT), Host Profiles, Hot Add of CPU/RAM, and Data Recovery.


To watch a free demo of the course, visit the Train Signal.com VMware vSphere video training website! You'll be glad you did.


  

Monday, August 2, 2010

What is MultiCore Virtual CPU?

VMware multicore virtual CPU support lets you control the number of cores per virtual CPU in a virtual machine. This capability lets operating systems with socket restrictions use more of the host CPU's cores, which increases overall performance.

You can configure how the virtual CPUs are assigned in terms of sockets and cores. For example, you can configure a virtual machine with four virtual CPUs in the following ways:

* Four sockets with one core per socket
* Two sockets with two cores per socket
* One socket with four cores per socket

Using multicore virtual CPUs can be useful when you run operating systems or applications that can take
advantage of only a limited number of CPU sockets. Previously, each virtual CPU was, by default, assigned
to a single-core socket, so that the virtual machine would have as many sockets as virtual CPUs.

When you configure multicore virtual CPUs for a virtual machine, CPU hot Add/remove is disabled.
For more information about multicore CPUs, see the vSphere Resource Management Guide. You can also search the VMware KNOVA database for articles about multicore CPUs.

CAUTION You must assign a value to configuration parameter keywords. If you don't assign a value, the
keyword can return a value of 0, false, or disable, which can result in a virtual machine that cannot power on.

Prerequisites

IMPORTANT To use the VMware multicore virtual CPU feature, you must be in compliance with the
requirements of the operating system EULA.

* Verify that the virtual machine is powered off.
* Verify that you have virtual machine hardware version 7 or later.
* Verify that the total number of virtual CPUs for the virtual machine divided by the number of cores per
   socket is a positive integer.

VMware Log Locations & Descriptions

The vCenter Server logs can be viewed from:
  • The vSphere Client connected to vCenter Server (click Home > Administration > System Logs)
  • The vSphere Client connected to VirtualCenter Server (click Administration > System Logs).
The logs are located in %ALLUSERSPROFILE%\Application Data\VMware\VMware VirtualCenter\Logs, which translates to C:\Documents and Settings\All Users\Application Data\VMware\VirtualCenter\logs in Windows 2003 and C:\ProgramData\VMware\VMware VirtualCenter\Logs in Windows 2008.
 
The vCenter Server logs appear as vpxd-xx.log.
 
The vpxd-profiler-xx.log is used for the VPX Operational Dashboard (VOD),which can be accessed via https:///vod/index.html.

• Vmkernel – /var/log/vmkernel – records activities related to the virtual machines and ESX server.


• Vmkernel Warnings – /var/log/vmkwarning – This log is a copy of everything marked as a warning or higher severity from vmkernel log. It is much easier to look through this for warnings and errors, instead of filtering through the full information in the vmkernel logs.

• Vmkernel Summary – /var/log/vmksummary – Used to determine uptime and availability statistics for ESX Server; human-readable summary found in /var/log/vmksummary.txt

• ESX Server host agent log – /var/log/vmware/hostd.log – Contains information on the agent that manages and configures the ESX Server host and its virtual machines (Search the file date/time stamps to find the log file it is currently outputting to).

• Service Console – /var/log/messages – This log is the log from the Linux kernel (service console), which is generally only potentially useful in the case of a host hang, crash, authentication issue, or 3rd party app acting up. This log has NOTHING to do with virtual machines. The SERVICE CONSOLE (red hat kernel) has NO awareness of the VMs (worlds) running on the VMKERNEL.

Location of Logs & Brief note on that

• Web Access – /var/log/vmware/webAccess – Records information on Web-based access to ESX Server.

• Authentication log – /var/log/secure – Contains records of connections that require authentication, such as VMware daemons and actions initiated by the xinetd daemon.

• VirtualCenter agent – /var/log/vmware/vpx – Contains information on the agent that communicates with VirtualCenter.

• Virtual Machines – The same directory as the affected virtual machine’s configuration files; named vmware.log – Contain information when a virtual machine crashes or ends abnormally.

/var/log/vmkernel Vmkernel Records activities related to the virtual machines and ESX host

/var/log/vmkwarning Vmkernel Warnings A copy of everything marked as a warning or higher severity from vmkernel log. Easier to look through than vmkernel log

/var/log/vmksummary Vmkernel Summary Used for avaialability and uptime statistics. Human-readable summary in vmksummary.txt

/var/log/vmware/hostd.log Host Agent Log Contains information on the agent that manages and configures the ESX host and its virtual machines

/var/log/vmware/vpx VirtualCenter Agent Contains information on the agent that communicates with VirtualCenter

/var/log/messages Service Console Log from the Linux kernel. Useful for underlying Linux issues. The kernel has no awareness of VMs running on the VMkernel

/var/log/vmware/esxcfg-boot.log ESX Boot Log ESX Boot log, logs all ESX boot events

/var/log/vmware/webAccess Web Access Records information on Web-based access to ESX Server

/var/log/secure Authentication Log Contains records of connections that require authentication, such as VMware daemons and actions initiated by the xinetd daemon

/var/log/vmware/esxcfg-firewall.log ESX Firewall Log Contains all firewall rule events

/var/log/vmware/aam High Availability Log Contains information related to the High Availability (HA) service

/var/log/vmware/esxupdate.log ESX Update Log Logs all updates completed using the esxupdate tool

There’s a new Knowledgebase article on this here: VMware KB: http://kb.vmware.com/kb/1021806 Location of log files for VMware products

Monday, June 14, 2010

Troubleshooting Virtual Machine snapshot problems

A nice guide on Troubleshooting VM snapshot problems --> http://is.gd/ckwDc

This troubleshooting guide explains basic concepts about Virtual Machine snapshots and different troubleshooting paths depending on the problem. This guide was designed for ESX3.5 and extra considerations have to be taken if working with ESX3.5i or ESX4(i). The formulas and most of the procedures described in this document were created by Ruben as part of a continuous troubleshooting improvement process.

Ruben is also creator of SnapVMX utility.

While troubleshooting Virtual Machine (VM) snapshot problems sometimes it is important to retrieve a lot of information in order to take the most appropriate decision in accordance with the situation. That collection and arrangement of information may take a long time especially if the VM has many snapshots.


SnapVMX was created to speed up the troubleshooting process bringing you instantaneously all the information that you need to evaluate the situation and take the correct decision, reducing the downtime to the bare minimum needed to solve the problem,
 
Source : Eric Blog

Also Try below VMware KB TV - Consolidating snapshots (VMware KB 1007849) - video below




Using MOB- (Managed Object Browser) --> Ops Panel for ESX

I was recently reading Eric Sloof article,
Where you can go and edit (index.html - which opens as ESX server home page) customize by using MOB (Via Java Scripting).. here is the cool video by Eric.

The Operations Panel is a script tool, which runs on the client browser and extends the default ESX server web page with a short list of all available virtual machines. It gives the user the ability to perform simple power operations (start, stop, suspend, resume). Easily accessible user interface for some of the most common operations on an ESX host, available directly from the ESX home page.


Ops Panel for ESX from Eric Sloof NTPRO.NL on Vimeo.

Top 10 Free vSphere ESX Tools and Utilities

Top 10 Free vSphere ESX Tools and Utilities

http://www.kendrickcoleman.com/index.php?/Tech-Blog/top-10-free-vsphere-esx-tools-and-utilities.html

64GB Addressable Memory Limit on ESX 3.x Host

Prior to ESX 3.5 Update 3, the ability to address more than 64GB of memory on ESX Server 3.5 is suppressed by default. In a standard installation, a 36bit MTRR mask is forced, even though the machine may support 40bit mask values. This means that the ESX Server may see any memory above 64GB as memory that is in use. For example, if an ESX server has 256GB of RAM, the Memory Usage counter displays 192GB in use and only 64GB free. If you attempt to create a virtual machine using memory exceeding the available 64GB of memory, you see an Insufficient Memory error. This condition is documented in the following location: http://www.vmware.com/support/vi3/doc/vi3_esx35u3_rel_notes.html

For more details & Resolution refer Jason Boche Article below..

http://www.boche.net/blog/index.php/2010/05/24/esx-3-x-host-64gb-addressable-memory-limit/

Friday, June 11, 2010

What is Cloud Computing?

Cloud Computing explained - Click here for More on Cloud

Monday, May 24, 2010

How to power off an unresponsive VMware ESX virtual machine

Sometimes Guest OS will go stale / hang due to various reasons..
follow the below VMware KBTV Article to handle the situation..

Friday, May 21, 2010

VM World 2009 - Glimpse of EMC Ionix Data Center Insight (DCI)

My take away on IONIX DCI is - Ionix DCI will understand your IT infrastructure better than you and show case and index for blink away search any equipment & it's span across your Data Center.. I would recommend you to watch the below video (Full Screen) to get to know more..






EMC Unveils Ionix Data Center Insight Laying Foundation for Unified IT Configuration Visibility Across the Data Center. 

nix Data Center Insight is a key piece of EMC's newly announced Ionix IT management suite — powerful solutions for automating IT management across a unified infrastructure of storage, server, network and virtualization resources. With Ionix, customers can confidently move from physical to virtual to cloud computing — maximizing the value of their new enterprise IT architecture.

With Ionix Data Center Insight, customers can quickly and easily:

Automatically populate both EMC and third-party CMDBs with best-practices configuration items (CIs) and allows customization to define customer-specific CIs

Build a single, reconciled view of the truth about the IT environment

Visualize application and service dependencies across the data center — including applications, servers, networks, storage — both physical and virtual

Leverage the solution as a critical component of a federated and modular CMS to achieve a single, accurate and current view of the IT environment, so those responsible for configuration management can understand — across multiple domains — the resources underpinning business services

Architected to support heterogeneous, third party data sources, Ionix Data Center Insight initially supports discovery from a wide variety of EMC Ionix data sources. Ionix Data Center Insight automates the integration of these discovery sources and populates best-practices-based configuration information into the leading CMDBs such as EMC Ionix Service Manager CMDB. Additionally, Data Center Insight provides a web services visualization layer that enables cross-domain dependency mapping with search functions — spanning applications, servers, networks and storage — physical and virtual

Saturday, May 8, 2010

How to connect to an ESX host using a SSH Client


How to connect to an ESX host using a SSH Client


This article details steps for connecting to an ESX host using an SSH Client. This video uses the PuTTY SSH Client, but a number of different clients work similarly. The steps in the video are the same for different versions of ESX, but for the video, we used ESX 4.
For more information and context, continue reading Connecting to an ESX host using a SSH client
How to connect to an ESX host using a SSH Client

Friday, April 23, 2010

Hitachi Data Systems has released a free eBook on Storage Virtualization..








Hitachi Data Systems has released a free eBook on Storage Virtualization..
Click on below link to download eBook..

http://www.hds.com/go/dummies/index.html?WT.ac=us_hp_sp1r1

VMware has released the vSphere 4.0 Hardening Guide

VMware would like to announce the availability of the final release of the vSphere 4.0 Security Hardening Guide. This version incorporates the extensive feedback from the VMware community on the previous draft release, which was published in January. We would like to thank all the people who took the time to go through the draft release and provide their comments.

vSphere Hardening Guide provides guidance on how to securely deploy vSphere 4.0 in a production environment. The focus is on initial configuration of the virtualization infrastructure layer, which covers the following:

•The virtualization hosts (both ESX and ESXi)
•Configuration of the virtual machine container (NOT hardening of the guest OS or any applications running within)
•Configuration of the virtual networking infrastructure, including the management and storage networks as well as the virtual switch (but NOT security of the virtual machine’s network)
•vCenter Server, its database, and client components
•VMware Update Manager (included because the regular update and patching of the ESX/ESXi hosts and the virtual machine containers is essential to maintaining the security of the environment)

http://communities.vmware.com/docs/DOC-12306

Thursday, April 15, 2010

VMware KB video showing patching of ESX Host. vSphere 4 Update Manager in action.

If you never used VMware vSphere 4 update manager before, this video shows you how to get started and how to successfully apply a necessary security patches to your ESX host.
The GUI interface seems to be difficult to understand, but hopefully with this video you’ll be able to find your way around. A terms like schedule patches definitions download, baselines, remediation,  ESX hosts, scan of ESX host,  maintenance mode will be shown. It’s an easy step-by-step video you can follow if you’re new to VMware and managing Virtual Infrastructure with VMware vSphere 4.
Popout
This video details installing patches or updates to your VMware ESX host using VMware vCenter Update Manager. This video was created using ESX 4.0 and Update Manager 4.0. The same basic steps apply to other versions of ESX. This video also shows you how to determine how often your host checks for patches or updates, where to schedule the task, and how to run the task manually.
Source: VMware KB

How to maintain a the same MAC address all the time within your vSphere 4 installation.

In VMware vSphere 4 environement, when you move your VM to another host or the VM has different path on the same host, the MAC adress of the VM is changed.
If you want to guarantee that the same MAC address is assigned to a given virtual machine every time, even if the virtual machine is moved, or if you want to guarantee a unique MAC address for each virtual machine within a networked environment you have 2 choices. You can do it on the VM configuration level or you can do it on the guest level.
On the VM level you can do it via GUI or by editing your VMX file (just make sure that you unregister the VM from vCenter first, otherwise vCenter will overwrite the value) you go to Menu VM > Edit Settings > Network Adapter and you set the radio button on Manual. Then you can assign a static MAC address there between the authorised range by VMware. The MAC address range is:
00:50:56:00:00:00-00:50:56:3F:FF:FF

If in some rare cases you need to keep the same MAC as for exaple on your Physical server (for some software license files tightened to a MAC address for exemple), and the MAC adress is outside of the range, you have the possibility to do it inside of your Windows (linux) VM.
On the Windows VM you do it in the properties of your NIC:
Start the VM and in the Windows system go to Control panel > network connections > Properties

Click the Configure button and go to Advanced Tab where on selecting Locally administered value you are able to enter your own value.

And for linux VM you can try this:
ifconfig eth0 down
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
ifconfig eth0 up
There is reference webpage I found about MAC addresses ranges on VMware’s Website here. The page is is for VMware ESX Server 2.1, but it’s still valuable… There might be other resources on that, feel free to post a comment…

Source : www.vladan.fr Feeds

VMware Update manager does not scan hosts??? Disable Internet Explorer Enhanced Security Configuration on Win2k8


VMware update manager hated me and wouldn’t scan any of my hosts, one of the many fixes I was trying was making sure that my VMware Update Manager server could reach the patch stores to download updates and do patch checks and so decided to make sure of this I wanted to remove the painfully irritating Internet Explorer Enhanced Security Configuration. Now before I get loads of comments saying this is dangerous etc etc and that it’s a security risk,I know it is but for testing purposes I wanted to do it so I did. Now the point of this blog is that to disable it isn’t as easy as it used to be in 2003 as you used to just:
  • Go to Control Panel
  • Add/Remove Programs, 
  • Add/Remove Windows Components on the left hand side







  • Untick it from the drop down list

















    But for Windows Server 2008 I couldn’t find it anywhere in the features drop down lists which has replaced the Windows Components in Server 2008. Fortunately while on another Server 2008 server I noticed the place to disable it. In the Server Manager root page under the Security Information section is Configure IE ESC







     All you need to do is click on this link and disable it for either Administrators and/or for Users. I only needed for Administrators so this is what I selected for the testing.





















    Source : EMC Feeds



    Monday, April 12, 2010

    Rename VMDK files – else you may have to experience Backup Problems

    What if you end up with the same vmdk file name on different datastores?

    A simple case scenario that can happens:

    A single VM has several hard disk attached to it. The hard disk VMDK files are located on different datastores. When creating a new hard disk which location is on different datastore to a VM, the name given to this VMDK is the same as the first VMDK.

    For exemple, you VM has a disk called TS01.vmdk which is located on DATASTORE1, and you create a second disk located on DATASTORE2. This disk takes the same name as the first one…. This is not a problem for VMware, but it is for third party backp products like Symantec Backup Exec 2010. In fact what happens to the backup job wanting to backup a VM like this? The VMDK is marked as a corrupted and the job fails, so it's impossible to restore either.


    What's the solution? VMware KB had give me an simple answer what to do in the case like this. You'll have to use vmkfstools via command line to do the job. Don't worry, it's not difficult.

    How to:

    01. First, make sure that the VM has NO Snapshots. Then power down your VM go to menu Edit Settings.



    On the next screen you just go to the hard disk you want to rename. Select the hard disk and click the remove button. The screen change and you have the possibility to check a radio button to delete the disk from datastore. Don't check this radio button. Otherwise your disk gets deleted..


    02. Validate your choice on clicking OK.

    03. Then you must connect to the console of the ESX server to which the datastore2 is attached to. Use putty or go directly to the server room.

    04. Via putty navigate to the folder where the hard disk is located and execute following command:
    vmkfstools -E <old_name> <new_name>
    So in our case the command looks like this (I'm renaming from ts01.vmdk to ts01_2.vmdk):

    vmkfstools -E ts01.vmdk ts01_2.vmdk

    05. Then go to your VI client and add the renamed disk back to the virtual machine. In the Inventory browser by right clicking the datastore and where the VM is stored and select "Browse Datastore", select the folder of the VM than right click the vmx file and select "Add to Inventory".

    This works fine for ESX 4, but to be able to use it with ESXi 4 you have several choices:

    01. You can use the unsupported (Tech Support Mode) to get to the console of ESXi 4 since the CLI tools won't work for writing data in the free version of ESXi 4.

    02. If your ESXi 4 is licensed with paid VMware License you can use PowerCLI or VMA to do the job.

    Source    :    www.vladan.fr

    Thursday, April 8, 2010

    What is FAST? (Fully Automated Storage Tiering) at vBlock (by VMware, EMC, Cisco)

    What is FAST? (Fully Automated Storage Tiering) at vBlock
    Now available for 3 Flavors (Celera, CX4, Symmetrix)

    FAST approach is the Brand new at EMC,
    which will automatically move the the LUNs as below..

    High I/O LUN’s to Flash Drives (SSD Hdd’s)
    Modest I/O LUN’s to F.C Drives
    Least I/O LUN’s to SATA Drives

    Here are some features, highlights of FAST and how it operates.

    • FAST will perform data movement based on IOPS, average I/O size and write percentage.
    This is currently true for the Symmetrix V-Max, Clariion CX4 and Celerra NS.

    • Three elements that define FAST: Storage Type, FAST policies and Storage Groups.

    • FAST is based on user defined -- configuration policies.

    • The configuration of FAST is typically done through FAST wizards FAST LUN Migrator for Clariion CX4,
    (Symmetrix Management Console) on Symmetrix V-Max and Rainfinity File Management Appliance or VE for Celerra NS.



    NOTE: Out of the box thinking by EMC, imagine the flexibility one would have
    with a large infrastructure and FAST moving data based on policy.
    It’s all about the big picture.


    FAST – EMC Hands on Demo



    Source : www.storagenerve.com (Full Article Link below)

    http://storagenerve.com/tag/vblock/

    Wednesday, April 7, 2010

    How to Decode MCE from PSOD (ESX dump) to identify the H/w Errors

    Next time you see a PSOD (Pink Screen on Death) for ESX Server..
    Look for any MCE (Machine Check Error) in the PSOD screen to isolate H/w issues.

    MCE errors are always indication of some H/w failure..

    Decoding the MCE:
    For AMD CPUs you can use MCAT utility to decode the MCE for you..
    www.amd.com/us-en/assets/content_type/utilities/mcatsetup.exe

    For Intel CPUs you need to convert the MCE from
    Hexadecimal to Binary and decode the error manually..

    Watch the Video for how to decode the MCE for AMD Processors



    Source : VMware KB - 1005184