參考網址:https://medium.com/@jackyu/%E5%8D%87%E7%B4%9A-esxi-6-5-%E5%88%B0-esxi-6-7-613e39d6dccbSSH連入打開防火牆esxcli network firewall ruleset set -e true -r httpClient撈一下線上可更新列表(查詢6.7版)
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep -i ESXi-6.7

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

出處 https://blog.hy31.net/2014/12/vmware-hardware-compatibility-level.html[教學] 降級 VMware 虛擬機器的 Hardware compatibility 的 Level
起因:目前VMware的軟體的版本很多,然後用新版軟體所產生的VMDK又會不能給舊版使用EX:在 VMware Workstation 9、10所產生的VMDK是無法在 ESXI 5.1正常使用的所以,以下是教你怎麼把現有新版的產生出相容舊版的使用目前現有VMDK是相容 Workstation 10 版本clip_image002在你要用的機器按右鍵,選擇Manage,然後Change Hardware Compatibility

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

用SSH連入ESXi Server輸入date指令,你會發現時間跟vSphere Client的時間不一致,原因是UTC問題,詳細可以看這篇
https://blog.51cto.com/jdonghong/1957118
先在本機電腦建立下面檔案,用WinSCP連入ESXi Server,把檔案放在ESXi Server的localdisk內
建立smtp.xml檔案(開放STMP 25讓ghettoVCB備份程式可以發信通知結果)
=====================================
<!-- E-MAIL SMTP -->  
<ConfigRoot> 
   <service id='1000'> 
     <id>SMTP</id> 
     <rule> 
       <direction>outbound</direction> 
       <protocol>tcp</protocol> 
       <porttype>dst</porttype> 
       <port>25</port> 
     </rule> 
     <enabled>true</enabled> 
     <required>false</required> 
   </service> 
</ConfigRoot> 
=====================================

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

應該都跟新主機板BIOS上的  Secure Boot 功能開啟後有關,限制了系統更改一些設定的權限,導致無法設定一些東西,進BIOS關掉 Secure Boot功能試試。參考網址
http://jawadchowdhury.com/cannot-change-acceptance-level-to-community-vsphere-6-5/secure boot enabled cannot change acceptance level to community vsphere 6.5Today I have loaded ESXi 6.5 in my Whitebox PC.
My mainboard is a Asus M5197 R2 motherboard that came with an onboard Realtek NIC which doesn’t work with Esxi 5.5 onwards.
So I wanted to install a community version of VBA as explained in my earlier post Link

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

參考文章:http://www.benjr.tw/?q=node/634 ESX下有很多VM機器,但是實體連USB裝置的在同一時間內只有一台可以連,那麼要怎麼指定USB裝置給那台使用呢? VM Workstation 下只要把視窗作用,然後插入usb裝置後,在該VM下就可以直接連接USB裝置,但是在ESX下要指定USB裝置給那台VM機器使用,則要做一些設定,設定方式如下: 1. 先將欲使用的USB裝置插入該台ESX SERVER實體硬體上。 2. 進 vSphere Cliet 3. 開啟要連USB裝置的硬體設定畫面,確認有USB controller裝置。 clip_image002 4. 新增USB裝置,若不確定,可先拔除實體USB然後再做到這步驟看看與接上USB裝置後的差別來判定那個USB裝置是您要的。 clip_image004 clip_image005 5. 新增完VM機器上的USB裝置,應該可以看到對應的VM機器上抓到USB裝置使用。 clip_image006

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

參考來源 : http://s852254.blogspot.com/2009/09/esxport.html
esx所用的port列表 不翻譯了,直接看比較快
port 80
vCenter Server requires port 80 for direct HTTP connections. Port 80 redirects requests to HTTPS port443. This is useful if you accidentally use http://server instead of https://server.
port 389
This port must be open on the local and all remote instances of vCenter Server. This is the LDAP portnumber for the Directory Services for the vCenter Server group. The vCenter Server system needs tobind to port 389, even if you are not joining this vCenter Server instance to a Linked Mode group. Ifanother service is running on this port, it might be preferable to remove it or change its port to differentport. If needed, you can run the LDAP service on any port from 1025 through 65535.If this instance is serving as the Microsoft Windows Active Directory, change the port number from 389to an available port from 1025 through 65535.
port 443
The default port that the vCenter Server system uses to listen for connections from the vSphere Client.To enable the vCenter Server system to receive data from the vSphere Client, open port 443 in thefirewall.The vCenter Server system also uses port 443 to listen for data transfer from the vSphere Web AccessClient and other SDK clients.If you use another port number for HTTPS, you must use : when you log in to thevCenter Server system.
port 636
For vCenter Linked Mode, this is the SSL port of the local instance. If another service is running on thisport, it might be preferable to remove it or change its port to different port. If needed, you can run theSSL service on any port from 1025 through 65535.
port 902
The default port that the vCenter Server system uses to send data to managed hosts. Managed hostsalso send a regular heartbeat over UDP port 902 to the vCenter Server system. This port must not beblocked by firewalls between the server and the hosts, or between hosts.
port 902/903
Ports 902 and 903 must not be blocked between the vSphere Client and the hosts. These ports are usedby the vSphere Client to display virtual machine consoles.
port 8080
Web Services HTTP. Used for the VMware VirtualCenter Management Webservices.
port 8443
Web Services HTTPS. Used for the VMware VirtualCenter Management Webservices.

NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

今天想修改ESXi 4.1 自動開啟SSH 與關閉LOADING IPMI功能,修改設定檔無法作用,重開機後復原設定值?廠商真是貼心……… IPMI功能為何關閉如下:
http://ithelp.ithome.com.tw/question/10051917 ================================================================================== 發問文章:http://ithelp.ithome.com.tw/question/10052113 小弟又來了,測試了 ESXi 開啟ssh 與 關閉IPMI功能的方式,修改設定檔,但是只要重開機就會回復預設值,例如我開了 SSH :  
  • 1、在控制台下,按 ALT+F1 進入控制台界面   
  • 2、輸入 unsupported 然後按 enter  (輸入的時候是看不到你輸入的,所以一定要注意)   
  • 3、如果輸入的 unsupported 正確,您將看到支持模式和密碼提示,然後輸入 root 密碼進行登錄   
  • 4、登錄后,修改設定檔    
  •      # vi /etc/inetd.conf
  • 5、搜索  #SSH  這一項后,把前面的 # 去掉       
  • 6、然後保存退出 
  • 1、在控制台下,按 ALT+F1 進入控制台界面
    2、輸入 unsupported 然後按 enter (輸入的時候是看不到你輸入的,所以一定要注意)
    3、如果輸入的 unsupported 正確,您將看到支持模式和密碼提示,然後輸入 root 密碼進行登錄
    4、登錄后,修改設定檔
    # vi /etc/inetd.conf
    5、搜索 #SSH 這一項后,把前面的 # 去掉
    6、然後保存退出
    但是重開機後,進去看又被#號起來,必需手動在啟動一次.........IPMI修改設定檔的情形也是這樣,查了關鍵字都沒看到有人遇到相同問題,請問有人知道原因與解法嗎?
    ESXi 4.1是安裝在USB當開機系統.懷疑是因為開機只從USB讀入?修改是修改記憶體內的設定檔,所以開機從USB讀入又回復原狀?如果真是這樣,那要如何才能改到正確的設定檔?
    ==================================================================================
    自己找到的另類解法:
    ==================================================================================
    關閉IPMI功能:
    安裝完後,到SERVER上開啟SSH功能(參考系統安裝篇),使用SSH連入:
    修改
    vi /etc/vmware/init/init.d/72.ipmi
    加入紅字
    return ${SUCCESS} # disable IPMI
    Exec esxcfg-init -I || {
    return ${NON_CRITICAL_FAILURE}
    }
    按wq! ‘強制存檔退出
    ######若重開機剛剛改的設定檔回復初始值,請使用 VMware vSphere Client 連入 用 VMware vSphere Client介面修改。
    把勾勾拿掉即可。
    clip_image002
    ==================================================================================
    開啟SSH自動啟動功能:
    ESX4.1付費版方式
    我們可以根據以下步驟開啟
    1. 在ESX Server伺服器上,依畫面指示按下「Alt+F1」,登入Service Console。
    2. 切換到ssh目錄下,並編輯「sshd_config」,這個檔案。指令如下:
    cd etc/ssh
    vi sshd_config
    3. 在「sshd_config」中找到「PermitRootLogin」這一行,並將後面的「no」改成「yes」
    修改後再按下「Shift+q」切換到「:」命令模式,之後在:輸入「wq」,表示儲存修改並離開vi編輯程式。
    4. 回到Service Console後,重新啟動sshd服務,指令是:
    service sshd restart
    免費版ESXi 4.1方式:
    1、在控制台下,按 ALT+F1 進入控制台界面
    2、輸入 unsupported 然後按 enter  (輸入的時候是看不到你輸入的,所以一定要注意)
    3、如果輸入的 unsupported 正確,您將看到支持模式和密碼提示,然後輸入 root 密碼進行登錄
    4、登錄后,修改設定檔
         # vi /etc/inetd.conf
    5、搜索  #SSH  這一項后,把前面的 # 去掉
    6、然後保存退出
  • From the console press ALT-F1
  • Type unsupported and press ENTER
  • Enter the root password
  • Enter the following command vi /etc/inetd.conf
  • Search for the #SSH settings
  • Remove the # from the SSH row
  • Save the config by using :wq!
  • Type ps | grep inetd on the console
  • Send a hangup signal by using the following command kill -s HUP

  • ######若重開機剛剛改的設定檔回復初始值,請使用 VMware vSphere Client 連入 用 VMware vSphere Client介面修改。
    clip_image001
    clip_image002[5]

    NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

    最近公司買了便宜的ASUS TS-300/PS4 SERVER,很怪的是 安裝ESX4.1 到選安裝系統到那個硬碟畫面時,硬碟有抓到 LSI 2.8TB,但是卻是反灰不能選,另外使用USB也是一樣,變成兩個都反灰,已打去原廠反應,但都沒下文………………………可是ESXi4.1免費版本確可以正常安裝,傻眼……… 但是遇到了2TB限制問題,外加原廠 LSI 1078 MegaRaid陣列卡配上4顆 1TB 原廠 3.5吋7200轉硬碟做RAID 5,容量有2.8TB左右,可是如果直接安裝系統在 LSI上,因2TB限制,則會有800G空間左右浪費。 我的解決方式如下: 使用USB當開機系統碟。 使用SSH連入 看分割狀況 一個RAID5 一個USB開機 ~ # fdisk -l Disk /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34: 2998.9 GB, 2998960914432 bytes 255 heads, 63 sectors/track, 364602 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34p1 1 523 4193280 6 FAT16 Partition 1 does not end on cylinder boundary /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34p2 523 537 112640 fc VMKcore Partition 2 does not end on cylinder boundary /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34p3 537 97254 776882176 fb VMFS Disk /dev/disks/mpx.vmhba32:C0:T0:L0: 1030 MB, 1030750208 bytes 64 heads, 32 sectors/track, 983 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/disks/mpx.vmhba32:C0:T0:L0p1 5 900 917504 5 Extended /dev/disks/mpx.vmhba32:C0:T0:L0p4 * 1 4 4080 4 FAT16 <32M /dev/disks/mpx.vmhba32:C0:T0:L0p5 5 254 255984 6 FAT16 /dev/disks/mpx.vmhba32:C0:T0:L0p6 255 504 255984 6 FAT16 /dev/disks/mpx.vmhba32:C0:T0:L0p7 505 614 112624 fc VMKcore /dev/disks/mpx.vmhba32:C0:T0:L0p8 615 900 292848 6 FAT16   分割指定硬碟 ~ # fdisk /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34 The number of cylinders for this disk is set to 364602. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) 按 m 看指令有那些 Command (m for help): m Command Action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only)   刪除所有磁區 Command (m for help): d Partition number (1-4): 3 列表看看 第三磁區已刪除 Command (m for help): p Disk /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34: 2998.9 GB, 2998960914432 bytes 255 heads, 63 sectors/track, 364602 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34p1 1 523 4193280 6 FAT16 Partition 1 does not end on cylinder boundary /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34p2 523 537 112640 fc VMKcore Partition 2 does not end on cylinder boundary Command (m for help):   使用 VMware vSphere Client 連入管理 clip_image001 clip_image002 clip_image003 若刪除分割區後第一次應該會有第三個選項,執行第三個選項一次,即可讓系統自動分割。 clip_image005 clip_image006 clip_image007 clip_image008 再新增一次 clip_image009 clip_image010 clip_image011 剛第三項新增 LOCAL DISK動作系統自己幫我們切割好一個 2TB與一個 744.89 剩餘空間的兩個分割區,選第一項可以把這兩個分割區合併成一個VM內邏輯的分割區。第四個選項可以回到2TB限制原狀,因手動刪除分割區無效,要回復原狀就要使用這方式。 clip_image012 clip_image013 成功破除2TB限制,實際上是兩個分割區合併後的狀況,一個實體分割還是不能超過2TB clip_image014

    NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

    看來測試的結果應該是如此 [root@HP-ESX-1 ~]# esxcfg-vswitch -m 9000 vSwitch0 Unable to set MTU to 9000 the following uplinks refused the MTU setting 若在這台ESXi SERVER上直接把VM機器內的網卡開啟 Jumbo Frames (MTU 9000),則可能會碰上網路連線的靈異事件,我就碰過連同一台NSA,有些目錄一連線就當在那邊,改回MTU 1500後就完全正常。 HP DL160 G5 VMWare上官網不在支援名冊上,但因為當初有加購 SMART 200 陣列卡,故可以安裝ESXi ,硬碟與網卡都可直接抓到無誤,缺點就是無法開啟Jumbo Frames...........

    NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

    #esxcfg-vswitch -l This will allow you to list all the virtual switch you have on the ESX server #esxcfg-vswitch -m 9000 vswitch1
    this command is to enable the mtu value of 9000 for every nics that connected to the same virtual switch which provide the storage access to ISCSI #vmkping -s 9000 192.x.x.x
    test the jumbo frame setting 要調整這個選項,交換機也要支援,然後網卡進階設定也要設成MTU 9000才行。 若不支援還硬調成MTU 9000,在我的網域裡是有發生某些分享資料夾會進不去卡在那邊,調回MTU 1500後就正常。

    NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

    設定QNAP TS419U NFS系統 開啟NFS服務 clip_image001 設定NFS資料夾權限 clip_image003 clip_image004 確認快取關閉 clip_image005 設定ESX SERVER新增 Storage連線至QNAP之NFS服務 新增VMKernel 網路連線點 clip_image007 clip_image009 clip_image011clip_image013clip_image015clip_image017 新增ESX Storage clip_image018 clip_image019 Server: ç連線到QNAP的IP Folder: ç /share/ 為固定使用NFS連線的根目錄, ESXi-VM-Backup 則是QNAP-NAS上分享的目錄 Datasotre ç 儲存列表區上秀出的裝置名稱 clip_image021 clip_image022 clip_image023

    NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

    出處: http://icarusli.javaeye.com/blog/726683 ESX與ESXi管理員必備25個命令文章分類:操作系統 正如所有的虛擬化管理員都知道,要應對VMware基礎設施上需要的更多虛擬化管理,關鍵在於任務的自動化。 雖然VMware ESX主機可以管理與vSphere客戶端用戶界面,數據中心管理員往往喜歡登錄到VMware服務控制台和使用ESX命令行來解決,如網絡配置問題或重新配置主機。 有幾個VMware的命令,可以幫助這些任務自動化,解決虛擬化基礎設施方面的問題,調整您的(虛擬機)和更多的虛擬機的性能。
      在本指南中的VMware命令行,概述了25個最有用ESX命令和ESXi命令。 其中包括Linux和ESX的特定命令,很多可以用於遠程命令行界面(RCLI),vSphere已改名為vSphere CLI,可在VMware ESX和ESXi中使用。
      Linux命令
      ESX服務控制台是基於Linux的,因此許多Linux命令都可以在它裡面使用。 下面是常見的Linux命令和一些VMware命令的詳細版本。
  • Find/cat/grep命令查找,顯示和搜索文件。Find找出具體的文件,cat顯示文件內容,並把文件拼接在一起,同時grep負責在拼接的所有文件中找到所需文本。 這些命令可以幫助管理員發現,如基礎設施快照文件的具體內容,也顯示日誌和配置文件。 他們還可以搜索內部文件的信息。
  • Tail顯示一個文本的最後部分的文件,也可以輸出到監控實時文件。 此命令有助於實時監控日誌文件。
  • Service可以啟動、停止和重新啟動主機服務器上的服務(或程序)。 一些常見的ESX服務包括MGMT的和VMware、vmware-vpxa、firewall、vmware-hostd和vmware Web Access。 此命令可以重新啟動服務,掛起或進行配置更改。
  • Nano和vi編輯文本文件。 Nano是一個比Vi更簡單且易於使用的編輯器,但Vi具有更強大的編輯功能。 在ESX主機上文本編輯器幫助編輯配置文件。
  • Su和sudo命令幫助控制和防止root帳戶被使用。 Su提升了較差的用戶帳戶到超級用戶的權限。 sudo運行另一個在sudoers配置文件中指定的用戶命令。
  • ls列出文件和目錄信息。 通過使用某些交換機,可以顯示詳細的文件資料,包括所有者、大小、權限和最後修改日期。
  • Df和vdf顯示文件系統(分區)的資料,包括自由空間。 Df命令不會顯示虛擬機文件系統(VMFS)卷,因為它無法閱讀。 vdf是該命令的VMware的版本,這也將顯示VMFS卷的信息。 兩個命令都可以使用H變換,可用易讀的形式顯示。 (即2 GB,而不是2016044)
  • Ps和kill命令可以強行終止VM。 Ps可以顯示主機狀態或進程。 它可以使用很多開關,但最常見的是EF,它可以顯示每個進程運行的所有信息。 kill命令經常與PS命令一起用來終止某個正在運行的進程。
  • Ping和vmkping是最基本的網絡故障排除命令。 Ping通過發送Internet控制消息協議數據包測試與其他主機和網絡設備的網絡連接。 Vmkping是VMware的Ping命令的特定版本。 它使用的IP VMkernel去Ping另一個ESX主機的VMkernel端口。 此命令有助於解決VMotion和網絡存儲的問題。
  •   VMware ESX和ESXi命令
      這些VMware ESX和ESXi的命令可以運行在ESX服務控制台(本地或遠程使用Secure Shell)或RCLI(在VMware Infrastructure 3)和vSphere CLI的(在vSphere)。 在RCLI和vSphere CLI中,注意到很多命令已更名為vicfg,而不是esxcfg -(即esxcfg - nics.pl和vicfg - nics.pl)。 兩個命令都執行相同的功能,但VMware試圖從esxcfg遷移到vicfg。
  • vmkfstools被比做虛擬磁盤中的瑞士軍刀,可用於復制、轉換、重命名、輸入、輸出和調整虛擬磁盤文件的大小。
  • Esxtop故障排除。 它提供實時的CPU、內存、硬盤和網絡使用的歷史表現的統計數字。
  • Esxcfg-nics觀察和配置物理網絡接口卡(NIC)。 它顯示網卡狀態和配置的速度和全雙工網卡。
  • Esxcfg-vswitch顯示和配置虛擬交換機。 它是在vSphere不能使用網絡中有用的配置客戶端。 該命令用於配置端口組和連接物理網卡(稱為上行)配置虛擬局域網ID,思科協議(CDP)和vswitch中的MTU。
  • Esxcfg-vswif和esxcfg-vmknic允許您查看和配置vSwitches特殊的端口組。 Esxcfg - vswif配置的ESX服務控制台網絡接口,它也被稱為vswif港口。 Esxcfg - vmknic配置VMkernel網絡接口,這是VMotion和連接到iSCSI和網絡文件系統的網絡存儲設備所必要的。
  • Vmware-cmd是一個複合管理命令,負責管理和檢索虛擬機信息。 它可以改變虛擬機電源狀態、管理快照、註冊和註銷的用戶,並檢索和設置各種虛擬機的信息。
  • Vimsh和vmware-vim-cmd是複雜的命令,只有完全了解才能使用。 Vimsh是一個強大的交互式框架,有很多允許執行的命令,以及具備顯示和配置能力。 VMware的vim - cmd是一種邏輯的vimsh,能夠簡化vimsh,無需知道很多前端交換命令。
  • Vihostupdate和esxupdate更新ESX和ESXi主機和打補丁。 Esxupdate用於ESX服務控制台和vihostupdate,通過RCLI / vSphere CLI使用。 此外,vihostupdate35是用來修補ESX和ESXi 3.5版主機。
  • Svmotion是RCLI/vSphere CLI命令,用於發起Storage VMotion的遷移虛擬機虛擬磁盤到另一個數據存儲空間。 此命令的ESX 3.5版本是唯一啟動SVMotion的方法,加上vSphere客戶端的GUI,vSphere能做到這一點。
  • Esxcfg-mpath顯示和設置一台主機從所有路徑到達它的存儲設備。
  • Esxcfg-rescan讓主機產生一個特定的存儲適配器,用來發現新的存儲設備。 這是非常有用的工具,存儲設備已被添加,刪除或從存儲網絡改變。
  • Esxcfg-scsidevs和esxcfg-vmhbadevs顯示連接到主機的存儲設備的資料。 Esxcfg - vmhbadevs用於ESX 3.5,在vSphere中被esxcfg-scsidevs取代。
  • Esxcfg-firewall顯示信息和配置內置的防火牆保護ESX服務控制台。 它允許和阻止特定的TCP /IP服務之間的控制台和其他網絡設備端口。
  • Esxcfg-info命令提供了有關運行中的主機信息。 它可以重新定向到一個文本文件記錄主機配置。
  • Esxcfg-auth在ESX主機上配置服務控制台驗證。 它可以配置第三方LDAP或Active Directory服務器的身份驗證並設置多個本地安全選項。
  • Vm-support是一個強大的信息收集工具,常用於故障排除。 該命令收集大量信息、日誌文件,並把很多命令以單一的tgz存檔文件方式輸出。 它也可以用來顯示VM的信息以及停止沒有響應的虛擬機。
  • NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()

    1 2 3
    Blog Stats
    ⚠️

    成人內容提醒

    本部落格內容僅限年滿十八歲者瀏覽。
    若您未滿十八歲,請立即離開。

    已滿十八歲者,亦請勿將內容提供給未成年人士。