葉柏毅 Alex
Contact: alrex5401@gmail.com
Linkedin:https://www.linkedin.com/in/alrex5401/
2V0-620考試or 2V0-602考試,線上考試:線上考試、無監考
2V0-621考試,考試中心,被監考
滿分500,及格300分,100分最低。
Virtualization 虛擬化:Physical Resource Sharing
Emulation 模擬化:無中生有,經過轉換,以另一種形式呈現(慢)
Types Of Virtualization
SDDC
Cloud Computing
透過網路,提供服務
File System -VMFS:1 VMFS / Lun or Disk
Encapsulation:避免用中文或雙位元語系命名。
vSphere Clients:
付費:
ESXi:
WS2016 ( 2CPUs*8Cores)/License)
Standard,約3萬
Datacenter,約12萬(超過七台Guest時,就划算)
免費:vSphere Hypervisor。不能被VC管理。
VMM:Virtual Machine Monitor (VM Memory Overhead)
Lockdown Mode - Nornal:不允許Root遠端登入
Lockdown Mode - Strict:僅允許VC管理
NTP架構:官方建議,不使用VMWARE Tools Sync Time
VC模組:
PSC:Platform Services Controller
VC:vCenter Server
VC版本 ≥ ESXi版本
VC版本
Windows
OS另購
手動安裝
內建DB
外部DB
OS免費
匯入即可
內建DB
外部DB
VC Service預設管理員帳號為administrator@vsphere.local
VC OS預設管理員帳號為root
VC Management UI:https://VC:5480。管理VC服務與備份
ESXi and vCenter Server Communication
實務上,建議使用VMware Paravirtual SCSI,可達到效能提升。
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1010398
Disk Type
Disk Mode
AWS:Stateless。無狀態,不希望運算時儲存任何資料。(關機後資料會消失)
Azure:Stateful。類似傳統的Infra。
Photon = Linux + Docker Engine
Docker = OS Version
Linux - Docker - Image - Container
WS2016 - Docker - ServerCore / NanoServer - Container
DataCenter,識別與權限管理使用
Folder,純粹識別用
Tag,方便搜尋使用
Role-Based Access Controls (RBAC)
User -> Role - Privileges -> Objects
新增管理者
VMKernel |
VMKernel Port |
Virtual Switch |
uplink port |
Physical NIC |
VMKernel Port
Port Group
vSS - Virtual Standard Switch
vDS - Virtual Distributed Switch
Configuring Security Policies
Peak bandwidth最大頻寬
Average bandwidth:當超過傳輸上限時,
Burst size:傳輸上限
Load balancing policy
Datastore = Volume
Type of Datastores
DAS (Direct Attached Storage) = Local Disk
DAS on vMotion: Only Share Nothing vMotion(Enhanced vMotion)
vSphere Virtual Volumes
DB設計:一台ESXi上,只跑一台VM。更換實體機(效能),不需重新測試。
FC
FCoE
SAN Switch
iSCSI
iSCSI iqn name:
iqn.1998-01.com.vmware:train1-64ad4c29
iSCSI alias: train1
IP address: 192.168.36.88
Runtime name(LUN的表達路徑):
Datastores
Multipathing Algorithms
vSAN,主要解決VDI的大量IO需求。
Template
VM
Templat
Customizing the Guest Operating System
方法一:
方法二:
Content Library
RDM
Thin-provisioned virtual disks converted to a thick, eager-zeroed format.
CPU Scheduling Affinity,強制VM使用特定CPU Scoke
EVC,新舊的CPU,VM要啟用EVC,EVC可以去比對CPU,並限制某種CPU才能移過去。主要限制「目標只能用什麼CPU類型」和相容。
vMotion步驟:
快照Snapshot
*.vswp = Configured Memory - Reservation (default = 0)
當主機記憶體快要不夠用時
工作管理員RAM資源
LCPU(Logical Processor)= Socket數 * Core數 * HT(2)
亂加CPU的疑慮
Reservation type :是否允許向上層Resource Pools要求資源。
Esxi 開機設定
CPU效能不佳
RAM之Ballooning發生狀況
Host SWAP ≠ 0,表示主機效能不佳
Disk Latency
Network-intensive applications often bottleneck on path segments outside the ESXi host:
If you suspect that a virtual machine is constrained by the network:
Third-Party Backup Solution
建議,要支援VADP,而非Agent
因Agent類似後門程式,不一定可信任,且升級可能有問題。
vCenter Server Availability
vSphere HA Scenario: Application Failure
HA架構
判斷方式:
MOID:
數字大,權位高
Virtual Machine Component Protection - VMCP
HA設定
HA策略:
1.Slot,假設每一台VM使用資源都一樣。較適用於VDI
VM1 | VM2 | VM3 | |
---|---|---|---|
CPU | 512MHz | 400MHz | 300MHz |
RAM | 400MB | 512MB | 512MB |
2.Resoure Percentage,適用大部分狀況。
3.Dedicated
萬一公司環境,Esxi主機上Network Heartbeat不能以Default Gateway作為判斷依據時
FT
Virtual Machine Affinity
DRS Groups
VM-Host Affinity Rules
Maintenance Mode
Standby Mode
vSphere Update Manager 集中管理:
vSphere Update Manager :
Patch Recall Notification
vSphere Update Manager does not uninstall recalled patches from ESXi hosts.
ESXi:http://Esxi/ui |
---|
VC |
ShareStore -iSCSI -NFS -FC |
vMotion |
Cluster -iHA -iFT -iDRS -ivSAN |
Command Line Tools
vCLI常用指令
升級順序: