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) 人氣()

出處來源: 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) 人氣()

不小心將OUTLOOK2010設定為離線工作,不會恢復為連線工作.所以紀錄一下修正方式
http://support.microsoft.com/kb/2601637/zh-tw

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

目前有需要對Web Server進行壓力測試的需求,所以找了兩個方式分別先計錄一下方便日後再使用。
1.使用 ApacheBench 進行網站的壓力測試
資料來源:http://blog.miniasp.com/post/2008/06/Using-ApacheBench-ab-to-to-Web-stress-test.aspx
2.使用IIS 6.0 Resource Kit Tools 中的 TinyGet 工具
資料來源:http://blog.miniasp.com/post/2009/11/09/Useful-tools-IIS6-Resource-Kit-Tools-and-TinyGet.aspx
目前需要的是Server可以連接多少的連線數,以及資料庫的Loading可以到多高。
比較適合我的是使用第一種方法:
建立測試網頁,針對該網頁進行連線數的測試可以得知,系統可承載的連線數是多少。

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

網站被標示【已知有害的網站】處理解決方法:
1.確認網站管理介面的密碼有符合複雜性機制,如果可以請全部變更。
2.確認FTP密碼有符合複雜性機制,如果可以請變更。
3.確認SQL密碼有符合複雜性機制,如果可以請變更。
4.確認網頁資料是否有異動過的紀錄,或是修改時間是比較新的時間,如果有請重新上傳檔案。最好是可以全部刪除並全部重新上傳。
5.要求審查您的網站是否含有惡意軟體
   先註冊登入Google的「網站管理員工具」首頁
   http://www.google.com/webmasters/tools/
   建立你的網站為:被診斷的網站
   然後,請您在「網站管理員工具」首頁上,選取想要審查的網站。
      按一下 [診斷],然後再點選 [惡意軟體]。
      按一下 [要求審查]。
等大約一至兩天後,google確認沒有問題就會將您的網站,由有害的網站選項中移除。
如果您已清除網站上的惡意內容,但過幾天之後警告仍然存在,則可能是您尚未發現和移除所有網站上的問題內容。
請重新查詢「網站管理員工具」,以便瞭解哪些網址可能有問題,不過google並不會列出所有的問題網址。

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

ghettoQuickMigrate.sh - "Quick" Migration for VM(s) running on ESXi 3.5u2+
http://communities.vmware.com/docs/DOC-9400
目前沒有機會,也沒有需要進行此功能,暫時紀錄一下方便未來使用。

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

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) 人氣()

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) 人氣()

esxi function jpg
ESX and ESXi 功能面差異
http://blogs.vmware.com/esxi/2009/06/esxi-vs-esx-a-comparison-of-features.html
  

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

因為這邊沒有經費買任何的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) 人氣()

目前在安裝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) 人氣()

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) 人氣()

« 1 2 3 4 5
Blog Stats
⚠️

成人內容提醒

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

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