» ESXi の記事

~ Create a EXT HDD >16TB for centos on esxi ~

connie 2017.08.22 | centos, ESXi | | No Comments

首先如果要生一個vmdk大於2TB,必須使用 vmware web client 處理
先安裝windows 2012 R2, 再安裝vCenter Server for Windows
Login vSphere Web Client (Flash)
create datacenter, create host , license可以用試用版,因為目標只是想create HDD
edit virtual machine + HDD

開機

睇睇新hdd資料
fdisk -l

如果大過2TB要用parted尼界HDD

==================Larger than 2TB=============
parted /dev/sdb
mklabel gpt

print
Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 19.9TB<====

 

mkpart primary 0GB 19.9TB

q
==================Larger than 2TB=============

#之後formart the partition to centos ext4
mkfs.ext4 /dev/sdb1

#開mount point
mkdir /home/dataDrive

#開機加入MOUNT PT
nano /etc/fstab
#add a row at the back
/dev/sdb1 /home/disk ext4 defaults 1 2

#手動mount一野
mount /dev/sdb1 /home/dataDrive
#睇結果
df -h

windows server 2012/2016 會食唔到esxi內的default scsi hdd,另到install 唔到window

去edit esxi -> SCSI controller

改做vmware paravirtual

加返esxi 內的driver , 去floppy driver , datastore內的/vmimages/floppes/pvscis-windows2008.flp

2012/2016server 都用windows2008.flp

正常install windows server , 去到hdd個位 load driver

floppy->amd64 ->enter

~ ESXI NAT SETTING UP ~

connie 2016.09.26 | ESXi | | No Comments

– Configuration>Networking<Add Networking…

1474864431237– Virtual Machine

1474864442578

– Create a vSphere standard swtich , without select any physical lan card

1474864463219

– Change Network Label

1474864489251

– Then create a VM, with the pfsense live CD, and add WAN LAN, and Vlan CARD and setup

1474864561691

-NAT Client add to the Vlan CARD, and check internet connection

%e6%93%b7%e5%8f%96

– use nat client login to the pfsense web GUI and change DHCP IP

~ USB boot ESXi installer ~

connie 2016.06.17 | ESXi, Uncategorized | | No Comments
  1. Download Rufus
  2. Download ESXI image
  3. Insert usb drive
  4. rufus

~ VNC ESXi 內的 VM ~

connie 2013.01.01 | ESXi | | No Comments

首先要係ESXi 內開firewall port

先用SSH 方法入去ESXi,
Enable SSH on ESXi 可以參考以下文章
http://connie.hk/146/esxi/esxi-ssh-enable/

用VI開啟以下FILE, 去到最底, 看看最後的Service id

vi /etc/vmware/firewall/service.xml

以下圖為例,最後的service id 為0032

Screen Shot 2013-01-01 at 3.20.24 PM

之後可以用notepad 輸入以下東東, 改左個service id 係之前在service.xml 的+1
port 可以set ip range

<ConfigRoot>
<service id='0033'>
 <id>VNC</id>
 <rule id = '0000'>
  <direction>inbound</direction>
  <protocol>tcp</protocol>
  <porttype>dst</porttype>
  <port>
   <begin>5900</begin>
   <end>5910</end>
  </port>
 </rule>
 <enabled>true</enabled>
</service>
</ConfigRoot>

save 做VNC.xml , 用winscp or 其他東東upload 上 /etc/vmware/firewall

Reflesh firewall rule

esxcli network firewall refresh

還有一步就是要在每個想被vnc的VM內加入configuration parameters
先將該VM關掉,到Edit Virtual machine settings>Options>Advanced>General>configuration parameters

Screen Shot 2013-01-01 at 3.31.37 PM

Add Row
Screen Shot 2013-01-01 at 3.34.18 PM

remoteDisplay.vnc.enabled = true
remoteDisplay.vnc.port = 5900
remoteDisplay.vnc.password = ****

之後就可以用vnc client 輸入esxi ip 用不多的port vnc ESXi's VM 

~ Esxi Copy OS ~

connie 2012.12.30 | ESXi | | No Comments

要係ESXi 內copy 一個OS system, 係成日要做既事
先到關掉target OS
之後到Configuration>Storage>去你想將新OS存放既HDD

Screen Shot 2012-12-30 at 12.16.15 PM

新增一個Folder

Screen Shot 2012-12-30 at 12.16.53 PM

再搵返放Target OS 既HDD>去OS folder 
COPY以下File

  • *.VMX
  • *.vmdk (大過50GB會多過一個File的)

Screen Shot 2012-12-30 at 9.49.08 PM

回到新OS Folder , 之後PASTE(注意,COPY動作中途是不可以停止的)
完成後到新OS FOLDER,右click *.VMX file , 選擇Add to Invertory
那就大概完成了

Screen Shot 2012-12-30 at 1.00.43 PM   

如果DHCP server set 左係static IP 那有機會需要手動改MAC ADDRESS, 先POWER OFF, 改完後重新開vm就成功了

Screen Shot 2012-12-30 at 10.00.07 PM

~ ESXi 60天試用註冊方法 ~

connie 2012.12.25 | ESXi | | No Comments

當你使用ESXi接近60天,就要去activate 個 license

方法如下:
先到vmware site, login in 去support & download 選擇 VMware vSphere Hypervisor (ESXi)

Screen Shot 2012-12-28 at 8.57.55 PM    

以後按一下Download

Screen Shot 2012-12-28 at 8.58.26 PM

不用下載,重點係頁面會有LICENSE KEYS 出來

Screen Shot 2012-12-28 at 8.58.37 PM

得到重點後,返去Vsphere Clients->Configuration->Licensed Features->edit->Assign a new license key to this host->Add License Key.

Screen Shot 2012-12-28 at 9.08.18 PM

打完license key 就完成了,恭喜你,你可以用一世了:o)

Screen Shot 2012-12-28 at 9.12.04 PM

~ VI 常用 command ~

connie 2012.12.17 | Linux | | No Comments

有時有d server 無nano , 唯有用VI

Shift + g 頁尾
:wq save
i Insert mode
ESC 出返insert mode
:q! quit without save

 

~ ESXi ssh enable ~

connie 2012.12.16 | ESXi | | 1 Comment

先到ESXi > configuration>Services>Properties>SSH>options
那你可以set default enable ssh access or start manually

Screen Shot 2013-01-01 at 2.13.02 PM

Screen Shot 2013-01-01 at 2.13.29 PM

| HOME |

Smiley face

March 2024
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31