實戰(zhàn):IBM Systems Director VMControl安裝攻略
眾所周知,Systems Director是IBM的一款重量級系統(tǒng)管理套件,如今,該平臺再添虛擬化管理新軍-VMControl。VMControl是一種跨平臺的解決方案,該軟件可以幫助用戶發(fā)現(xiàn)、顯示、監(jiān)控并定位虛擬資源,創(chuàng)建并管理虛擬服務(wù)器;還可以跨越IBM System z 主機(jī),基于System x x86服務(wù)器,刀片服務(wù)器以及 Power Systems AIX、Linux和 i 平臺建立一個統(tǒng)一界面,用以部署并管理工作負(fù)載。軟件能夠?qū)μ摂M服務(wù)器進(jìn)行生命周期管理,可以創(chuàng)建、修改并刪除虛擬資源,同時能夠?qū)①Y源轉(zhuǎn)移到其他地方。
本文介紹IBM Systems Director VMControl的安裝流程,供各位網(wǎng)友參考。
一、安裝 IBM Systems Director VMControl
以使用安裝程序來安裝 IBM Systems Director VMControl,也可以使用響應(yīng)文件以無人照管方式執(zhí)行安裝。這兩種方法都將同時安裝 IBM Systems Director VMControl 的免費(fèi)功能以及 IBM Systems Director VMControl 映像管理器的 60 天評估許可證。評估許可證到期后,我們可以繼續(xù)使用 IBM Systems Director VMControl 的免費(fèi)功能,并可以購買許可證以繼續(xù)使用 IBM Systems Director VMControl 映像管理器。
(一)安裝 IBM Systems Director VMControl 評估許可證
我們可以使用安裝程序來安裝 IBM Systems Director VMControl 的評估許可證。此安裝將使我們能夠訪問 IBM Systems Director VMControl 的免費(fèi)功能以及 IBM Systems Director VMControl 映像管理器的 60 天評估許可證。
在安裝 IBM Systems Director VMControl 之前,請執(zhí)行下列任務(wù):
確保已安裝 IBM Systems Director V6.1.1.1。
確保目標(biāo)系統(tǒng)滿足所有特定于 IBM Systems Director VMControl 的先決條件。有關(guān)信息,請參閱 IBM Systems Director 的硬件和軟件要求。
在 Red Hat Enterprise Linux 上,必須先將 SELinux 禁用,然后才能安裝 IBM Systems Director VMControl。要檢查 SELinux 狀態(tài),請輸入以下命令:sestatus。如果未將 SELinux 禁用,請執(zhí)行下列步驟:
輸入以下命令:#vi /etc/selinux/config
通過指定 SELINUX=disabled 將 SELinux 禁用。
輸入以下命令以重新引導(dǎo)系統(tǒng):#reboot
登錄到系統(tǒng),然后輸入以下命令以檢查 SELinux 狀態(tài):sestatus。
SELinux 狀態(tài)應(yīng)該是”已禁用”。
提示: 可以通過輸入以下命令暫時地將 SELinux 禁用:/usr/sbin/setenforce 0
下載 IBM Systems Director VMControl 安裝程序,如下所示:
訪問 IBM Systems Director Downloads Web 站點,地址如下:
http://www.ibm.com/systems/management/director/downloads/plugins.html
單擊與 IBM Systems Director VMControl 相對應(yīng)的 Download。
選擇要下載的軟件包:
操作系統(tǒng) 下載軟件包
AIX SysDir_VMControl_2_1_AIX.tar.gz
Linux for pSeries SysDir_VMControl_2_1_Linux_Power.tar.gz
Linux for xSeries SysDir_VMControl_2_1_Linux_x86.tar.gz
Linux for zSeries SysDir_VMControl_2_1_Linux_System_z.tar.gz
Windows SysDir_VMControl_2_1_Windows.zip
將下載的安裝軟件包復(fù)制到每個要安裝 IBM Systems Director VMControl 的 IBM Systems Director Server 上的本地驅(qū)動器。請確保根據(jù) IBM Systems Director Server 上運(yùn)行的操作系統(tǒng)復(fù)制正確的軟件包。
要將安裝軟件包的內(nèi)容解壓縮,請輸入以下命令:
對于 AIX 或 Linux:
gzip -cd <軟件包名稱> | tar -xvf -其中,<軟件包名稱>是安裝軟件包的文件名。
對于 Windows:
unzip <軟件包名稱>其中,<軟件包名稱>是安裝軟件包的文件名。
要安裝 IBM Systems Director VMControl 評估許可證,請執(zhí)行下列步驟:
1、切換到安裝文件所在的目錄。
2、啟動 IBM Systems Director VMControl 程序安裝文件。
注: 如果要使用安裝向?qū)г?AIX 和 Linux 上執(zhí)行安裝,那么必須在支持圖形的會話中啟動安裝程序。另外,也可以使用命令行以無人照管方式安裝 IBM Systems Director VMControl。(表1)
這將啟動安裝向?qū)Р@示”歡迎”頁面。
3、按照安裝向?qū)е械闹甘拘畔?zhí)行操作,以便安裝 IBM Systems Director VMControl。 安裝完成后,IBM Systems Director VMControl 將顯示在 IBM Systems Director 的”歡迎”頁面中。
(二)安裝 IBM Systems Director VMControl 永久許可證密鑰
在 IBM Systems Director VMControl 的 60 天評估許可證到期之后,我們可以購買許可證以便繼續(xù)使用 IBM Systems Director VMControl 映像管理器。我們可以繼續(xù)使用 IBM Systems Director VMControl 的免費(fèi)功能。如果購買 IBM Systems Director VMControl 映像管理器 的許可證,那么必須安裝永久許可證密鑰才能繼續(xù)使用 IBM Systems Director VMControl 映像管理器。
必須先安裝 IBM Systems Director VMControl 評估許可證,然后才能安裝 IBM Systems Director VMControl 的永久許可證密鑰。
在 Red Hat Enterprise Linux 上,必須先將 SELinux 禁用,然后才能安裝 IBM Systems Director VMControl。要檢查 SELinux 狀態(tài),請輸入以下命令:sestatus。如果未將 SELinux 禁用,請執(zhí)行下列步驟:
1、輸入以下命令:#vi /etc/selinux/config
2、通過指定 SELINUX=disabled 將 SELinux 禁用。
3、輸入以下命令以重新引導(dǎo)系統(tǒng):#reboot
4、登錄到系統(tǒng),然后輸入以下命令以檢查 SELinux 狀態(tài):sestatus。
SELinux 狀態(tài)應(yīng)該是”已禁用”。
提示: 可以通過輸入以下命令暫時地將 SELinux 禁用:/usr/sbin/setenforce 0
下載 IBM Systems Director VMControl 安裝程序,如下所示:
1、訪問 IBM Systems Director Downloads Web 站點,地址如下:
http://www.ibm.com/systems/management/director/downloads/plugins.html
2、單擊與 IBM Systems Director VMControl 相對應(yīng)的 Download。
3、選擇要下載的軟件包:(表2)
4、將下載的安裝軟件包復(fù)制到每個要安裝 IBM Systems Director VMControl 的 IBM Systems Director Server 上的本地驅(qū)動器。請確保根據(jù) IBM Systems Director Server 上運(yùn)行的操作系統(tǒng)復(fù)制正確的軟件包。
5、要將安裝軟件包的內(nèi)容解壓縮,請輸入以下命令:
對于 AIX 或 Linux:
gzip -cd <軟件包名稱> | tar -xvf -其中,<軟件包名稱>是安裝軟件包的文件名。
對于 Windows:
unzip <軟件包名稱>其中,<軟件包名稱>是安裝軟件包的文件名。
要安裝 IBM Systems Director VMControl,請執(zhí)行下列步驟:
1、要啟動安裝,請啟動 IBM Systems Director VMControl 程序可執(zhí)行文件:
注: 如果要使用安裝向?qū)г?AIX 和 Linux 上執(zhí)行安裝,那么必須在支持圖形的會話中啟動安裝程序。另外,也可以使用命令行以無人照管方式安裝 IBM Systems Director VMControl。(表3)
這將啟動安裝向?qū)Р@示”歡迎”頁面。
2、按照安裝向?qū)е械闹甘拘畔?zhí)行操作,以便安裝 IBM Systems Director VMControl。 安裝完成后,IBM Systems Director VMControl 將顯示在 IBM Systems Director 的”歡迎”頁面中。
(三)以無人照管方式安裝 IBM Systems Director VMControl
我們可以使用響應(yīng)文件以無人照管方式來安裝 IBM Systems Director VMControl。此安裝將使我們能夠訪問 IBM Systems Director VMControl 的免費(fèi)功能以及 IBM Systems Director VMControl 映像管理器的 60 天評估許可證。
在安裝 IBM Systems Director VMControl 之前,請執(zhí)行下列任務(wù):
確保已安裝 IBM Systems Director V6.1.1.1。
確保目標(biāo)系統(tǒng)滿足所有特定于 IBM Systems Director VMControl 的先決條件。
在 Red Hat Enterprise Linux 上,必須先將 SELinux 禁用,然后才能安裝 IBM Systems Director VMControl。要檢查 SELinux 狀態(tài),請輸入以下命令:sestatus。如果未將 SELinux 禁用,請執(zhí)行下列步驟:
1、輸入以下命令:#vi /etc/selinux/config
2、通過指定 SELINUX=disabled 將 SELinux 禁用。
3、輸入以下命令以重新引導(dǎo)系統(tǒng):#reboot
4、登錄到系統(tǒng),然后輸入以下命令以檢查 SELinux 狀態(tài):sestatus。
SELinux 狀態(tài)應(yīng)該是”已禁用”。
提示: 可以通過輸入以下命令暫時地將 SELinux 禁用:/usr/sbin/setenforce 0
下載 IBM Systems Director VMControl 安裝程序,如下所示:
1、訪問 IBM Systems Director Downloads Web 站點,地址如下:
http://www.ibm.com/systems/management/director/downloads/plugins.html
2、單擊與 IBM Systems Director VMControl 相對應(yīng)的 Download。
3、選擇要下載的軟件包:(表4)
注: 必須先安裝 IBM Systems Director VMControl 評估許可證,然后才能安裝 IBM Systems Director VMControl 的永久許可證密鑰。
4、將下載的安裝軟件包復(fù)制到每個要安裝 IBM Systems Director VMControl 的 IBM Systems Director Server 上的本地驅(qū)動器。請確保根據(jù) IBM Systems Director Server 上運(yùn)行的操作系統(tǒng)復(fù)制正確的軟件包。
5、要將安裝軟件包的內(nèi)容解壓縮,請輸入以下命令:
對于 AIX 或 Linux:
gzip -cd <軟件包名稱> | tar -xvf -其中,<軟件包名稱>是安裝軟件包的文件名。
對于 Windows:
unzip <軟件包名稱>其中,<軟件包名稱>是安裝軟件包的文件名。
以無人照管方式安裝 IBM Systems Director VMControl 時,響應(yīng)文件將提供對安裝向?qū)岢龅膯栴}的回答。
要設(shè)置并運(yùn)行 IBM Systems Director VMControl 的無人照管安裝,請執(zhí)行下列步驟:
1、在 ASCII 文本編輯器中打開 installer.properties 文件。
2、借助 installer.properties 響應(yīng)文件中的注釋來修改該響應(yīng)文件。
3、保存修改后的 installer.properties 響應(yīng)文件。
4、打開命令提示符,然后切換到 IBM Systems Director VMControl 安裝文件所在的目錄。
5、在命令提示符中,輸入適當(dāng)?shù)陌惭b命令:(表5)
檢查適當(dāng)?shù)娜罩疚募源_定安裝是否成功完成:
對于 AIX 和 Linux:
/opt/ibm/director/VMControlManager/installLog.txt
對于 Windows:
…/Director/VMControlManager/installLog.txt
#p#
二、安裝用于 NIM 的 IBM Systems Director VMControl 子代理程序
要讓 IBM Systems Director VMControl 管理包含 AIX mksysb 映像的虛擬設(shè)備,在環(huán)境中必須存在經(jīng)過正確安裝和配置的 NIM 主控機(jī)。此 NIM 主控機(jī)必須由 IBM Systems Director Server 發(fā)現(xiàn)、訪問和收集庫存。請使用下列指示信息來正確地準(zhǔn)備 NIM 主控機(jī)。
確保系統(tǒng)符合下列要求:
- 系統(tǒng)正在運(yùn)行 AIX V6.1.3 或更高版本
- 已安裝下列文件集:
dsm.core
openssh.base.client
openssh.base.server
openssh.license
openssl.base
openssl.license
- 已在系統(tǒng)上安裝 Common Agent V6.1.1.1 或更高版本
- 系統(tǒng)已被 IBM Systems Director Server 發(fā)現(xiàn)、訪問并收集庫存
- 系統(tǒng)還必須被配置成 NIM 主控機(jī)系統(tǒng)。要將系統(tǒng)配置成 NIM 主控機(jī),請運(yùn)行以下命令:
nim_master_setup -a device=路徑 [-a disk=磁盤名稱] -B其中,路徑是 AIX bos.sysmgt 軟件包所在目錄的絕對路徑。(可選)我們可以使用 disk=磁盤名稱屬性來指定用于存放必需的 /export/nim 文件系統(tǒng)的物理卷。例如,如果要將 SAN 用于 /export/nim 文件系統(tǒng),那么必須使用 disk=磁盤名稱屬性。
注: 運(yùn)行 nim_master_setup 命令可能需要 20 分鐘或更長時間。
- 如果 NIM 映像存儲庫(NIM 主控機(jī))通過一個網(wǎng)絡(luò)適配器連接到 IBM Systems Director Server ,并通過另一個網(wǎng)絡(luò)適配器連接到我們要部署虛擬設(shè)備的虛擬服務(wù)器,請完成下列步驟以便為部署任務(wù)配置網(wǎng)絡(luò)。
1、登錄到 NIM 主控機(jī)。
2、當(dāng)我們運(yùn)行 nim_master_setup 以配置 NIM 主控機(jī)時,已創(chuàng)建 master_net 網(wǎng)絡(luò)對象以表示與 NIM 主控機(jī)的主網(wǎng)絡(luò)接口相關(guān)聯(lián)的網(wǎng)絡(luò)。如果 NIM 主控機(jī)帶有將用于部署虛擬服務(wù)器的輔助接口,那么我們需要創(chuàng)建一個或多個附加的 NIM 網(wǎng)絡(luò)定義。
注: 請勿定義以另一個 NIM 網(wǎng)絡(luò)對象的名稱開頭的 NIM 網(wǎng)絡(luò)對象名稱。
A、為 NIM 主控機(jī)的輔助網(wǎng)絡(luò)接口定義 NIM 網(wǎng)絡(luò)對象。例如:
nim -o define -t ent -a net_addr=1.2.3.4 -a snm=255.255.255.0 輔助網(wǎng)絡(luò)其中,1.2.3.4 是正在定義的網(wǎng)絡(luò)的 IP 地址,255.255.255.0 是該網(wǎng)絡(luò)的子網(wǎng)掩碼,輔助網(wǎng)絡(luò)是我們正在創(chuàng)建的 NIM 網(wǎng)絡(luò)對象名稱。有關(guān)更多信息,請參閱 IBM Systems 信息中心中的”定義 NIM 網(wǎng)絡(luò)”主題。
B、如果要部署的虛擬服務(wù)器與 NIM 主控機(jī)的輔助接口在同一個網(wǎng)絡(luò)中,請?zhí)^此步驟。如果它在另一個網(wǎng)絡(luò)中,那么必須為虛擬服務(wù)器定義另一個 NIM 網(wǎng)絡(luò)對象。例如:
nim -o define -t ent -a net_addr=2.2.3.4 -a snm=255.255.255.0 部署網(wǎng)絡(luò)其中,2.2.3.4 是正在定義的網(wǎng)絡(luò)的 IP 地址,255.255.255.0 是該網(wǎng)絡(luò)的子網(wǎng)掩碼,部署網(wǎng)絡(luò)是我們正在創(chuàng)建的 NIM 對象名稱。
3、將我們創(chuàng)建的輔助網(wǎng)絡(luò)網(wǎng)絡(luò)對象連接到 NIM 主控機(jī)資源,例如:
nim -o change -a if2=’輔助網(wǎng)絡(luò) 1.2.3.4 0′ -a cable_type2=N/A master
4、如果已創(chuàng)建新的部署網(wǎng)絡(luò)網(wǎng)絡(luò),那么必須在它與輔助網(wǎng)絡(luò)網(wǎng)絡(luò)對象之間建立靜態(tài)路由。
可以通過兩種方法中的一種來安裝用于 NIM 的 IBM Systems Director VMControl 子代理程序。
(一)使用安裝向?qū)戆惭b用于 NIM 的 IBM Systems Director VMControl 子代理程序
我們可以使用 IBM Systems Director 的”安裝代理程序”向?qū)г?NIM 主控機(jī)系統(tǒng)上安裝用于 NIM 的 IBM Systems Director VMControl 子代理程序。可以從 IBM Systems Director VMControl 的”摘要”頁面或者 IBM Systems Director 的”管理發(fā)行版”任務(wù)中啟動此向?qū)А?/p>
從 IBM Systems Director VMControl 的”摘要”頁面中執(zhí)行安裝
要從 IBM Systems Director VMControl 的”摘要”頁面中安裝用于 NIM 的 IBM Systems Director VMControl 子代理程序,請在”摘要”頁面上單擊安裝代理程序。然后,按照安裝向?qū)е械闹甘拘畔?zhí)行操作,以便在 NIM 主控機(jī)系統(tǒng)上安裝用于 NIM 的子代理程序(CommonAgentSubagent_VMControl_NIM)。
從 IBM Systems Director 的”管理發(fā)行版”任務(wù)中執(zhí)行安裝
要從 IBM Systems Director 的”管理發(fā)行版”任務(wù)中安裝用于 NIM 的 IBM Systems Director VMControl 子代理程序,請執(zhí)行下列步驟:
1、在 IBM Systems Director 導(dǎo)航窗格中,展開管理發(fā)行版。
2、單擊代理程序。
3、在”代理程序”頁面上,單擊 Common Agent 子代理程序軟件包。
4、在”Common Agent 子代理程序軟件包”視圖中,選擇用于 NIM 的子代理程序。
5、單擊菜單欄中的操作,然后選擇管理發(fā)行版 > 安裝代理程序。
6、按照安裝向?qū)е械闹甘拘畔?zhí)行操作,以便在 NIM 主控機(jī)系統(tǒng)上安裝用于 NIM 的子代理程序(CommonAgentSubagent_VMControl_NIM)。
要驗證用于 NIM 的 IBM Systems Director VMControl 子代理程序是否安裝成功,請登錄到正在其中安裝子代理程序的系統(tǒng),然后在以下錯誤日志中查找以 DNZIMN 開頭的消息:
Director/agent/logs/trace-log-0.log
其中,Director 是 IBM Systems Director 的安裝路徑。
【編輯推薦】