Wednesday, 18 March 2015

Calculating Virtual CPUs


This blog will help you to understands the difference between PCPUs, LCPUs, vCPUs.

When HT is not present or not enabled called A singled physical CPU core (PCPU)
When HT is present and Enabled called A single logical CPU core (LCPU)


As per VMware PCPU and LCPU both same.

Example 1:
If a host has two eight core processors and HT is not present or not enabled, that host has 16 physical CPUs (8 Cores x 2 processors = 16 PCPUs)

Example 2:
If a host has two eight cores and HT enabled, that host has 32 Logical CPUs.
(8 Cores x 2 processors x 2 threads per core = 32 LCPUs)

In virtual machine, processors are referred to as virtual CPUs (vCPUs). When an administrator adds vCPUs to a virtual machine, each of those vCPUs is assigned to pCPU and also actual pCPU may not always be the same.

How to Calculate vCPUs:

For better virtual machine performance (3: 1) or (5:1) = (3 vCPUs: 1 pCPU) or (5 vCPUs: 1 pCPU)

In vSphere 5.0, there is a maximum of 25 vCPUs per physical core. It means the ratio is 25:1.

If the ratio (3 vCPUs per 1 pCPU)
From example 1: ESXi have 16 PCPUs, if the ratio is 3:1; the total vCPUs is 16*3 = 48 vCPUs.
From example 2: ESXi have 32 LCPUs, if the ratio is 3:1; the total vCPUs is 32*3 = 96 vCPUs.

If the ratio (5 vCPUs per 1 pCPU)
From example 1: ESXi have 16 PCPUs, if the ratio is 5:1; the total vCPUs is 16*5 = 80 vCPUs.
From example 2: ESXi have 32 LCPUs, if the ratio is 5:1; the total vCPUs is 32*5 = 160 vCPUs.

Note: In vSphere 5.0, there is a maximum of 25 vCPUs per physical core and administrators can allocate up to 2,048 vCPUs to virtual machines on a single host.

Thursday, 16 May 2013

Basic ESX Network commands

1. To check how many network cards connected to ESX.

Login to esx server with credentials. use command esxcfg-nics -l
[root@server root]# esxcfg-nics -l

The output appears similar to:
The output is showing two nics are connected to ESX i.e vmnic0 and vmnic1 and it will show mac address of nic cards also


2. To check list of current virtual switches availble in ESX server
[root@server root]# esxcfg-vswitch –l





The output showing that one vSwitch is created to ESX server. i.e; vSwitch0

3. How to creating new virtual switch with command line
[root@server root]# esxcfg-vswitch -a vswitch2
'-a' is for creating
vswitch2 is for name of the vswitch.
vSwitch2 switch showing that default  num of ports is 64, Uplinks nill, because we are not connected nic card to new switch

4. Create service console port group on this new switch "vSwitch2"
[root@server root]# esxcfg-vswitch -A "Service console" vSwitch2
virtual switch vSwitch2 is created port group called service console, the service console is not connected with any vmnic. So i am uplink the nic card to new vSwitch2

5. Uplink the nic card to new vSwitch2
[root@server root]# esxcfg-vswitch -L vmnic2 vSwitch2



The new vSwitch2 is now connected with physical nic card is vmnic1. 

6. To Create the vswif (Service console)  interface;
 [root@server root]# esxcfg-vswif  -a vswif0 -i 192.168.1.100 -n 255.255.255.0 -p "service console"



Monday, 22 April 2013

Cloud Computing Concepts



What Cloud Computing Means


A cloud is a powerful combination of cloud computing, networking, storage, management solutions, and business applications that facilitate a new generation of IT and consumer services. These services are available on demand and are delivered economically without compromising security or functionality.
This will give people access to services any time, on any device, anywhere in the world.

To take full advantage of cloud computing, enterprises need to evolve their IT strategy to achieve greater business value through the improved cost-savings and productivity that cloud services offer. Service providers need to offer and monitor cloud computing services to serve their customers even more effectively while improving profitability.
  
Service models:
Cloud computing providers offer their services according to several fundamental models  Deployment models:
1. Infrastructure as a service (IaaS),
2. Platform as a service (PaaS), and
3. Software as a service (SaaS)
4. Network as a service (SaaS)



 1. Infrastructure as a service (IaaS):

In the most basic cloud-service model, providers of IaaS offer computers - Virtual machines, Servers, Storage, Load balance and network etc..

 2. Platform as a service (PaaS): 
In the PaaS model, cloud providers deliver a computing platform typically including operating system, programming language execution environment, database, and web server. Application developers can develop and run their software solutions on a cloud platform without the cost and complexity of buying and managing the underlying hardware and software layers. 
EX: Execution environment, database, and web server, development tools etc..

3. Software as a service (SaaS):
In the SaaS model, cloud providers install and operate application software in the cloud and cloud users access the software from cloud clients. Cloud users do not manage the cloud infrastructure and platform where the application runs. This eliminates the need to install and run the application on the cloud user's own computers, which simplifies maintenance and support.
EX:CRM, Email, Virtual Desktop, Communication and games etc..

4. Network as a service (SaaS): 
NaaS involves the optimization of resource allocations by considering network and computing resources as a unified whole

Friday, 19 April 2013

Install ESXi 4.0 on VMware Workstation 9


Install ESXi 4.0 on VMware Workstation 9

Today i am creating documentation for how to install ESXi in VMWare workstation 9.

VMware ESXi is a bare metal and smaller footprint version of ESX that does not include ESX's Service Console. It is available as a free download from VMware though certain features are disabled without the purchase of a vCenter license.
  1. Before installing ESXi server in Your VMWare workstation, pls enable Intel VT Technology from BIOS of your Laptop/Desktop/Server.
  2. If you don’t vmware account please create from below link. https://my.vmware.com/web/vmware/registration 
  3. Once create account or login from existing account download ESXi ISO image from VMWare official website https://my.vmware.com/group/vmware/info?slug=datacenter_cloud_infrastructure/vmwar e_vsphere_hypervisor_esxi/4_
  4. Go to VMWare Workstation  Select Tab from FILE -->New Virtual Machine 
  5. Select Typical from  New Virtual Machine Wizard 
6.  Select Installer disk image file (iso) and browse image of ESXi 4.0 image. It will automatically 
 detect type of OS.
7. Click Next
  
8. Now the virtual machine is ready, but we have to customize hardware, Uncheck Power on this virtual machacine and click Finish 
9. After creating virtual machine go to edit virtual machine settings. ESXi installation is very easy compare to other Operating Systems.
10. ESXi 4.0 minimum 2GB RAM is required leave it as a default, from processor option check Virtualized Intel VT-x /ETP is check (Enabled) or not.
11. Add extra NIC cards from Add option. Check from CD/DVD is connected or not and check correct iso image is selected. And remove unnecessary device Floppy, USB Controller.

12. Power on the Virtual Machine. Select ESXi Installer and press ENTER.
 13. Press ENTER to install ESXi Server


14. Read and accept END USER LICENSE AGGREMENT. To accept EULA Press F11 from keyboard.
15. Chose right Hard disk and press Enter to continue Next option.
16. Press F11 to install ESXi
 17. Press Enter to Reboot ESXi Server.
18. Installation is completed successfully. See the welcome screen of ESXi server. Next step is configuring ESXi server.  
  
19. Press F2 is to Customize ESXi system, change password of ESXi server. Press Enter to Change Password from the new window.
20. Skip Configure Lockdown Mode option.
21.  From Configure Management Network option, you can add more nic cards; modify IPV4, DNS, and Hostname.
        21.1 From the Network Adapter add or remove nic cards.
        21.2 VLAN is optional leave it now
22.Change IP Address of ESXi server as your network team given to you. Select option Set Static IP address and network configuration; Change ip address press enter to save the changes.
23. IPV6 leave as default setting.
24. DNS Configuration- Change DNS server address and Hostname.
25. Leave custom DNS Suffixes. Press esc it asks changes to be save. Press Yes.