Documente Academic
Documente Profesional
Documente Cultură
rl-
E
u VMware
E ESXi: ESXi is a software developed by \Mware Company, Which converts hardware servers into
multiple softrvare servers.
E Hards-are Requirements:
. 2GB RAM
o IGB Hard disk
.
.L .
2 GHz Processor
(Jne or more gigabit Ethernet controllers.
L,
IJ ESX Yersions:
u
T-:
ESX 1.0
ESX L5
ESX 2.0
ESX I :i
ESX 3.0
ESXmsxi 3.5
.
ESX,trSXi 4.0
u
ESX/ESXi 4.I
ESXi 5.0
E ESXi 5.1
E Hardware requirements:
L
l-
o
o
o
Two 64-bit bit CpUs
2.0 GHz Processor
t-
t:
o
o
2 GB RAM
2GB Hard disk
DATABASE: Micros\oft SeL Server 2005,oracle l0gRt,oracle l1g
. One gigabit Ethemet conrroll?rs
L:
t:
U
Software Requirements:
rj
L-
Microsoft Windos,s Server 2003 Standard, lintcrprise or Datacenter R2 64blt
F
D
ID
t
4.,
|o
t
Microsoft Windows Server 2008 Standard, Enterprise or Datacenter SP2 64bit
L
Microsoft Windows Server 2008 Standard, Enterprise or Datacenter R2 SPl 64bit
t-
Microsoft Windows Server 2008 Standard, Enterprise or Datacenter R2 64bit
u
Miclosoft Windows Server 2008 Standard, Enterprise or Datacenter SP1 64bit E
VSphere Client: Vsphere client is a windows based application is used to manage ESX seryer and
:
VCenter server, €
requirements: I
CPU I CPU I
Processor- I GHz Processor t
RAM_]GBRAM t
Harddisk-2GB
t
€
Microsoft .net 2.0
€
Microsoft .net 3.0 SPl
€
Microsoft Visual J#
L
Virtualization: It is a software which allows to create virtual hardware and multiple Mrtual machines b
and allows to run multiple OS on a single Physical server.
I
Virtual Machine: Virhral machine is a software machine that likes a physical machine. It can runs
operating system and applications. t
Uses: e
.vmx: it is configuration file without this file we can't power on virtual machine
(
(
.vmdk: This is \M disk file which stores the content ofthe VM hard disk.
.log :This file can be useful in troubleshoot parts when encounter the problen.t. (
.nyrarn : This file is used to store machine BIOS. (
(
.vswp : This file will be automatically created when \rM will power on and automatically deleted
I
(
_(
I
-!
r-
t-
lL
v
v
lv when VM will power off.
tE Datacenter: A datacenter is the primary container ofinventory objects such as hosts and virtual machine'
l'r From the datacenter, you
clusters to a datacenters.
"an
add organize inventory objects. T)?ically, you add host, folders' and
I
t- r.-
Host: host is a computer that uses viduaiization software such as ESX or ESXI, to run virtual machine'
./r.
hosts provide the CPU memory resources that virtual machine use and give virtual machine access
to
L: storage and network connectivity.
L: Ways to access Host:
E
t: -> By using Vsphere client.
Cluster: Cluster is a group ofhosts. when you add a host to a clustel, the host resource becorne part of the
L: clusters resouces. The cluster manages the resource of all hosts within it.
L: flypervisor:
L:
Hypervisor is a program that manage the virtual machine. It also act like virtual machine manager that
L: manages many virt.,al machine from one place. It allow multiple operating system to share single
l-. hardware hosi. Each operating system appears to have the host's processor, memory, and other resources
all to itself.
L
1-
1. Baremetal Hypervisor : ln this application we can directly install the ESX in brand new machine.
2. Host Hypervisor
1:
l: Vmotion: It used to migrate virtual machines flom one host to another host u'hile it is running.
l_- Pre requisites:
F
I
_j
t
!
j
a
. Shared storage (multiple hosts are connected to same storage)'
o Same CPU familY and Vendor
s
o
o
Vmotion must be enabled on source and destination
It should be accessed by same management network
i
o e
No CD/D\ID mount'
. No snapshot. I
Background Process: I
o state ofvirtual rnachines will be captured as Bitmap
images that bitmaps a
All running
Move frotrsource to destination'
{
. Suspend vms access at source and Resume vms access at
destination'
. Onie vmotion will be completed all temporary f,rles will be
deleted at source' (
-> r/c on vrn -> migrate -> change host -> select destination -> finish'
store to another while It is
SVmotion: It used to migrate virtual machine files and disks from one data
runnlng.
Pre requisites:
Backgound process:
oVirtualmachinefilesanddiskswillbecreatedasBlocksthatblocksmovefromsourceand
. destinatiott.
. Esx ost performs fast suspend and resumes of the'"T n'
. . \M wili continuously running on the destination data store and source files will be deleted.
In Vsphere 4.0, ifyou have a snapshot we can't do the SVmotion'
Contiguration:
r/c on vm -> migrate -> change datastore -> select destination -> finish
SDrpshot: Snapshot is a copy of running state of virtual machine. You can create a snapshot while it is
l'r er oL polver off, suspend mode.
\\hen )'ou create a snapshot ofvm it will occupies the same size of the.vmdk file in data store. Ifyou
.
'"ke more snapshots more space willbe occupied. But it is useful when we apply patches or'install updates
=:ie upgrades on the oS in the \&l If anything goes wrong with the vMafter doing these tasks, we can
i;mediately revert back to the current working state. In this way we can save our time w.ithout recreating
\11 and reimaging the os on to !,rn.
.r msn : This file stores the running state of\M when you will take a snapshot.
.msd : This is a centralized fiie f61 stefi1g ilf6nnation and meta data about snapshot.
delta.r'mdk :
clone: clone is an Exact copy ofvm with same configuration and installation without peform any
additional settings.
You can create a clone by R/C on vM and select clone. clone can power on and can make any changes.
By using customized guest operating system We can ch*g" .o-" p.op".ties of clone such as -Computer
name, network and ip address. clone is used for testing and developmint environments where you
want
create, test and wit an exact copy of rrn without disturbing production server to crete a clorre of
production vm.
Template:
Te..rplate is a master copy ofvirtual machine. By using tcmplate we can deploy multiple virtual
machines. Template cannot be power on and rve cont make ihanges. TempLte can be
created by clone to
template and convert a vm to template. template can be used for
f,roduction environment.
HA High Availability:
HA is a cluster level feature. If one esx ser,,er will be failed then all r.rns on the host will automatically
rdboot to another host with minimum downtime.
Prerequi sites:
Background process:
I[ a cluster first 5 hosts rvill be act as prirnary hosts and remaining hosts will act as a secondary hosts.
I1-A.continuously tnonitors ali esx servers in a cluster and detect ihe server failures. Whel you cnable HA
iu cluster an agert rvill be installed on each hosl that ageDt is called AAM(FDM IN 5) Automatcd
5
I
'
'
5
s
availabilitymanager.Anagentplacedoneachthatmaintainstheheartbeatswithanotherhostthatagent
willcommunicatewitntr'eott."rug"ntinuho.t".,"'yssecondsandlossofheartbeatsinitiateresta(
e
process of all affected vm's on another host' S
DRSisaDistributedResourceScheduler.Itisaclusterlevelfeature.Itcontinuouslymonitorshigh
,rtilization and load balancing between esx servers
in a cluster'
Prerequisites:
Background Process:
DRS contiluously monitor all servers in a cluster. If one host have healy utilization then some Virtual
machiles on the host lvill be migated to another host. DRS can be performed by using vmotion and
mad,ematical algorithms.
Auromation [cvels:
. \lanual
o Partial automated
o Fully automaled
Partial Automated: VM are placed on host at power on then VC suggests the migration recommendation
on a \iN4.
Fully Automated: vM are placed on host at power on then automatically migrated to another host.
DRS rules:
o Affinity Rule : Two or more VM's are always running on same host
o Anti A{finity rule; Iwo or more r,ms should not 6e running on same host.
rr
IIA ORS
If host will faits then all VM's on the host will -> ifone host has high utilization then
be reboot to another host some VM's are migrate to other host.
u
L.
HA is Reactive -> DRS is Proactive
u
IIA has minimum Downtime -> DRS has no downtime
r
r
o
SDRS:
HA will works when VC fails -> DRS will not work when VC fails.
SDRS is automation process of SVmotion. storage DRS is a new feature introduced in vSphere 5.0
providing smart virtual machine placerrent and load balancing mechanism based on vo and space
H
rrj
capacity. Storage DRS will helps decreasing operational effort associated with the provisioning ofvirtual
machine and monitoring ol the storage environmenl.
rJ
l.' Storage DRS Benefits:
u .
o
Reduce IT cost and improves agility
E
F
1:
t
t
!
I
I
I
. Improvesapplicationperformance
. Fixed
. MRU(Most Recently Used)
o Round Robin
then Path B will
path B insleep rnode IfpathA will be failed
Fixed: The data flow though path A then goes to sleep mode'
;;;". wh;;;;"; rath a"wiit ue r"paired then prth B asain
MRU:InthisthedataflowthroughpathAthenpathBinsleepmodelfpathAwillbefailedthenPathB
path B fails then path A will
in st""p -oa" *t
will activate. whenever path A iill be repaired but "n ".rer
active.
ways parallel'
Round robin: In this the data flow ftom both
Resourcepool:ResourcepoolisapoolofCPUandMemoryallocationfromasinglehostoracluster.
y;;* any resource pool into smaller resource
partitior.r
Resource pool U" f,i"r-"ii"ui"ii"";,"d"
p""i. ," ai"ia" "* assign resource to different groups or different purpose '
^.d
Prerequisites:
.VerityVsphereclientisconnectedtotheVcentel.Ifthec,lientisconlrecteddilectlytotheesx
seNer you cannot create a resource pool'
. to create a resource pool'
Make sure you have pennissions suificient
. the clu""t, poot object is parent to the resource pool
Verify
"""opt'"t "ifl"t't"tou'"" 8
u
t-
l_'
t't, Ren- Derice Mapping (RDM) use cases & Limitations:
l"
l.'
Ra*' derice mapping (RDM) is method to provide direct access to a LUN on a iscsi or fibred channel
siLTase s\:tem for a virtual machine. RDM is basically a Mapping file acts as a proxy for a raw physical
soraae der.ice placed in a VMFS volume. Virtual Machine can directly access the storage device using
l' RD\{ and RDM contains metadata which controls the disk access to the physical device.
rj
r-'
f se cases for Raw Device Mapping:
u
u
i.For \licrosoft cluster configuration in Virlual machine (Virtr.ral-to-virtual or physical-to-virtual)
l, LFLIr running SAN management software (Storage resource management software, storage array
r-
r
.:rf,pshot software, replication software, etc) inside a virtual machine
-i.For any application running in a virtual machine that needs to access a device using hardware-specific
r SCSI commands
5.RDM is useful in physical-to-virtual conversion operations by avoiding migration ofa large data LUN
to a VMDK.
E
r
2. physical cornpatibility mode
rr Virtual compatibility mode preserves the ability to perform virtual machine snapshots.
rr
-> VCB (\Mware consolidated backup) support is not possible, because VCB requires \Mware
snapshots
-> Cloning of VMs that use physical mode RDMs is not possible
lj -> Converting VMs into templates that use physical mode RDMs is not possible
Alarms/Events:
E Alamrs: it is used to know the status of the resource usage for a \M.
E
N
I]
5
S
S
S
b
Events: used to monitor the tasks that are taken place on the ESX server or in VC. L
Vswitch: Vswitch is a software switch and each host has one vswitch. One side of the Vswitch are port s
groups that are connected to virtual machine
s
And other side are uplinks that are connected to the physical adapters on esx server. e
Vswitch can be classified into two tlpes i
o Standard switch t
. Distributed switch
t
Standard switch: (
Standard switch is a software switch used to co nect multiple hosts at host level. (
Distributed switch: t
Distributed switch is a software switch. it is used to manage multiple hosts at datacenter level. (
Uplink: Uplinks are associate with physical adapters that provides corurection between physical network {
and virtual network.
t
Port groups: Port goup segregates the netrvork traffic over esx server. i
Port group can be classihed into tkee t)?es they are i
. \^4 network port group
(
. VM Kernel port group t
o Service console port group
(
\4\4 network: It is used for virtual machine communication
Sen ice console: It is developed based on red hat Linux operating system used to manage esx servers.
Security policies: 1
. Promiscuous mode i
Promiscuous mode: If promiscuous mode set to accept segregates the network traffic to all Virtual
machines then all \M's were able to see the communication. If promiscuous mode set to reject only one
\A,{ was able to see the communication.
MAC address change: when you create a new virtual machine the configuration r.vizard generates the
MAC address for that machine, you can see it in .r,rnx file. if it doesn't rnatches with the MAC address in
the OS this setting doesn't allow inconing traffic to the \M. So by setting reject option both MAC
address will be remain same, and the incoming traffic will be allowed to the VI4.
10
u
u
u
E Forsed Transmits: when you create a new virtual machine the confrguration wizard generates the MAC
ad&er. f.-rr that machine, you can see it in .vmx file. if it doesn't matches with the MAC address in the
OS this -tting doesn't allow outgoing traffic from the VM. So by setting reject option both MAC address
rill be remain same, and the outgoing traffic will be allowed from the \4\l1.
H
u
\l--l\:
te
.{ \ILAN is a logical configuration on the switch port to segment the IP traffic. for this to happen,
po:t must be trunked with the correct \{LAN ID
u
u
\ic Teaming: A group ofnic cards are called Nic teaming. Ifthe data flow from one nic card another nic
c:rd in standby mode. if the one nic card will lail immediately another nic card will active.
Lpdate \Ianager: Update uranager is a tool. It is windows based application. it is used to update patches
:-rd make upgrade versions.
H
r
Prerequisites:
u
Processor: 2GHz Processor
. Memory: 2GB RAM if vCenter Update Manager and r.{enter Server are on different machines
4GB RAM, if vCenter Update Manager and vCenter Server are on the same machine
. Network I GB
Database Requirements:
H .
.
SQL Server 2005
E
SQL Server 2008
u
l:
.
.
SQL Server 2008 Express 32l64bit (Experimental support in Update
Oracle 10g
I only)
rr . Oracle 1lg
Software Requirements:
u
(
Storage: Storage is a device which is used to store the virtual machine files and disks.
l-
l- Stores virtual machine files remotely on an FC storage area network (SAN). FC SAN is a specialized
hish-speed network that connects your hosts to high-performance storage devices. The network uses Iribre
Channel protocol to transport SCSI traffic fiom virtual machincs to the IC SAN devices.
E 11
F
ll
!
a
s
s
s
To connect to the FC SAN, your host should be equipped with Fibre Channel host bus adapters (HBAs).
e
Unless you use Fibre Channel direct connect storage, you need Fibre Channel switches to route storage
traffic. If your host contains FCOE (Fibre Channel over Ethemet) HBAs, you can connect to your shared
Fibre Channel devices using an IP network.
€
Internet SCSI (iSCSI)
a
Stores virtual machine files on remote iSCSI storage devices. iSCSI packages SCSI storage traffic into
i
the TCP/IP protocol so that it can travel through standard TCP/IP networks instead ofthe specialized FC
network. With an iSCSI connection, your host serves as the initiator that communicates with a target,
i
located in remote iSCSI storage systems. €
€
ESXi offers the following tlpes of iSCSI connections:
{
Hardware iSCSI
(
Your host connects to storage through a third-party adapter capable ofoffloading the iSCSI and network C
processing.
t
Software iSCSI
€
Your host uses a software-based iSCSI initiator in the \Mkernel to connect to storage. With this tlpe of
ISCSI connection, your host needs only a standard network adapter for network connectivity.
i
Netlvork-attached Storage (NAS)
i
!
Stores virtual machine files on remote flle servers accessed over a standard TCP/IP network. The NFS
client built into ESXi uses Network File System (NFS) protocol version 3 to cormunicate w.ith the i
NASA{FS servers. For network connectivity, the host requires a standard network adapter. (
Stores virtual machines on direct-attached SAS storage systems that offer shared access to multiple hosts. i
This type of access permits multiple hosts to access the same VMFS datastore on a LUN. I
WWN: it is worldwide nehvork. Every HBA has one unique name that is called WWN.
(
When you ehabled lockdown mode prevents remote users from logging directly into Host
Linked modc : Linked mode is used to connect two or more Vcenter servers at a time. I
Ballooning: it is used rvhen the host is running out ofrrachine memory or VM hits a limit then kemel
1,)
E
L:
u
L:
u
U
u
u
:=:-. :: reciaim the memory. Ballooning drivers installed inside the guest operating system,as pafi of
..1,h ::e icstallation tools and it is also fnown as VM memctl driver . when there is available memory in
--:. :::liae rhe guest operating system will retums the memory from its fiee lists. when there is memory
the
u
L:
:: :-: a"ailable thi guesi operating system has its own memory management technique which decided
:r,::: f?ge need to reclaim.
to
u Conr ersions:
E
u
1. P1\' (Physical 2 Virtual)
u I \-l\'
Converters:
(\rirtual to Virtual)
u
r_:
L:
I Standard alone Converter
u
2. \rcenter Enterprise Colverter
P2\'Prerequisites:
E
l-:
-> Ar.ry Antivirus running on physical machine, disable antivirus
f:
L:
-> Run CHKDSK and defiagment the driver.
L, Post Conversions:
H
u
-> Remove Moritoring tools, NIC cards and power adapters
L:
L
L
-> Reboot.
\-2\': It is used to makes non ESX readable vifir-ral rlachines to llSX readable virtual machines.
E 13
N
ll
Vmware tool is a set of drivers for virtual machine. It is \,ri\/I level feature used to improve the
performance of virtual machine.
2. NIC <lrivers
3. SCSI drivers
4. Ballooning Drivers
5. Time sYrchronization
-> it support both ESX and ESXi -> it support only ESXi
-> HA agent is AAM -> llA agent is FDM
->HA host approach is Primary and secondary -> IIA host approach is Master and Slave
-> I-IA logs are etc/opt/\Mware/AAM -> IIA logs are etc/oPt/\Mware/FDM
-> \A4FS - 3 .> \MFS -5
-> \M hardrvare versiou - 7 -> \/lr{ hardware version - 8
-> SDRS not available -> SDRS available
-> Vcpu per VM - 8 -> Vcpu per VM - 32
-> RAM per \M - 255 GB -> RAM per \A,{- 1 TB
-> RAM per host - 1 TB -> RAM per host - 2 TB
-> Maximum LUN size - 2 TB -> Maximum LUN size - 64 TB
-> LlJI.ls per ESX server - 256 -> LUNs per ESX server - 256
-> \M swap file size - 255 GB -> VM swap file size - 1 TB
L4
ESX ESxi
-> ES\ has senice console and use CLI -> ESXi has no service console but instead
ofservice console it uses VCLI
-> ES\
suppons thickest version -> ESXi supports thinnest version
-> ESX requires more patches -- ESXi requires lewer palches.
-> ES\ proride greate security -'' ESXi provide Iesser security.
-> ES\ cost is very high like $ 1500 -> ESXi cost is low like $495
-> ES\ partition size is 800 MB -> ESXi partition size is 32 MB
-> ES\ supports scriptable installations -> ESXi doesn't support scriptable through
utilities like kickstartinstallations
-> ESX support active directory integrations -> ESXi doesn't support active directory
throueh 3rd party agents installed on the authentication oflocal user at this time.
sen ice console.
Template Clone
-> Template is a master image of \M from -> Clone is an exact copy of \M with same
\\trich you can deploy multiple \M configuration and installations without
perform addit ional serrings.
-> you can create a template by convert -> you can create a clone by R/C on VM and
a \M to template, clone VM to template. clone
-> Template cannot be powered on and can,t -> Clone can be power on and can make
make any changes. changes.
-> Convert \A4 to template cannot be perfomed -> Clone of \M is created when the power on
rvhen \/I\,I power on
-> you can convert the template back to VM ->you can't convert the clone back to \/]\{
-,Template is usefu) lor production envirolmenrs. -> Clone is useful for testing and development
d
purpose.
)
i Add a LUN to host:
host -> configuration -> storage -> add storage -> select Disk/LUN -> select \MFS version -> data
store name -> specify block size -> finish.
81'using update manager tool, we can update patches and upgrade versions.
steps:
15
-> Attach base line to ESX
-> Reboot.
in 4,4.1
in 5.0
services-sh restart
If it is not pinging
it is not up
ifit is not reboot call VMware ( check the issue whether it is hardware or software).
16
L:
u
u
u
u
u
u
\)I hung:
E
u
L R C on \M -> Reset
3. Through command prompt
If it is not up
E
u vim-cmd vmsvc/power.restart r.mid
u
L:
vim-crnd msvc/power.off vmid
u
u
C drive expansion:
u
u
-> select Hard disk
u
-> copy disk path
u
rL'
-> Remove Hard disk
u
ru
-> Add hard disk
rrlj -> ok
rr
-> increase hard disk size
L:
L 2. list volume and enter
E
L
L7
N
l--
5
e
€
€
€
€
4. Extend.
€
-> in 2008
e
Ric on My computer -> select manage -> storage -> Disk management -> R/C on disk -> click on C
extend volume.
i
VC not responding a
Host -> Configuration -> Networking -> Vswitch properties -> management networking -> edit -> t
Enable Vmotion.
I
R/C on \rM -- Edil sertings - . click o add -> select hard disk -- select disk typggnable Rarv device
mapping. /
Host -> Configuration -> storage -> R/C on data store -> properties -> click on Extent'
Host -> configuration -> storage -> R/C on data store -> properties -> Manage paths -> select Fixed.
MRU, Round Robin.
R/C on \M -> edit settings -> Option tab -> \4vlware tools -> Enable Synchlonize guest time with Host.
One VM has two disks tlow can you move one disk to one data store and another disk to another
data store:
R./C on \M -> Migrate -> Change data store -> select Advance option -> Browse select destinarion data
store -> finish.
Enable SSH:
I{ost -> configuration -> sccurity profile in softrvare -> fircu'all properties -> Enable SSl{
18
Eow can convert Thin disk to Thick :
1. By using SVmotion (R/C on Vm > Migrate -> Change datastore -> select Advance option -> )
2. By using P2V
sol:
-> Connect ESX direct to Vsphere client and then hy to power on (its not up)
-> Unmount the datastorc ( Host -> configuration -> storage -> R/C on datastore -> click on Unmount)
Configure NAS:
Host -> configuration -> storage -> add storage -> NFS -> Server name -> shared folder name ->
datastore name -> finish.
,
IIow can add a network to Switch:
,
a Host -> configuration -> networking -> Add network -> select VM -> give the name and VLANID ->
finish.
!'1I logs:
, Summary -> R/C on data store -> Browse data store -> select \/tr4
r, YC logs:
t Horne -> system logs
19
u
u
rj
rj
u
lj
u
u
Eost Disconnected:
u
u
Host is in disconnected state.
u
,Plng Ip or Host name)
u
ru
pine ILO
(Ping hostname Ilo).
u
u
sen ice vmware-hostd restart, If not done,
u
u
t Reconnect the ESX box from
H
u
svmotion:
u
u
1.
:.
Choose the \IM that being svmotion
t,
Select change datastore
.1. Choose the disk that being migrated and click on the path
E
L, 6.
Choose the datastore where u want to place the r..m.
ok.
L
u
Shared storage between ESX servers ISCSI, Fc, or NFS.
L:
L
L
\'\{kemel interlace on both ESX servers wilh Vrnotion enablcd.
20
N
ll
6. Works with standard switches or DV switches.
1. Ifthe r.,rnachine uses an RDM the RDM must be accessible by the destination host.
Increase the size of VMDK file (OR) C (or) D drive full what to do?
2. R/C the Hot- your name > virtual machine in the inventory and select Edit Settings.
5. Select the Hot - your name > virtual machine in the inventory and click the Storage
Views tab. It might be necessary to click the Update link in the upper- right comer of the
Pane.
7. Verify that the flat-vmdk virtual disk file has a size os 4GB. You might have to click the
8. Lrcrease the size ofthe disk from within the guest operating system:
a. ln the inventory, right click the Hot< Your name> virtual machine and select Open console.
b. Log in to the the guest operating system as user Administrator, with the virtual machine
Administrator password that you recorded in Preparing for the Lab."
c. On the virtual machine desk top , double-click My,computer. Record the value for the total
size ol thc C: drir e._
d. Use rviudows fxptorea to open the fol,Oer Cf dcll\Extpart folder.
e. Double- click the extpart.cxe file.
I In volume to extend, tlpe C:
g. ln sizc to expand thc volumc , type 2048 (to extend the volume by 2,048MB).
h. On the vifiual machine desktop, double click NIl, computer to verify that the C:drive was
21
exended. Record the value for total size ofthe C: drive. . does it differ
from step 9c? .
i- Close the virtual machine console.
--
H
sr Eot to add Datqstore to an ESX server with the assigned LLIN
host and
choose
*-.r-.1i-. -i:::r-'l:il
N
rr
'configuratio
n' tab.
Click Add
i.*-*
:.+._'
f**
L..Y:l:9i:r: .... l
u
E5*iit:.ri.i:ilr!:lr',i"i.tu
storage T-,;-*. --
i,*...,.,."-
button. l**.*.i
I *,-*---,;,,",,,
t*,,,,,,-i
I
L tr:::r----:
:
H
r
r
Choose
Disk/Lun
and click
rL.
Next-
[:
N
r
rr
LJ
rL.
rL
L
E
k 22
H
L
L
t.
I
L
ALUNwill
appear in the
panel if it
was newly
assigned ,
click next to
add it to the t,
\,]\,IFS
!
storage.
!
I
!
23
r.
r-:
r-:
u
u
u
u L;:r
u
rhe ESX
:: s: ip and
rr
specify Connectaon Settings
,-:: i e irti al s lvoe in the n<ormation ured to conneci to thi! ho>I.
Eonnection Settinqt
u
r-:
u
u
u
u
u
u
u
u Click 'Next' to
u
finish the wizard.
ESX host will
u
appear in the left
panel.
u
L.^
lj
rd i i2.2i.'e6!
L-
L'
L, ,{lvpNr so 06 cb:00:00r?$€ 0r
L'
' trru tsaiE :. tsl5h,_.ri1
u
Ij
Poth
vhhh.o:0:2
lo,r.i.dld| ill!"
vtrt$.o:Di1 vit6a0;o 1
hrr6a0:0:3 v 6.0:013 dsk
&k
l-'
lj IIo$.to add Host to vccnter
IJ \'erfir' required Build Sheet Data for Installing Operating System
l'
u 24
-L
t;
t'
I
F & 58lllqry
*
d-i j:te* !i:ua! Eiinc.. !|.+li
& t&eqeourerdc4 . it'r+o
$ u"',.+. . . _........
.l.11L.
11 r..ra to lat-t"'.s. .
;;;;;;; - -
li *-*----*.*,*
tl
'li AddPemirsion... ckl+P
l es'
dh rdi settrnqe...
I -*. *.* *'4"* ..
IL""";"
;,.""
ctrl+atr+N
3. Enter the FQDN of the host, the username "root" and the root account password, and
then click
Next
4. If prompted with a security waming regarding the new host's certificate, click Yes
25
I
r-_
r-:
u
r
H 5. -{ssign either an existing or new license key to the host, and then click Next
H
A5rqr &.xirthg or. new i.enee key to tt,l host,
r-: ara:s
ihr! 9f,ffi!
setlin.r
E
L: i.
E
U
Configure Lockdown Mode, and then click Next
u
u
u
U
rr
L:
u
rJ
8. Select Put all of the host,s
click Next
virtual machines in the cluster,s root resource pool, and then
L'
lJ
IJ
l-
IJ
lj
lj 9. Review the summarf nformation and then click FINISH
TJ
l' \ irtual machinc is unable to polver on
t'l- Pou.er on virtual n.rachine nay fail, ifanother task for V rlachine
aJready Lr progr.ess.
26
E
L;
s
s
s
s
s
s
* V Machine may show error there are not enoug! licences s
Make sure that license server configuration at ESX
level' L
reserve physical memory on the host'
V-"afri." -uV *nfigured to
\
memory is un available'
But the host memory is over committed i! the required
Corngu." tt V-aihine for lower level ofreservation values' t
;H:ilil H;ffito,;^, ;
^d.
" ;;;nrnware HA cluster with.strict admissio1?i::l T*i:i
or missing' €
.^' ;rii;,i r". starting the Vrnachine (Vdisk of swap file)may be un available
affected file'
Loo-[ ifr"'V.*"t" log filJs from the fail to identify host system S
;;;;i;";"y *qui;a uott vr_capable cpU and the vT feature to be enabled in the
BIOS (If VM is 64 -bit) €
Enable VT on Intel.
€
\Machinedoessuccessfullypoweronbuttheguestoscloesn'lstartcorrectly.Theremaybean
ilr"p;;tbti
y tt",,itt"ul hardwares and drives with in the guest oS'
L"i*"", €
i
i
i
i
>T*t n do when a virtual machine does not respond? i
Ifavirtualmachinefailstoanswerpings,oryoucannotconnecttothe\Moverthenetwork,youmayneed (
to:
1. check the status of the virtual machine in vcenter I
2. cornect to the virlual machine console for troubleshooting i
3. force a hard reset on the virtual machine
guidelines:
ln order to perform any or all of those operations, u-se-the following"oi
altematively, the Web Access from a
1. Connect ro the vcenter .;;;, ;i"B the vSphere Client,then read section "Errorl Reference source
browser. If you do not have the vSpliere Client installed,
be downloaded from the vcenter
not found.,, for instructions. No# rnu, the vSphere client can also
not just ftom ESXi hosts'
Server (enter the vcenter server IP address in a browser)'
select "\Ms and Templates" from the home page in the
inventory section:
2. Once connected,
21
L:
u
u
u
L:
u
u
Efi:
EI EI (! .1.se
L:
u
ru
rd H &
u
u
tFxi
6"{ el ffi
u
u
u
u
i--t
ld
SMled
Sddndr*
TadG
*d &rpfi€rio.s
!ffit
.d
Evots
IP;
$l
.L+
irfi
E
u B
r
(
L..
i.
Figure I The vSphere Client home page
You can then select your virtual machine in the left pane, or select the datacenter, then the
Machines" tab on the right, and then search for your virtual machine name:
"virtual
L-
L-
kL'
u
r' =
+
,Vi*uil M3ahine Taspbtes
Nn,ne,stite, Host orG 5t
L, sE,v6tst00l
rj
r
a
& sB_rmtst0cl
rj
l--
l.-
rl-- 28
u
I:
3
t-
!_
5_
t.-
tab'
make sure it is selected' then look at the summary
4. Once vou have found your virtual machine' the \rM icon in
*Srate.. field shows if the vrri'rr'p"*.."i'""'Lr p"*"r.. olf. You can also look at
The
the left pane to determine if it is on or offl
9.10071.187
58!mtst!01
E.la
Figure 3 A Powered on VM
& s8-\$rt{01,r.
E
u
Figure 5 The Porver On command
can also force a hard reset on a powered on VM (iusr like pressing the reset button on a physical
u
YL-.u
sener) by right-clicking the \M and selecting "Power > Reset". Note that you should only reset
u r-:nual machines once you have detennined that they are completely hung as this may otherwise result
in loss of data (some disk i/o rnay still be in memory and not committed to disk).
u
u
\-!ru may also want to check that the virtual network adapter is connected and plugged in the
appropriate port group. Click on "Edit Settings" in the "Commands" panel then select the network
adapter u,hich is used to nomally connect to the virtual machine, and make sure the device status is
"Connected", and that the "Network Connection" has the correct network label selected.
H
u
rL, T
&
EA
g
CPU!
sCSI ronkoller 0
1096 t'18
2
t, G scsl {onkoller 1
Ha.d di.kl
Hard disk2
N
L'
L,
rLJ
Figure 6 Checking the virtual network adapter settings
8. You can also launch a virtual machine console to connect to login the operating system of the yirtual
machine independently of the network availability (a bit like using an RSA2 or IMM adapter on a
rLJ
physical server). Select the "Open Console" command in the "Commands" panel:
ru
L
l_: 30
H
I;
5.
.4,
i-
l sluiDl4n Guett }-
gg srspEnd
)_
& Reli,ltcuelt
!-
L
AA abre io he{ vi$r.lnrchnre
,-
,!
Figure 7 The open console command
that you may
9. A new window will open, and after awhile, the console screen will be displayed Note !-
have to click in the display and move the mouse or t)?e on your keyboard to take the \M out of
screen saver mode if it has been enabled. In order to r"na crnL-etr-DEl to login, you can click i v
the display, then use CTRL-ALT-hsert: |.
i.
t_
command in the operating system, soif the VMware Tools status is showing "OK" in the "General"
panel, it should work and is safer than doing a hard reset'
3l
u
L:
u
u
u
U
U
|
GLEsi I]5 Hidosoft windov:s se.ytr 2008 R2 (6+blt)
'& Velslnnr 7
U
CPU: 2aaPtl
lleryoryr l!96lq8
U
u ONs,"inmei
u
56{mt5t0C1
EnC !:ode: N/A
SiEte:
u
Paner.d Oo
Hostr esrcic Llnla'rde.lbm,cnm
u
U
Figure 9 Thc VN{rYare Tools status
u
u B o*,, ...'r!:
E E{
&&
l,1,!,.1:
aione i., l.ri!'r ri! ilri i"G.h,ne
E
u
Figure 10 The restart guest command
i1. If the operating system is not restarting correctly, you can boot the virtual machine from a CD or D\rD
u
ISO irrage or even a CD or DVD inserted in your workstation. Edtt the settings of the \/tr4, then select
the ''CD/D\|D Drive 1" device, then select "Client Device" to boot ftom a CD or DVD mounted o1't
u lour workstation, or select "Datastore ISO File" and browse to an ISO image on one ofthe datastores.
Refer to section "Error! Reference source not found." for more infomation on console access and
peripheral management.
t,
t:
LI
rEI
4096 MB
2
L'
EA
B
6 SC5I(onkoller t L5l Loqi(S45
L. e
E
5C5I (ontroller l
VlftualDisi
LJ
L'
L:
u
u
u
Iiigure l1 CD/DVD mapping
-1. Ii"ou \\'ant to kno$,what happered recently u,ith that viltual machine, you can sclect the"Tasksand
u
L:
i,r rnts tab:
32
U
l"
J.J
:J
-.j
iJ
Li
J
Des.riptlon, TYpeorTErgetconiainsr' I
i
o re11{2q10
o 19I1r/2010
Recoifiqu.€d Yidual Badtle o /1rEor[
d* rask: R.confiq ure Yiduai111ad)llE 6 19111/2!10
@ Rsou(eallo(auon'hdEed 6 19I1!,2010
1-)
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
ru -""--t."--'
u
H Figure 13 A maps view of the virtual machine
1i. For storage, you can also have a more detailed view by selecting the "storage Views" tab, then
E
selecting the "Maps" view which then shows you the controller cards used on the host as well as the
LIIN(s) making up the datastore which contains the virtual machine virtual disk files:
ts
\)
rlme 1sl1U2B13 17:2s:0c LHate...
N Er-
- n
Li .*E.'*-. m
vselset.
ai
?,
?:, scs! YotuBe (L;Jri)
Li ',-
? sas! -€rqet 1.."'i3! P t)
fr uPout u." I
.--'-4
LD
L-
ru
LJ
02&tcI0to
u
a IF.L +al dr 10 !elE(1 sJllrpl:
u
L:
Irigurc 14 Dctailcd storage viov for thc virtual machinc
i4
E
11
3
C
3
C
C
C
C
C
IfyouwanttimeissettingbetweenVcenter,EsXhost,anvirtr.ralmachine.Weshouldpoweroffthe C
Vmachine.
e
GotoVmachine>Editsetting>options>vmwaretools>enablethesynchronizeguesttimehost. e
e
If you want increase virtual machines CPU,RAM memory'
{
(
First we should power off the Vmachine
(
CPU or RAM memory>increase how many
Go to Vmachine >Edit setting> hard ware list>select (
(
CPU's or how much memory You want'
(
(
If you want increasing Vmachne CPU's or RAM memory in Power
on state?
(
(
A. One option is there enabled Hot add, hotplug'
(
35
l_
u
u
klj
L
1-
..\.dding hard$ are resources (Memory/Disk/CPUs) to virtual machines
l' T-:-e are 3 basic ways ofaccessing \&4 settings using vSphere Client:
L
l'
ri
;
1.
2.
Select virtual machine that You
want to cdit
Select General Settings tab
l. t ill,,",..,
settings
u
u
nJ.ri. i taied a r+n |perar'r r:is:
u
l- . ?- ,Mn
:tah-'*
l-.
lj
t-
IJ
2. Using Summary tab
I
L) r t 'e:.snncE 3. Click Edit settings
:lr 'q! ;
. rr o*re) /
t*1F,d@\
t 'eL /,
L, & id6a-e
&r#p5
L;
L,
L'
U
5 *:t4f ,,tu'&g$rri
u
u
u
u
L
L 36
N
I:
s
!
s
i-
!
i
Using \M drop down menu
I
1. Select and right click virhral
machine that you want to edit
L
d tum 'd rN6'q
2. Click Edit settings I
€
E fl s4s
a
ra,:hnre rs a aoftMrc conFut{
6FSrqM
..rx.d:r rur. ?n op3.atng s
!.n operrt13 s^tem i.st:
r I rd , u,,e.t.ier.nnq tyr
i
/:t!:lna.liirr! lS ar rs(
.LJ lar !\e qaua!'ir(n
i
,i il Ic,5isi'P,H-'
i;r!.on]r eds, a!testnq.r
i
. vi:Lual illhfe! nn
.ip,r/Er
E [) 16{' {os, rirne nDl cair run m3iy t
i
E trr Lr<h'r
o. the vanualmachine i
i
i
NOTE: Additional rnemory can be assigned only when \M is powered off, unless the
guest opelating
,y.t"* ,"ppo.t, roemory hot-aid. You can-check the options of the virtual machine to see if memory hot-
add is enabled.
3. Click OJ(
37
A;signing additional virtual hard disk
4. Click OK
6. Click OK
38
sr
f
)-
L
t-
t-
7. Set desired Disk Size
!-
8. lJr:liter Disk Provisioning $ecliofl
selecl Allocate and commit
space on demand (Thin
Provisioning)
9. Click Next
t-
1 1. Click Next
39
14. Fromthe Hardware column
select newly created SCSI
l.t6 Controller
15. Check Controller tlpe:
If it is already set to
Paratirtual sl,tp lo point 20.
- Otherwise proceed with point
16.
4A
s
r
s-
F
D
r
Assigning aililitional virtual CPU(s)
NOTE: Adtlitional CPU can be assigned only when \M is powered off, unless the guest operating
r
system supports CPU hoplug. You cancheck the options of the virtual machine to see if CPU hotplug is
enabled.
r
Open Virtual Machine Properties pan,el t
using one of earlier described methods.
I . From the Hard.ware column
t
select CPUs t,
2. Set desired number of virtual E
pfocessors
3. Cllck OK
L
L
L
L
L
L
L
t-
!-
t-
41
*
u
ru
u
u
Lu
rL
Create and Delete a VM clone
Clone feature integated with vSphere can be used to make exact copy of source server, deploy new server
tom soutce server
u Create
1.
ln[ chne
Los in to vcenter server using vSphere client
E
u
l{ark \/It,I which you want to
SB
fught click on marked \M and choose CLONE from menu.
u
SaK
Ta5T
u
u
u
u J. Follow confi guration wizard:
. Provide Clone name and choose \rM folder for clone
E
u
u
L:
t"
o
N
Choose
L- .
L'
Resource Pool
u
u
uu
u
l'
I' 12
E
i:
t-
S
.r99.?5GA l.r3l8 @
ao,m@ 3,80 @ 36,20 @
136.25@ r7.O4@ ,18.?t @
27a.0068 l, tl G8 271.a9 G8
t
Always choose Thir.r provisioning format disk
I
L
Delete WI clone
1. Log to vCenter servct trsing vSphere client
2. Mark Clone \rN4 $4rich has to be deletqd
4i
lIale se that conect VM is marked, Right click on selected VM and from Menu choose Deiete from Disk,
YLl si[ E remoyed. Aom vc,enaer invencory sams as VMI)K files wil lre doloced ftorn l4uaFs datascoro
016 <qE+
ts.te.,, ,
Iand*.
A.ldE6irih.., (kl+P
i4@
: !14I4-YT:::
' lsT -
oPainNew!l!ndow.,.
-
' Rmw frm hvent l
44
a
Using Snapshots
Section describes how to mange Virtual Machine snapshots using vSphere client. Snapshots can be used in
order to roll back all changes which were made after snapshot was taken.
Create snapshot
1. Log in to vCenter sewer using vSphere client
2. Select target Right click ) Snapshot ) take Snapshot
3. Provide name and description for snapshot, make sure that option Snapshot the virtual machine's
click OK to start-
45
rr-:
u
u
r-:
u
u
u \M
Select and frorn Top menu choose Icon Snapshot manager
u
u
u
L
a Inlra
3 AK_v5Hol
5ummary
u
&.ocLAB_dc
@ vCenter 4.1 Guest 05:
u
O.l
d2 14emoryi
u
[.lemory Over
u
u
\err u'indorv with detailed information about our
u
H
u
u
L:
L:
L'
L-
L.
L,
L- Delete snapshoL
L.
u
IJ
lj
l.-
rj
l_: 46
LL
L.
Snapshot manager windorv popup, mark snapshot $,hich you want to delcte and click delete
Noti: if you have more then one snapshot created o1r particular virtual machine than you can use
button Delete All to remove all
41
rL
L-
L.
fu Ra'tutt to snsphot
ff G.. :o oprion is used when administrator want to roll back virtual machine state to state before snapshot
l. Loe in to \Center server with vSphere client
You rvant to see where the snapshot taken IIow much space occupy?
Drive Expansions:
Dtrta Drive:
1. Choose the vm sever from VI end right click edit settings choose the harddisk to extend, in the right
pane enter the value in provisoned space.
2. From the OS end go the disk management check the available diskspace
irom the command prorrpt diskpafi
li st disk,
enter list volumes.
enter select volurle,
enter exter)d.
48
a
i
(
(
I
s
Local Datastore(DAS) Missed:
(
l.Found one \M is powered off :
2.Found Local_Datastore missing, asked onsite engineer a
to insert the Harddisk, rebooted the
ESX box and ofno use_
a
3.Reseated the Harddisk again and rebooted the
ESX box press F2 and enabled the luns, a
after that local datastore got found and vm got ."plu""d
i; il;;;pinal
state.
e
I
ff wemory {096 t48
El cpus 1
I
B v.deo rdd
Pr VI4CI devire s
ig Fbppy d{ve I Client Device
& cD/DvD drive 1
S Netv orkadapter I
Client Device
10.103.x.x
s
ln NetworkadBprer Z TivoliEdckup \
e scsr conrrolter0 L5l Lolic parallel
Viriual Disk \
\
\
s
S
49
t
r--
u
OS drive:
i . Choose the r,rn sever from VI end right click edit settings choose the harddisk to
ertend, in the right pane enter the value in provisoned space.
l. From the OS end go the disk lnanageurent check the available diskspace
frorn the command prompt.
3. Go to extpart
enter as: extpart C: size in mb.
4096 MB
tr CPUs I
VI4CI device
_a ClienL Device
o_ cololD drive 1 Client oevice
la 10,103.x.x
E Tivoll Backlp
S{5I .ontroller 0 LsI Loqil: Fer6]lEl
Hit!1,d.k?
=
s0