PIXNET Logo登入

頭昏腦脹的小小MIS記錄資料

跳到主文

記錄工作上常會遇到的特殊問題

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 7月 20 週五 201218:00
  • VMware ESXi / Workstation 無法啟動 Windows 2012 RC


使用 ESXi 5.0 update1 安裝 Windows 2012 RC ,在最後一步完成安裝後就會卡在轉圈圈的那個黑色畫面再也不會動了.
google發現到要修改一個參數即可,步驟如下:
1.將卡住的 VM 關掉.
2.修改VM的 vmx 檔案,在最下面加上 vmGenCounter.enable = "FALSE"
3.重新啟動 VM 
(繼續閱讀...)
文章標籤

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

  • 個人分類:VMware
▲top
  • 4月 05 週四 201218:35
  • Update VMware vSphere ESXi5 方法及步驟


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)

  • 個人分類:VMware
▲top
  • 3月 29 週四 201211:06
  • 利用Sysprep 製作 VMware Workstation 8 模板

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

  • 個人分類:VMware
▲top
  • 9月 07 週三 201113:42
  • ESXi 3.5 的快速部署方案

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

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

  • 個人分類:VMware
▲top
  • 9月 07 週三 201110:11
  • ESX(i) 3.5 mount NFS 步驟

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)

  • 個人分類:VMware
▲top
  • 9月 06 週二 201116:47
  • ESX and ESXi 開啟 SSH 功能

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)

  • 個人分類:VMware
▲top
  • 9月 06 週二 201116:11
  • ESX and ESXi 差異

esxi function jpg
ESX and ESXi 功能面差異
http://blogs.vmware.com/esxi/2009/06/esxi-vs-esx-a-comparison-of-features.html
  
(繼續閱讀...)
文章標籤

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

  • 個人分類:VMware
▲top
  • 9月 02 週五 201111:30
  • Free VMware Backup 方案

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

  • 個人分類:VMware
▲top
  • 8月 25 週四 201117:34
  • Esxi install drivers

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

  • 個人分類:VMware
▲top
  • 8月 12 週五 201111:26
  • esxi 對 vm 的 command 功能

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)

  • 個人分類:VMware
▲top
12»

自訂側欄

自訂側欄

個人資訊

brucebin
暱稱:
brucebin
分類:
不設分類
好友:
累積中
地區:

熱門文章

  • (9,556)如何解決 Outlook 2007 / 2010 中的離線狀況
  • (5,463)修改Outlook電子郵件規則時會發生"規則已被停用"的錯誤訊息
  • (3,868)幾種轉換虛擬機器格式的工具
  • (2,863)[轉貼]Fckeditor 漏洞整理
  • (1,532)Esxi install drivers
  • (601)DOS指令集
  • (314)VMware ESXi / Workstation 無法啟動 Windows 2012 RC
  • (298)Putty 中文顯示或輸入的相關設定資料
  • (151)phpmyadmin 使用Big5語系的問題
  • (46)CVSUP 安裝更新

文章分類

  • MAC (1)
  • Hyper-v (1)
  • Centos (2)
  • Ubuntu (1)
  • PLESK (1)
  • 套件問題 (2)
  • php (2)
  • MSSQL (1)
  • office (4)
  • ASP.NET (2)
  • WINDOWS (11)
  • VMware (12)
  • MYSQL (2)
  • FreeBsd5.4 (13)
  • 未分類文章 (1)

最新文章

  • Mac OS X Mountain Lion InstallESD.dmg 轉 ISO
  • Centos 忘記 root 密碼
  • 幾種轉換虛擬機器格式的工具
  • Windows 8 程式取得管理者權限 或 關閉 UAC 方法
  • Windows 8 啟動時發生"DNS不存在"的錯誤
  • Centos 在 VMware Workstation 開機網卡不會啟動
  • Ubuntu 11.10 檢視CPU溫度
  • PHP 讀取/寫入範例
  • Windows 2008 執行 Sysprep 的方式
  • VMware ESXi / Workstation 無法啟動 Windows 2012 RC

最新留言

  • [07/12/25] uk 於文章「session_start在UTF8出現...」留言:
    謝謝賓哥分享 原來最近遇到的都是屬於這種的 .........

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: