80、配置 Qlogic BIOS 實現 Boot from SAN
如果需要將ESXi/ESX服務器配置爲Qlogic BIOS實現SAN Boot,有很幾個地方需要配置。 首先需要激活 HBA BIOS,然後設定和激活選定的、用於啓動ESX的LUN,具體步驟如下:
1 、啓動服務器時,按 Ctrl + Q 組合鍵進入到 Fast!UTIL 配置界面;
2 、進入之後執行下列步驟:
o 如果只有一塊 HBA 卡, 則它會自動被選定,同時 Fast!UTIL 選項會出現;
o 如果有多塊 HBA 卡,則需要手動炫動需要設置的對象, 在 Select Host Adapter 屏幕上上下移動選
定需要設置的 HBA 卡後回車;
備註: SAN BOOT 建議儘可能使用較小的 HBA 卡 LUN 序號;
3 、 在 Fast!UTIL Options 界面選擇 Configuration Settings 後回車;
4 、在 Configratoin Settings 界面選擇 Host Adapter Settings 後回車;
5 、在 Host Adapter Settings 界面選擇 Host Adapter BIOS 後回車, 將值調整爲 Enabled 模式, 這意味着爲 HBA 卡激活 BIOS ;
6 、按 ESC 退出, 然後選擇 Selectable Boot Settings 後回車;
7 、在 Selectable Boot Settings 界面,選擇 Selectable Boot 後回車將值調整爲 Enabled ;
8 、選擇在列表的中 Storage Processor ,選定第一個後回車打開 Select Fibre Channel Device 界面;
9 、選擇一個 Storage Processor ( SP ) 後回車;
備註: SAN BOOT 要求 SP 後面的 LUN 的 Target ID 儘可能小。 同時需要確認 SP 和 LUN 能夠最快被掃描到 .wwpn 順序不一定對應 Target ID 順序。如果存儲陣列處於 Active/Passive 模式, 則選擇的 SP 必須爲 Active 路徑所在的 LUN 。 如果無法確認那個 SP 的 Target ID 更小, 則可以用存儲管理軟件確認一下;
10a 、如果 SP 後只掛了一個 LUN 則它將會自動成爲 BOOT LUN ,因此不用再進入到下一步;
10b 、如果 SP 後跟了 2 個以上的 LUN , 則需要在 Select LUN 界面裏選擇一個用於 SAN BOOT 後回車;
11 、 如果在清單裏還有其它存儲適配器, 則按 C 按鈕清除掉然後 ESC 二次後回車保存設定, 完成設定。
 
81、Windows 7虛擬機無法通過RDP訪問單可以用vSphere Client訪問
故障狀態
無法通過RDP連接到Win7但是,可以通過vSphere Client連進去,通過Console查閱;
故障分析
這個問題一般都是由於Win7的休眠組件導致;
解決方案
更改電源狀態設定,步驟如下:
1、打開虛擬機,進入到裏面,找到控制面板,然後點Power Options選項;
2、點擊Change when the computer sleeps,然後將Turn Off the display選項設爲Never之後將Put the computer to sleep選項設爲Never即可。
 
82、解決vSphere Client登錄linux版vCenter失敗:cannot complete login due to an inc...
故障狀態
學生在做試驗時,用vSphere Client結合普通的AD User登錄到系統提示如下錯誤信息:
cannot complete login due to an incorrect user name or password
故障分析
這種問題,僅僅在選用Linux版本的vCenter時纔會出現,Windows版本的問題不會出現這個問題,是由於過多的錯誤登錄導致vCenter Server鎖掉了這個賬戶;
解決方案
1、root權限登錄到Linux版本vCenter服務器;
2、在系統下執行如下命令:
/sbin/pam_tally --user user01@vmanager –reset
 
83、如何解決系統提示紅色警報但Alarms & Events裏看不到任何信息
故障狀態
系統提示紅色感嘆號的報警,可是在Alarms & Events裏看不到任何問題
解決方案
1、vSphere Client登錄到vCenter Server,點擊Hosts And Clusters選項;
2、點擊Alarms頁標籤後點擊Definitions.Note,選擇所有的Alarms,點擊Remove;
方法二:
利用PowerCLI命令來完成,這就簡單多囉:
Get-AlarmDefinition | %{$_.ExtensionData.RemoveAlarm()}
方法三:
初始化vCenter Server Alarms,步驟如下:
1、vSphere Client登錄到vCenter Server然後點擊Administration -> vCenter Server Settings;
2、點擊Advanced Settings,將alarm.version的值設爲0;
3、將alarms.upgraded的值設爲false,然後重啓VMware VirtualCenter Server服務。
 
84、利用Web Client登錄vCenter失敗:unable to connect to vCenter Inventory Service
故障狀態
從vCenter Server 4.1升級到5.0後,遇到如下類型的錯誤:
1、無法利用Web Client登錄到到vCenter,系統提示如下錯誤信息:
unable to connect to vCenter Inventory Service - https://xxxx:10443
2、好不容易登陸上去之後,vCenter Server裏的Health Status不顯示任何錯誤但是無法訪問;
3、在C:\ProgramData\VMware\Instrastructure\Inventory Service\Logs目錄下的ds.log文件下有類似如下錯誤:
Error connecting to peer:https://xxxx:10443 reason:
org.apache.http.conn.HttpHostConnectException:Connection to https://xxxx:10443 refused.
故障分析
這個問題一般都由於vCenter Inventory數據庫導致;
解決方案
更新vCenter Inventory數據庫,步驟如下:
1、進入到Windows服務管理器找到vCenter Inventory Service服務,右擊,選擇Stop;
2、進入到命令行界面,刪除掉所有Inventory Service目錄下的相關數據,缺省位置:
C:\Program Files\VMware\Infrastructure\Inventory Service\data.
3、進入到如下目錄:C:\Program Files\VMware\Infrastructure\Inventory Service\scripts;
4、執行如下命令重置vCenter Inventory Service數據庫:
、在服務管理器裏重啓vCenter Inventory Service即可解決這個問題。
 
85、更改vSphere 5中虛擬機的快照delta文件位置
默認情況下,快照產生的delta文件都是和虛擬機的工作目錄放在一起的,有時候,我們出於性能和空間等多方面的因素考慮,不希望兩者同在,因此,可以通過如下步驟自行調整delta文件的位置:
1、關閉虛擬機後右擊虛擬機點擊Edit Settings;
2、點擊Options頁標籤然後在Advanced Options選項裏點擊General按鈕;
3、點擊Configuration Parameters,點擊Add Row;
4、在Name欄輸入snapshot.redoNotWithParent,在Value欄輸入true;
5、此時,重新開機即可。
備註:在快照管理中workingDir是一個比較重要的參數,在5.0以前,這個參數決定了所有快照文件的工作目錄,缺省是虛擬機的當前目錄,而在5.0以後雖然這個workingDir依然存在,不過,它只能決定*.vmsn的文件存放點,其它的文件可以通過我們上面的snapshot.redoNotWithParent參數來在*.vmx文件裏指定。
 
 
86、安裝vCenter Server 5.0失敗:JDBC connectivity to the database using the gener...
故障狀態
1、無法安裝vCenter Server 5.0;
2、安裝失敗後系統提示如下錯誤:
JDBC connectivity to the database using the generated JDBC URL failed.Please enter the URL to ensure that it connects to the desired database.
3、在VIMTOOL.Log文件裏有類似如下錯誤信息INFO] Invoking testdbprops "C:\Users\wpvb1\AppData\Local\Temp\2\{1FBCB62E-6178-455F-ADE2-07957D81A7D4}\VM4273.tmp"Testing DB connection from C:\Users\wpvb1\AppData\Local\Temp\2\{1FBCB62E-6178-455F-ADE2-07957D81A7D4}\VM4273.tmp: [2012-07-26 11:12:50 INFO] Config name=dummy
INFO] Property file=null
INFO] Loaded url from props=<not set>
INFO] Overrides=
INFO]  prop:dbtype
INFO]  prop:url
INFO]  prop:password
INFO]  prop:password.encrypted
INFO]  prop:driver
INFO]  prop:username
Error: The TCP/IP connection to the host VMhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
[2012-07-26 11:13:05 SEVERE] Error in invocation of testdbprops
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host VMhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
    at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:170)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1049)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:833)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:716)
    at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:841)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at com.vmware.vim.common.vdb.VdbDataSource.getConnection(VdbDataSource.java:84)
    at com.vmware.vim.vimtool.dbprops.TestDbProperties.testConnection(TestDbProperties.java:70)
    at com.vmware.vim.vimtool.dbprops.TestDbProperties.invoke(TestDbProperties.java:53)
    at com.vmware.vim.vimtool.VimTool.invokeTool(VimTool.java:156)
    at com.vmware.vim.vimtool.VimTool.main(VimTool.java:94)
Error in invocation of testdbprops: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host VMhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
故障分析
主要發生在SQL服務器的缺省端口不是1443導致的;
解決方案
安裝vCenter Server的過程中會生成和驗證JDBC URL,由於缺省走的是1443端口,當變更了端口之後,安裝時,就可以輸入正確的JDBC地址,例如:
jdbc:sqlserver://xxxx:port;databaseName=vcdb
如果選用的是Local Express版本的DB時,則採用如下配置:
jdbc:sqlserver://localhost\\SQLEXP_VIM;databaseName=VIM_VCDB;integratedSecurity=true
 
87、 啓動RHEL Linux虛擬機提示:Cannot setup NMI watchdog on CPU
故障狀態
啓動RHEL的Linux虛擬機時,Console提示如下信息:
Cannot setup NMI watchdog on CPU 0
Cannot setup NMI watchdog on CPU 1
Cannot setup NMI watchdog on CPU 2
Cannot setup NMI watchdog on CPU 3
故障分析
主要時部分Linux操作系統卻升級活了支持Non Maskable Interrupt(NMI),而它會依賴硬件watchdog服務來監控系統是否由於硬件故障導致的異常;
不是所有硬件都支持NMI的,因此,當虛擬機選擇最新的8和7這個虛擬機硬件版本時,容易出現這個問題;
解決方案
關閉掉這個Non Maskable Interrupt(NMI)功能,步驟如下:
1、進入到這臺Linux虛擬機的命令行界面,然後運行如下命令:
#vi /boot/grub/menu.lst
2、在打開的文件裏,更改nmi_watchdog的值,從1改爲0,例如:
t itle Red Hat Enterprise Linux Server (2.6.18-128.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/sda nmi_watchdog=0
initrd /initrd-2.6.18-128.el5.img
3、保存退出後重啓虛擬機再觀察是否正常。
 
88、vCenter升級到5.0後只剩Real time的Performance數據可用
故障狀態
1、升級到vCenter Server 5.0後,Performance數據不再能收集並存存放了;
2、在vCenter Server的Real Time performance裏面只能看到實時數據;
3、過去的一些統計數據依然可以在Overview和Advanced Charts裏看到;
4、在vCenter Server的vpxd日誌文件裏,有類似如下錯誤信息:
Hint 'noexpand' on object 'VPXV_counter_device' is invalid.failed to execute process_temptable[0-2]
故障分析
這個問題是由於VPXV_DEVICE_COUNTER這種數據表的索引信息丟失導致,驗證這些Index是否有問題,可以通過如下步驟來完成:1、利用SQL Management Studio打開vCenter Server的數據庫表;
2、找到對應的表後,找到VPXV_DEVICE_COUNTER然後可以看到類似如下的索引信息:
VPXI_DEVICE_COUNTER_ENTITY
VPXI_DEVICE_COUNTER_INDEX
VPXI_DEVICE_COUNTER_NAME
VPXI_DEVICE_STAT_ID_IDX
3、如果有,則表示正常,如果沒有則需要按照如下方式解決;
解決方案
如果沒有上述幾個索引信息,則按照如下步驟處理:
1、連接到vCenter Server之後進入到如下目錄:C:\Program Files\VMware\Infrastructure\VirtualCenter Server,找到VCDB_mssql.sql這個安裝腳本,利用文本打開,創建缺失的索引:
/*==============================================================*/
/* Index: VPXI_DEVICE_COUNTER_INDEX                             */
/*==============================================================*/
create uOUNTER_NAME_IDX on VPXV_DEVICE_COUNTER(device_name)
;
/*==============================================================*/
/* Index: VPXI_DEVICE_STAT_ID_IDX                               */
/*==============================================================*/
CREATE INDEX VPXI_DEVICE_STAT_ID_IDX on VPXV_DEVICE_COUNTER(stat_id)
;
2、利用SQL Management Studio打開vCenter Server的數據庫,然後執行第二步中的那個VCDB_mssql.sql腳本,點擊Execute,然後在VPXV_DEVICE_COUNTER驗證是否索引正常。
 
89、重定向VUM的日誌到Syslog服務器後掃描ESXi 5.0失敗
故障狀態 VMware vSphere Update Manager had an unknow error 3、在VMware Update Manager的日誌信息裏包含類似如下錯誤信息: [2012-02-27 16:07:48:406 'scanHost20' 3348 ERROR] [hostUpdateBase, 695] Platform Configuration Error: /usr/sbin/esxupdate returned no results, exit status: 1 [2012-02-27 16:07:48:469 'VcTaskMonitor' 3348 DEBUG] [vcTaskMonitor, 60] VcTaskMonitor destroyed for session[522d9d1d-5e88-7f2b-d7fa-5f3d650e1f9a]5237c999-7888-49dd-f065-0191254e9fbb [2012-02-27 16:07:48:469 'SingleHostScanTask.SingleHostScanTask{9}' 3348 ERROR] [singleHostScanTask, 399] SingleHostScan caught exception: Platform Configuration Error: /usr/sbin/esxupdate returned no results, exit status: 1 with code: -1 [2012-02-27 16:07:48:484 'SingleHostScanTask.SingleHostScanTask{9}' 3348 ERROR] [vciTaskBase, 564] Task execution has failed: Platform Configuration Error: /usr/sbin/esxupdate returned no results, exit status: 1 故障分析 #ps | grep vmsyslogd 備註:如果沒有任何輸出信息,則表示服務沒有運行; 3、可以執行如下命令重新載入vmsyslogd服務: #esxcli system  reload 4、再次驗證vmsyslogd服務的運行狀態是否正常: #ps | grep vmsyslogd |
 
文部分內容來自虛擬人網站http://bbs.vmanager.cn