
使用 ESXi 5.0 update1 安裝 Windows 2012 RC ,在最後一步完成安裝後就會卡在轉圈圈的那個黑色畫面再也不會動了.
google發現到要修改一個參數即可,步驟如下:
1.將卡住的 VM 關掉.
2.修改VM的 vmx 檔案,在最下面加上 vmGenCounter.enable = "FALSE"
3.重新啟動 VM
brucebin 發表在 痞客邦 留言(0) 人氣(314)
1.到VMware網頁下載Patch
http://www.vmware.com/patchmgr/download.portal
2.將 Patch 上傳到任一個 DataStore 中
3.到 Service 中將 ESX Shell開啟
4.用 SSH 登入到 ESXi5 主機,到 DataStore 中更新 Patch
esxcli software vib update --depot /vmfs/volumes/<DataStore>/<ForderName>/zipfile.zip
資料來源:http://www.itadmintools.com/2012/02/howto-patch-vmware-vsphere-esxi-50-free.html
brucebin 發表在 痞客邦 留言(0) 人氣(74)
出處來源: http://www.storageonline.com.cn/virtualtech/vmware/how-to-use-the-sysprep-to-create-the-virtual-machine-the-template-for-of-vmware-workstation-8/
brucebin 發表在 痞客邦 留言(0) 人氣(79)
ghettoQuickMigrate.sh - "Quick" Migration for VM(s) running on ESXi 3.5u2+
http://communities.vmware.com/docs/DOC-9400
目前沒有機會,也沒有需要進行此功能,暫時紀錄一下方便未來使用。
brucebin 發表在 痞客邦 留言(0) 人氣(37)
ESXi
預設的Management Network已經是使用VMkernel了,所以直接新增NFS
Host -> Configuration -> Storage -> Add Storage
選擇要 mount 的檔案類型 -> 輸入 NFS Server IP , share Folder , Datastore Name
ESX
預設 ESX 一開始並無法 Mount NFS or iSCSI,所以要新增一個 VMkernel 進行和 NFS Server 連接的行為。
再來要開啟 Firewall 設定後再進行掛載 NFS 即可。
另外如果 NFS Server 有 Firewall 要記得對 VMkernel 的 IP 開放喔。
Add VMkernel
Host -> Configuration -> Networking -> Add Networking
新增VMkernel -> 選擇要新增在哪個vSwitch -> 定義Network Label 和設定 IP
Add Firewall
Host -> Configuration -> Security Profile -> Properites
勾選 NFS Client
Mount NFS
Host -> Configuration -> Storage -> Add Storage
選擇要 mount 的檔案類型 -> 輸入 NFS Server IP , share Folder , Datastore Name
brucebin 發表在 痞客邦 留言(0) 人氣(189)
Enabling root SSH login on an ESX host
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=8375637
ESXi open SSH
1、在控制台上按Alt+F1
2、看到控制台文字後,直接輸入unsupported ,注意此時没有游標,也不會顯示輸入的資料,所以請小心輸入
3、如果輸入的 unsupported 正確,您將看到支持模式和密碼提示,然後輸入 root 密碼進行登錄,成功後就等於進入Linux的控制台
4、修改設定檔:vi /etc/inetd.conf 找到#SSH 这一行,把#去掉,存檔離開 (:wq!)
5、重新啟動ssh: /sbin/services.sh restart
6、執行:ps | grep inetd 查看相對應的pid,然後:kill -HUP <process_id>
這裡有英文的圖文解說, 可以參考看看!
http://www.techhead.co.uk/vmware-esxi-how-to-enable-ssh-connectivity
Using ESXi Shell in ESXi 5.0
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=2004746
brucebin 發表在 痞客邦 留言(0) 人氣(275)

ESX and ESXi 功能面差異
http://blogs.vmware.com/esxi/2009/06/esxi-vs-esx-a-comparison-of-features.html
brucebin 發表在 痞客邦 留言(0) 人氣(515)
因為這邊沒有經費買任何的RAID 卡,也沒有Netapp storage,甚麼都沒有。所以只好找其他的Backup 方案。
將採用 PC 裝 centos 的 software raid 給 ESXi 用 nfs 的方式 mount,再用那個Shell (ghettoVCB.sh) 進行備份。
shell 備份主要採取 備份Snapshot 檔案資料為主,如果之前有Snapshot 的資料要先刪除掉之後才能進行備份。
備份路徑為指定的路徑+名稱+名稱-年-月-日_時-分-秒,目前測試過是正常的也可以正常運行。
適用於ESX(i) 3.5, 4.x+ & 5.x
以下是VMware原廠有一個shell備分方式,先記錄下來方便以後查詢。
http://communities.vmware.com/docs/DOC-8760
http://communities.vmware.com/message/1110839
brucebin 發表在 痞客邦 留言(0) 人氣(450)
目前在安裝Intel SR2520 SAS HD 要安裝VMware有找不到HD的問題,所以找了一下ESX Install Driver的方式。備註一下方式。
Driver Link:搜尋需要的Driver並燒成CD or DVD
http://downloads.vmware.com/d/info/datacenter_cloud_infrastructure/vmware_vsphere/4_0#drivers_tools
VMware Compatibility Guide
http://www.vmware.com/resources/compatibility/search.php
vSphere CLI
http://www.vmware.com/support/developer/vcli/
Intel for VMware driver (在Search 輸入VMware)
http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22vmware%22
Using the Driver CD
1. 使用安裝光碟安裝驅動程式:
The ESX/ESXi driver CD allows you to install new or updated drivers on new or existing ESX or ESXi software installations. You can use the driver CD in three ways:
To install drivers as part of a new ESX software installation (ESX only)
To update or add drivers using vihostupdate on either an ESX or ESXi host
To update or add drivers on existing ESX installations using esxupdate command(ESX only)
To install drivers for devices as part of a new ESX Installation (for ESX only)
Note: This procedure has changed since the ESX 3.5 version of driver CD. You need the ESX installation DVD to begin driver installation.
1. Place the ESX installation DVD in the DVD drive of the host.
2. Accept the terms of the license agreement.
3. Select a keyboard type.
4. When prompted for Custom Drivers, select Yes to install custom drivers.
5. Click Add to eject the ESX installation DVD.
6. Place the driver CD in the DVD drive of the ESX host.
7. Select driver module to import drivers to the ESX host.
8. Click Next to continue.
A dialog box displays the following message: Load the system drivers.
9. Click Yes. After loading the driver module, continue installing ESX.
After the drivers are installed you are prompted to swap the driver CD with the ESX installation DVD.
2. 更新或加入新的驅動程式在現有的 ESX and ESXi 使用 vSphere Command-Line Interface 進行更新
To update or add drivers on existing ESX and ESXi installations using vihostupdate
(for both ESX and ESXi)
1. Power on the ESX or ESXi host.
2. Place the driver CD in the CD-ROM drive of the host where either the vSphere CLI package is installed or vMA is hosted.
3. Mount the driver CD.
4. Navigate to <cd mount point>/offline-bundle/ and locate the INT-intel-lad-ddk-igb-1.3.19.12-offline_bundle-166506.zip file.
5. Run the vihostupdate command to install drivers using the offline bundle.
vihostupdate <conn_options> --install --bundle INT-intel-lad-ddk-igb-1.3.19.12-offline_bundle-166506.zip
For more details on vihostupdate, see the vSphere Command-Line Interface Installation and Reference Guide.
3. 更新或加入新的驅動程式在現有的 ESX 使用 esxupdate 進行更新
To update or add drivers on existing ESX installations using esxupdate (for ESX only)
1. Power on the ESX host and log in as administrator.
2. Place the driver CD in the CD-ROM drive of the ESX host.
3. Mount the driver CD.
4. Navigate to <cd mount point>/offline-bundle/ and locate the INT-intel-lad-ddk-igb-1.3.19.12-offline_bundle-166506.zip file.
5. Run the esxupdate command to install drivers using the offline bundle.
esxupdate --bundle=INT-intel-lad-ddk-igb-1.3.19.12-offline_bundle-166506.zip update
For more information, refer to the ESX 4 Patch Management Guide Tech Note.
參考網址:http://www.vmware.com/support/vsphere4/doc/drivercd/esx40-net-igb_400.1.3.19.12-1.0.4.html
brucebin 發表在 痞客邦 留言(0) 人氣(1,532)
esxi 對 vm 的 command 功能
列出註冊在esxi上面的機器名稱,等簡易資料。超級重要的喔。
vim-cmd vmsvc/getallvms
顯示該VM目前Power狀態(開機/關機),後面的48是ID。要下vim-cmd vmsvc/getallvms取得。
vim-cmd vmsvc/power.getstate 48
開機
vim-cmd vmsvc/power.on 48
強制關機
vim-cmd vmsvc/power.off 48
送出關機指令給VM後再關機
vim-cmd vmsvc/power.shutdown 48
暫停
vim-cmd vmsvc/power.suspend 48
取得完整的指令
vim-cmd vmsvc
help
vim-cmd help [command]
ex.
vim-cmd help vmsvc/power.on
所有對vm進行的動作都是對VMID進行的所以一定要知道ID喔
================================================================================
開機啟動其中一台VM,方法有兩種:
方法一:進入vSphere Client->Configuration->左邊的Virtual Machine Startup/Shutdown->右上方的Properties
請在這邊設定要Automatic Startup的機器就可以了。
方法二:修改/etc/vmware/hostd/vmAutoStart.xml
<ConfigRoot>
<AutoStartOrder>
<_length>1</_length> -------------------------------這邊是預設的但是數字需要跟段落做增加喔
<_type>vim.host.AutoStartManager.AutoPowerInfo[]</_type>
---------------------------------------------------------------這邊是插入的start
<e id="0"> --------------------------------------------0是第一個,有幾個就加幾段並新增編號即可
<_type>vim.host.AutoStartManager.AutoPowerInfo</_type>
<key>
<_type>vim.VirtualMachine</_type>
<moid>672</moid> -------------------------------------VMID
</key>
<startAction>PowerOn</startAction>
<startDelay>-1</startDelay>
<startOrder>1</startOrder>
<stopAction>SystemDefault</stopAction>
<stopDelay>-1</stopDelay>
<waitForHeartbeat>systemDefault</waitForHeartbeat>
</e>
---------------------------------------------------------------這邊是插入的end
</AutoStartOrder>
<SystemDefaults>
<_type>vim.host.AutoStartManager.SystemDefaults</_type>
<enabled>true</enabled> ------------------------------這邊是插入的啟動AutoStart
<startDelay>120</startDelay>
<stopAction>PowerOff</stopAction>
<stopDelay>120</stopDelay>
<waitForHeartbeat>false</waitForHeartbeat>
</SystemDefaults>
</ConfigRoot>
================================================================================
這邊是好久之前遇到的問題了順便再寫一次上來
ESXI 遇到 FILE LOCK 處理方式
前幾天我在進行 vmware convent 時發生了一些問題,導致於 convent 不完全
所以必須要進行刪除虛擬機器的動作
但是發生了File Lock無法刪除檔案的問題
詢問google 後有以下的處理方式可以避免使用重開機的方式,而且空間也確實會放出來
指令如下:
/sbin/services.sh stop & /sbin/services.sh start
會停止啟動的服務資料如下:
# VMvisor chkconfig database
/etc/init.d/ntpd
/etc/init.d/hostd
/etc/init.d/slpd
/etc/init.d/sfcbd
/etc/init.d/wsmand
/etc/init.d/sfcbd-watchdog
brucebin 發表在 痞客邦 留言(0) 人氣(2,384)