---
# System prepended metadata

title: vCenter 11/7
tags: [VMware]

---

# vCenter 11/7
==vCenter虛擬化：==
在ESXi裡建Win(或Linux)，再掛載iso進行安裝vC
由ESXi自身底下的VC來管理自己
 
會先用Win版教,再教Linuxl版(ESXi 6.7己無Win版)
VIM(Win)-VMware-VIM-all-6.7.0-19300125.iso
VCSA(Linux)-VMware-VCSA-all-6.7.0-19300125.iso

將VM WS的S2019==Full Clone==,8GB,sysprep,name


## 安裝vCenter
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x3

==需與電腦名稱一樣==(避免之後Domain解析異常)
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x2

2個提醒視窗按下一步即可
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)

與Win AD整合時,Domain不可與Win AD相同(Admin/!03R4b)
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x4

==相關連接埠==
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x3

==登錄帳戶==
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)
己改為HTML5(FLEX的己無Flash可開啟)
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)


外部主機無法解析vcenter到.200.200,需手動增加
C:\Windows\System32\drivers\etc\ ==hosts==
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x3

vCenter密碼重置
登入vCenter主機(Windows)，找出路徑
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)

用cmd開vdcadmintool.exe
輸入帳號ad...@vsphere.....
產生新的亂數密碼
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)

---
# vCenter基本操作
11/15

## 納管ESXi
先建DataCenter納管ESXi
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x3

鎖住模式先選停用，其它後面再講
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x2


vC可納管多台ESXi
所有設定都只是經由vC設定到ESXi上，vC掛掉不會影响ESXi
各種授權需登入vC才能再指派出去(Ex:指派給ESXi)
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)


## VM複製
vC可對虛擬機進行複製(ESXi只能匯出匯入)
複製範本至ShareStorage上
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x3

至範本時可變更磁碟格式
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x2

從範本新增VM
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x3


複製至程式庫
可發佈到集團給其它vC用
先做成本機內容：test，後續再發佈(訂閱URL)


# ==MPIO==多重路徑
Multi Path Input／Output 

若用FC可兩條合併(似Cisco PortChannel?)
iSCSI只可兩條分開配置多組NIC使用不同IP
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)


==SS主機&ESXi再配置一組NIC與IP==

## 1.ShaerStorage主機端

### 1.1 Workstation上新增NIC
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)

### 1.2 iSCSI新增允入IP:10.10.11.2
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)



## 2.vCenter端(ESXi)

### 2.1 新增網路
vC新增VMKernel可同時新增vSwitch、vmnic
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x2


### 2.2 vC儲存區的iSCSI新增1條連線
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)x3

### 2.3 繫結
建議加入繫結,方便查看
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)

一目了然
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)


# ==ESXi-2==
開規格
~~4C,16G~~ 6C,64G,142G,4NIC,Pre SCSI,SCSI
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)

Setting


IP:192.168.200.139
DNS Name:Host-ESXi-2

==新增網路==
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)

==新增iSCSI卡==
動態探索,繫結,重掃
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)


記得SS-iSCSI允入:10.3, 11.3

NFS-Shaer夾
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)


ESXi 8
![image](https://hackmd.io/_uploads/HyG5eTcfkg.png)

# FCoE
vC才有FCoE
FCoE支援FC與iSCSI
