Professional Documents
Culture Documents
Virtualization is use to reduce IT expenses while boosting efficiency and agility not just for
large enterprises, but for small and midsize businesses too. VMware virtualization lets you
(Run multiple Operating System & applications on a single computer, Consolidate h/w to get
vastly productivity from fewer servers. Save 50%/ more overall IT costs Speedup and
simply I Management. Maintenance and the deployment of new Application)
Virtualization is creation of virtual (rather than actual) version of something, such as
hardware platform, Operating system, a storage device or network resources.
Q) What is Hypervisor?
Hypervisor is also called as Virtual machine manger.is a program that allows multiple O.S.
to share a single H/w Host. Each O.S. has the host processor, memory and other
resources. Control the host processor and resources. Make us sure that each vm / guests
cant disturb each other.
Q) What is Hyper v ?
Hyper v is Microsoft enterprise server virtualization platform. Hyper v is a feature of server
2008 and required to run 64-bit CPU.
Q. 2) what is Cluster..?
In Computer System a cluster is a group of servers & Other Resources. Acts like a single
system & enable High availability. And in some cases Load balancing & parallel processing.
Cluster is a logical unit of file storage on H.D. Connecting two or more computers together in a
way that they behave like single computer .Use for parallel processing load balancing & Fault
Tolerance.
Q .3) what is VI Client..?
vSphere Client is the interface for administering vCenter Server and ESXi . When the server is
a vCenter Server system, the vSphere Client displays all the options available to the vSphere
environment according to the licensing configuration and the user permissions. When the server
is an ESXi host, the vSphere Client displays only the options appropriate to single host
management.
Q .4) What is vcenter Server..?
Vmware (Vcenter Server ) provides a centralized platform for managing your Vmware
Vsphere.environment . By this you can manage all ESX servers,vm storage, vm storage vm
networks and more.Quickly and easily deploy servers ,allocate and optimize resources simplify
powerful management tool. Administer your entire vsphere infrastructure from single location.
Q .5) Vmware Virtual infrastructure (VI) Web Access to the ESX Server ?
This is Web access interface.benifit is you can get GUI client for your ESX server without having
to install a client on your local machine. You can perform basic ESX functions .But you cant add
new VMs, or cant work with vm network. Just for check status of your ESX VMs.
Q .6) What is Cluster ?
A cluster is a group of hosts. When host is added to cluster host become part of cluster
resource. Cluster manages all its hosts.(Cluster enable H.A. & D.R.S., We can enable SAN on
cluster).in computer system cluster is a group of servers & other resources .it act as a single
system, and enable H.A. and in Some cases Load Balancing and Parallel processing . cluster is
a logical unit of file storage on H.D. or connecting two/more computers together in such way
that they behave like a single computer. 1 goto inventoary > Right click on Data Center > New
Cluster > Name > Select (H.A, D.R.S,VMOTION)>Enable virtual SAN.>ok. [Add Hosts and
resource pool to cluster.
Q .7 ) what is High Availability?
H.A Monitor Vms and Hosts. If any single ESX server fails, virtual guests on that server will
move to other server and restart ,within seconds. On which they run. Provide scalability
,reliability and usability.
Q .8) What is VMHA? How it work? What are the features of VMHA?
In event of physical server failure affected virtual machines are automatically restarted on other
production servers with spare capacity. Vmware HA allows IT Organization to minimize
unplanned down time, provide affordable H.A.
Q .9) What is the Background process of H.A.?
it continuously monitors all physical servers in a resource pool and detects physical server and
o.s. failures. If a 15-second period elapses without the receipt of heartbeats from a host, and the
host cannot be pinged, it is declared as failed.
VMware HA continuously monitors all ESX Server hosts in a cluster and detects failures. An
agent placed on each host maintains a heartbeat with the other hosts in the cluster and loss of
a heartbeat initiates the process of restarting all affected virtual machines on other hosts. You
create and manage clusters using Virtual Center. When you use DRS. Vmware HA automates
the Optimal placement of virtual machines on other servers and resource pool. After server
failure. Vmware HA monitor Provided by heartbeat info. Provided by VMware Tools Package
installed in each vm.Vmware HA. Cluster.failures are detected when no Heartbeat is received
from given virtual machine.
Q) Vmotion is failing .what are the things that you check where it is failing?
* check the port 8000 is open / not.
*Ensure VMkernel port, Vmotion Option is enabled
*Mkping<vmkernel ip>
Telne 8000
Open console -> vpxa agent is running or not (grer vpxa)
Ensure CD ROM is not Mounted
Ensure VM direct path is disabled.
.
Q .13) what is Fault Tolerance [FT]?
FT provide continuous availability for applications in the event of server failures by creating a
live shadow copy of virtual machine that is always up to date. With the primary virtual machine.
In event of Hardware Outage Vsphere FT automatically triggers-ensure that Zero down time &
preventing data loss. After failure FT automatically creates a new, secondary virtual machine to
deliver continuous protection for that application.
The Primary and Secondary VMs continuously exchange heartbeats. This exchange allows the virtual machine pair
to monitor the status of one another to ensure that Fault Tolerance is continually maintained. A transparent failover
occurs if the host running the Primary VM fails, in which case the Secondary VM is immediately activated to replace
the Primary VM. A new Secondary VM is started and Fault Tolerance redundancy is reestablished within a few
seconds. If the host running the Secondary VM fails, it is also immediately replaced. In either case, users experience
no interruption in service and no loss of data.A fault tolerant virtual machine and its secondary copy are not allowed
to run on the same host. This restriction ensures that a host failure cannot result in the loss of both virtual machines.
You can also use VM-Host affinity rules to dictate which hosts designated virtual machines can run on. If you use
Features
Standard Switch
Distributed Switch
Management
Licensing
Layer 2 Switch
VLAN segmentation
Yes
Yes
802.1Q tagging
NIC teaming
VM port blocking
Private VLAN
Not available
Not available
Network vMotion
Not available
NetFlow
Not available
Yes
Port Mirroring
Not available
Yes
A disk snapshot is a copy of the virtual machine disk file at a certain point in time. It
preserves the disk file system and system memory of your virtual machine.
Snapshot is use for image level backup of Virtual machines. without Shutting them
Down Before doing any activity we do take a snapshot for our precaution. If anything goes
wrong then we can rollback / revert back the snapshot as it was before.(if we are not sure
about any action/activity we should take a snapshot for our safer side. If anything goes
wrong we can rollback the snapshot ). snapshot is created in the delta file and
updated as changes are made. overhead disk space that contains information
used to manage the snapshots.The maximum overhead disk space varies; it's
based on the Virtual Machine Files System (VMFS) block size:
Block size Maximum VMDK size Maximum overhead
1 MB
256 GB
2 GB
2 MB
512 GB
4 GB
4 MB
1024 GB
8 GB
8 MB
2048 GB
16 GB
.vmsn file: This is the snapshot state file, which stores the exact running state of a virtual
machine at the time you take that snapshot. This file will either be small or large depending
on if you select to preserve the VM's memory as part of the snapshot. If you do choose to
preserve the VM's memory, then this file will be a few megabytes larger than the maximum
RAM memory allocated to the VM.This file is similar to the VMware suspended state
(.vmss) file. A .vmsn file will be created for each snapshot taken on the VM; these files are
automatically deleted when the snapshot is removed.
Creating snapshots
You can create snapshots either through the Snapshot Manager in the vSphere Client or
using the vmware-cmd command line utility directly on the ESX Service Console or through
the vSphere CLI. With this command, a VM can be either powered on or off. It can also be
suspended when creating a snapshot. If the VM is powered off you will not have the option
to snapshot the virtual machine's memory.
Snapshots can be managed using the vSphere Client by connecting either directly to an
ESX server or by connecting to vCenter Server. If you choose to use the command line
interface (CLI) instead, the syntax for creating snapshots is vmware-cmd createsnapsho
You can Delete or revert to snapshots using either the vSphere Client or the vmware-cmd
command line utility. Snapshot Manager in the vSphere Client offers more flexibility and is
easier to use than the vSphere CLI. One important distinction between the "Revert to
Snapshot" option in the vSphere Client and the Snapshot Manager is that revert simply
takes you back to the last snapshot taken, while Snapshot Manager gives you the flexibility
to choose a specific snapshot to revert to. This is called "Go To" in Snapshot Manager.
If you use vmware-cmd, the syntax is vmware-cmd removesnapshots, which removes all
snapshots, or vmware-cmd revertsnapshot.
Q .17) What is Template` in Virtualization?
If we want to build a new server we cant take from template.(we can create by right clicking
on installed server ).Templates are nothing but a Server Clones. If any server goes crash &
Suddenly we have to Migrate the clone from Template. A VMware template (also callled
a golden image) is a perfect, model copy of a virtual machine (VM) from which an
administrator can clone, convert or deploy more virtual machines.Templates save time and
avoid errors when configuring settings and other choices to create new Windows or Linux
server VM. A clone is a copy of a virtual machine. A template is a master copy of a virtual machine that can be
used to create many clones
1) .nvram file: This small file contains the BIOS that is used when the VM
boots. Whatever changes are made to the hardware configuration of the VM
are then saved in the NVRAM file. This file is in binary format and if deleted it
will be automatically re-created when a VM is powered on[Bios can be
access F2 ].
2) .vmx file: This file contains all of the configuration information and
hardware settings of the virtual machine.it contain RAM size, network
interface card info, hard drive info and serial/parallel port info), advanced
power and resource settings, VMware tools options, and power management
options. While you can edit this file directly to make changes to a VM's
configuration.
3).VMDK files:
VMSD file consists of the name of the VMDK and VMSN file used by each
snapshot, the display name and description, and the UID of the snapshot.
7) .vmsn file. This file is used with snapshots to store the state of a virtual
machine when a snapshot is taken
8) .log file. LOG files are created to log information about the virtual machine
and are often used for troubleshooting purposes. A new log file is created
either when a VM is powered off and back on or if the log file reaches the
maximum defined size limit. The amount of log files that are retained and the
maximum size limits are both defined as VM advanced configuration
parameters (log.rotateSize and log.keepOld).
9) vmxf file. This file is a supplemental configuration file, VM teaming where
multiple VMs can be assigned to a team so they can be powered on or off, or
suspended and resumed as a single object.
10) .ctk file. VMware CTK files list any changes made to the VM between
backups, The CTK file stores information about what VM information blocks
changed, avoiding unnecessary block backups [.vmem virtual machine paging
file and the .vmtm configuration file for team data].
1. Hardware Abstraction
Hardware abstraction reduces human effort and downtime associated with
hardware changes, breaks, modifications, etc. This also keeps you from locking
into specific hardware or vendors. Need to upgrade RAM or CPU.
2. Ease of Migration
This plays on the first statement. Not being tied down to particular hardware allows
you to easily and quickly move a virtual machine (or a copy of the machine) to
another physical host or hosting location. This is a huge bonus for maintenance,
load balancing or disaster recovery.
3. Encapsulation of Storage
Encapsulation of storage enables massively simplified total system backup and
restore, enabling extremely rapid bare metal restores. Your entire machine is a set
of files. It can't get much easier than that.
4. Snapshots
Snapshots allow for simplified testing and protection from bad changes. If you mess
up your physical machine you might be stuck fixing your issue for hours, days, or
worse. If you mess up your VM just roll the snapshot back to the previous state.
Done! This alone is invaluable.
5. Ease of Archiving
Ease of archiving old systems (zip and store) is a huge asset. Once you are done
with a machine you can power it down and copy the files off to stale storage. Need
that machine again? Copy it back over and fire it up in minutes.
6. Ease of Growth
Virtualization eases you into figure growth with options for "pay for" add-ons like
HA, vMotion, etc. Some of these features are free depending on selection platform
(Hyper-V, Xen). With many hypervisors it is as easy as applying a new license key
to unlock new features that can greatly improve your datacenter's functionality.
Start small and work your way up as you grow. Virtualization allows you to be
flexible in implementations.
8. Workload Consolidation
~2-100 workloads can be placed on a single piece of hardware reducing physical
purchases and consumed rack space dramatically, as well as lowering energy and
cooling costs. Rather than needing to put in a purchase order for a new server, you
can have a new virtual machine spun up in minutes.Most physical boxes are
incredibly under-used because of software limitations (such as the need to
separate applications or roles from each other). You can keep these separated
while running them on the same hardware.
.There really is not a host operating system beside the Hypervisor. If you are using Type -2
Hypervisor like VMware server / virtual server.
Guest System [Guest Operating Systems] is virtual guest/ VM. That is installed under the host
Operating System. Is whatever operating system. The guests are the VMs that run on your
virtualization platform.
ESX (Elastic Sky X) is the VMwares enterprise server virtualization platform. In ESX, VMkernel is
the virtualization kernel which is managed by a console operating system which is also called as
Service console. Which is linux based and its main purpose is it to provide a Management interface
for the host and lot of management agents and other thrid party software agents are installed on the
service console to provide the functionalists like hardware management and monitoring of ESX
hypervisor.
ESXi (Elastic sky X Integrated) is also the VMwares enterprise server virtualization platform. In
ESXi, Service console is removed. All the VMware related agents and third party agents such as
management and monitoring agents can also run directly on the VMkernel. ESXi is ultra-thin
architecture which is highly reliable and its small code-base allows it to be more secure with less
codes to patch. ESXi uses Direct Console User Interface (DCUI) instead of a service console to
perform management of ESXi server. ESXi installation will happen very quickly as compared to
ESX installatio
Q .24) How memory is allocated to virtual machine?
Example assume 4 GB of physical RAM avail to run the virtual machine. Requirements: Need to
create the 4 virtual machine with 1 GB RAM each. First virtual machine will run with 1 GB and
leaving the 3GB to the other virtual machines. After configured 3 more virtual machine with 1GB
each. Upto now all the machines will run as normal.What happens when we launch a fifth
machine will it run ? ANSWER is YES
There are 3 Technologies used to manage the memory.
1) Idle Page Reclamation.
2) Transparent Page Sharing: identical memory pages are shared among VM to reduce
total number os memory pages need.
3) Balloon Driver This driver comes with VM tools. By this technology the driver forces a
VM to use less memory than its configured maximum. The Balloon driver requests
Memory from the guest Operating system within Virtual machine and then passes that
memory back to Hyper-visor for use Other VM.
Using these technologies ESX/ESXI will reclaim memory pages that are not being actively used
by VM, clean-up the reclaimed pages are reallocate those memory pages to other VM
Q .26) What is D.R.S, How does D.R.S. Works ? & What are the requirements to confg it?
A VMware DRS cluster is a collection of ESX/ESXi hosts and associated virtual machines
with shared resources and a shared management interface. Before you can obtain the
benefits of cluster-level resource management you must create a DRS cluster. When you
add a host to a DRS cluster, the hosts resources become part of the clusters resources. In
addition to this aggregation of resources, a DRS cluster supports cluster-wide resource
pools and enforces cluster-level resource allocation policies.
Load Balancing: DRS spreads the virtual machine workloads across vSphere hosts inside a cluster and
onitors available resources for you. Based on your automation level DRS will migrate
VMware vSphere vMotion) virtual machines to other hosts within the cluster to maximize Performance.
Distributed Power Management: VMware Distributed Power Management (DPM) is a pioneering
new feature of VMware DRS that continuously monitors resource
requirements in a VMware DRS cluster. When resource
requirements of the cluster decrease during periods of low
usage, VMware DPM consolidates workloads to reduce power
consumption by the cluster. When resource requirements of
workloads increase during periods of higher usage, VMware DPM
brings powered-down hosts back online to ensure service levels
are met.
VMware DPM allows IT organizations to:
Cut power and cooling costs in the datacenter
Automate management of energy efficiency in the datacenter
irtual Machine Placement: You can control the placement of virtual machines on hosts within a cluster,
by assigning DRS affinity or antiaffinity rules.
Resource Pool:
A VMware resource pool is the aggregated physical compute hardware --CPU and memory,
as well as other components -- allocated to virtual machines (VMs) in a VMware virtual
infrastructure
The VMware resource pool manages and optimizes these physical resources for virtual
systems within a VMware Distributed Resource Scheduler (DRS) cluster.
Administrators use VMware vCenter, third-party tools, or command-line interfaces (CLI) like
esxtop to monitor resource pools, gathering detailed CPU and memory statistics. End users
should not make changes to the resource pools.
Working of DRS?
How Does VMware DRS Work?
VMware DRS aggregates computing capacity across a collection of servers into logical
resource pools and intelligently allocates available resources among the virtual machines
based on pre-defined rules that reflect business needs and changing priorities.VMware DRS
allows users to define the rules and policies that decide how virtual machines share resources
and how these resources are prioritized among multiple virtual machines.
what is the default invocation period for DRS. Can we change this. If yes then how?
Ans: The default invocation period is 300 seconds (5 minutes). But this can be changed via the
configuration file vpxd.cfg. We have to change the value of <pollperiodsec> as shown below:
<config>
<drm>
<pollperiodsec>
300
</pollperiodsec>
</drm>
</config>
Just change the value 300 to a custom value defined by you. The range of supported value is 60
secs to 3600 secs.
DRS uses this information which is presented by Esxi hosts to vCenter server for calculating the
load balance and proposed migrations in case of cluster imbalance.
Q .27)
Q .28)
Q .29)
Q .30)
Q .31)
Q .32)
Q .33)
Q .34)
Q .35)
Q .36)
Q .37)
Q .38)
Q .39)
Q .40)
Q .41)
Q .42)