Thursday, September 29, 2011

Kill VM

Vmware-cmd ./guestname getstate
vmware-cmd ./guestname stop
ps -auxww | grep 7885
Kill -9 7885

Tuesday, September 27, 2011

vSphere 5 HA features

In vSphere 5.0, the vSphere HA feature has been completely rewritten by VMware from the ground up. This was done to increase the scalability, reliability, and usability of vSphere HA

Changes in VMware HA :
Scalability :-
One of the biggest changes with vSphere HA is that the concept of primary and secondary nodes has been
completely removed. The new model incorporates a master-slave relationship between the nodes in a cluster,
where one node is elected to be a master and the rest are slaves. The master node coordinates all availability
actions with the other nodes and is responsible for communicating that state to the VMware vCenter Server.

Realibility :-
One enhancement was the elimination of dependencies on any external component by vSphere HA. Specifically,vSphere HA no longer has any type of dependency upon DNS resolution by each host in the cluster. Eliminating this reduces the odds that an outage of an external component will have an effect on the operation of vSphere HA.

Another enhancement is the ability to enable communication between the nodes within a cluster through the
storage subsystem. Now vSphere HA will utilize multiple paths of communication, through the network and
storage. Not only does this allow for a greater level of redundancy, but it also enables better identification of the health of a node and the virtual machines running on it.

Virtual Machine Scalability and Added Device Support :-
Up to 32 virtual CPUs (vCPUs) and up to 1TB of RAM
Enhanced graphics capabilities, including 3D graphics support that enables a richer desktop experience
Broader device coverage, including support for 3.0 USB devices, smart card readers and EFI BIOS
New user interface support for configuring multicore vCPUs
Support for new guest operating systems including Mac OS X Server v10.6 (“Snow Leopard”)


Compatibility with Older Versions of VMware Tools and Virtual Hardware


vSphere 5 HA replaced AAM with FDM (Fault Domain Manager)
If you are doing host maintance or network uncheck host monitoring in the HA
Master-Slave /etc/opt/vmware/fdm

Network Partition: is the term used to describe the suitation in which one or more slave hosts cannot comminicate with the Master even though they still in network connected .HA uses heart beat datastores to detect wheather the partitioned hosts are still live and whether actions needs to be taken to protect VM's on those hosts.


Network Isolation :
Is the situation in which one or more slave hosts have lost all managment network connectivity.Isolated hosts can neither communicate with HA master or commnicated with other ESXi hosts.

Saturday, September 17, 2011

Network Tunning

Network Management :-
VM Directpath :- Bypasses the Virtualization layer and lets the Virtual device talk directly to a PCI physical Device.but this is lose features like vmotion,snapshots,memoery over-commitment,FT,VMsafe .(Avanced Configuration)
-----------------------------------------
Jumbo Frames :-Less processing and more throughput .normal ethenet payload is up to 1500 bytes payload with jumbo frame we can send payloads up to  9000 bytes . To send jumbo frames all devices  end to end should be enabled  and VMXnet (enhanced ) or VMXNET3 should be used for VM's.
-------------------------------------------
TCP Offload :-
TCP offload Engine(TOE) NIC feature is not supported by vSphere
TCP Segmentation Offload (TSO) supported by vSphere on some limited NIC -
" a feature of some NICs that offloads the packetization of data from the CPU to the NIC "

-------------------------------------------
NICO :- Network I/O Control (NIOC) from 4.1 require Vdistributed switch configured on DVSwitch
 Similar to SI/OC with NIOC you can use shares to prorotize virtual network bandwidth .
--------------------------------------------------------------------------------
VMCI (VIrtual Machine Communication Interface (VMCI))
Super fast coomunication option between host and VM or between VM and VM .ONly works with programs designed to work with socket API like a web application and backned database.Does not work with TCP/IP.

VMCI should be enabled on VM properties and must be installed.
------------------------------------------------------------------------------
Network Metric's
net.usage.average
net.droppedRx.summation
net.droppedTx.summation
net.recived.average
net.trnasmitted.average
net.usage.minimum
net.usage.maximum.
--------------------------------------------------------------
esxtop --n for networking
       -- f for options
------------------------------------------------------
How to find if network is the problem
Primarly look at the usage in KBps and see if exceeding the bandwidth of the netwrokinterface
Drop packets
No traffice sent /recived
Errors on physical switch port.
-----------------------------------------------------

Memory Tunning

Memory Metrics:-
Granted :- is total amount of memory configured to all the Virtual Machines in  total.
Active :- is the amount of memory pages the VM touched in recent times.Amount of guests "physical" memory actively used.
Consumed :- is the amount of memory the VM thinks it is going to use.Consumed memory is shared memory and memory that might be reserved but not actually used.Consumed is something like application requires like SQL +Vcenter service may need 3.5 GB but it might not use all 3.5Gb all the time.

----------------------------
Average Memoery Active
mem.active.average on host or VM
Memoery estimated to be used based on recently touched memeory pages -this is the smallest of the active,consumed and granted.
----------------------------
Average memory consumed
mem.consumed.average
Amount of memory consumed by one or all virtual machines is Memory granted - Memmory Saved by sharing
---------------------------------
Average Memeory Swapped in or out
-mem.swapin.average or mem.swapout.average
Amount of memmory swapped in or out of disk.
--------------------------------
Average memoery Swapped
Total amount of memory swapped.
--------------------------------
Average Memory reclaimed by Ballooning
-Mem.vmmemctl.average
-Memory reclamied by using ballooning
----------------------------------
ESXTOP :
h : To add or remove feilds
f : to added fields
----------------------------------
vKernel capacityview free tool and App view