Ads 468x60px

Pages

1/15/2013

Dell or HP伺服器安裝VMware ESXi 出現找不到網卡的訊息解決方式

備份一下


大概去年(2012)開始,Dell or HP的伺服器(PowerEdge R720 or DL380G8)
直接利用從 VMware 網站上下載的  ESXi 檔案安裝時
都會出現找不到網卡(No Network Adatpers)的訊息
然後就安裝不能...

解決方案就是從原廠網站去下載客製化過的ESXi安裝程式了

Dell 的請參考底下網頁進行操作下載
Dell's Customization of VMware ESXi and Its Advantages
步驟大概就是

  1. 進入 http://support.dell.com
  2. Select ‘Support for Enterprise IT’
  3. Go to ‘Drivers and Downloads’
  4. select ‘Choose from a list of all Dell products’ option
  5. Select ‘Servers, Storage, & Networking’ option
  6. Select ‘PowerEdge’ 
  7. Select the system as per your configuration
  8. Once the system is selected, Select the ‘Operating System’ as ESXi 4.x or ESXi 5.x as per your requirement 
  9. Click ‘Enterprise Solutions’ sub tab 
  10. The ISO image is listed there


HP的可以參考底下連結
不過點了之後,是轉到 VMware 網站下載就是了
Customize VMware ESXi Images for HP ProLiant Servers


HP網站的說明
The Base VMware ESX/ESXi 4.1 and VMware ESXi 5.x Operating System Media From VMware Does Not Include the Required Network and Storage Device Drivers to Complete Installation on HP ProLiant Gen8 Servers


12/13/2012

VMware tools安裝時的錯誤訊息

安裝 CentOS 若選擇最小安裝或基本安裝時
有些套件不會安裝到,導致安裝 VMware tools 時會出現
找不到 gcc 路徑,錯誤訊息如下:

what is the location of the directory of C header files that match your running kernel

遇到這種狀況時
得先另外安裝 gcc, kernel-devel  這兩個套件
才有辦法繼續安裝 VMware Tools

在網路有通的前提之下
可以利用 yum 進行安裝
指令分別為

yum install gcc

yum install kernel-devel

安裝過程照畫面說明操作即可
GCC 和 kernel-devel 安裝完成後
再安裝 VMware Tools 即可

Refer.: wmware提示What is the location of the directory of C header files that match your running kernel?

11/09/2012

HP A5500 恢復原廠預設值

HP A系列的設備多半來自併購H3C的產品線
其指令和原本的 HP ProCurve 不大一樣
將 HP A5500 設定恢復原廠預設值的指令如下:
(其它A系列的應該也適用)

<HP>rest saved

至於 HP 與 Cisco 網路交換器指令的對照表,則可以參考底下
HP原廠的文件

10/18/2012

刪除遠端桌面連線Session

遠端桌面算是非常好用的工具之一
不過Windows 中預設的連線數量只有兩個
若遇到網路不穩定導致連上卻斷掉,斷掉又重連
重複個兩三次之後,就會再也連不上,必須等到
之前的遠端桌面 session 時間到了自動斷開,才能夠再繼續連上
之前因為臨時網路不穩的關係,為這個小煩了一下

還好已經有別人遇過這種煩惱
所以有分享出刪除遠端桌面 session 的說明
底下就是參考網址:
刪除 Windows RDP 遠端連線 Session
http://www.weithenn.org/cgi-bin/wiki.pl?刪除 Windows_RDP_遠端連線_Session

要刪除遠端桌面的指令在 Windows 中都有內建簡單說明如下
  • C:\>qwinsta /? 顯示遠端桌面工作階段的資訊。
  • C:\>rwinsta /? 將工作階段子系統硬體及軟體重設成已知的初始值。
簡單講,利用 qwinsta 可以得知目前有哪些遠端桌面seesion存在,
知道後再利用 rwinsta 將多餘的遠端桌面 session 刪除

底下是範例
C:\>qwinsta
工作階段名稱
使用者名稱
識別碼
狀態
類型
裝置
console
0
已連線
wdcon

rdp-tcp
65536
接聽
rdpwd


Administrator
1
已中斷連線
rdpwd

>rdp-tcp#3
Administrator
3
使用中
rpdwd

上述指令輸出的資訊,識別碼 3為目前使用中的遠端桌面 session, 識別碼1則是已經斷掉但還佔用中的連線,在這種狀況下,就要把識別碼 1 的 session 刪除,刪除使用底下指令:

C:\>rwinsta 1

這樣就刪除啦~

10/15/2012

Linux版本查詢

利用指令查詢使用的 Linux


這個指令比較精簡,直接知道作業系統的分支版本(CentOS)與版號(5)
[root]# cat /etc/*-release
CentOS release 5 (Final)

這個指令則是列出較詳細的資訊,說明通過 LBS 認證的分支版本號碼以及相關內容
[root]#  lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5 (Final)
Release:        5
Codename:       Final


參考網址:

  1. 查詢Linux 系統版本, http://www.ihao.org/dz5/thread-99-1-4.html
  2. 如何查詢 Linux 的種類與版本 ( Linux Standard Base ) , http://blog.miniasp.com/post/2009/02/25/How-to-query-Linux-distribution-and-version-information.aspx

8/28/2012

D Link網路設備常用指令 Part 1


D Link 網路設備常用指令
以下 1-5 為 console 介面使用,6-7 則為 web 介面
相關指令內容取自原廠 DGS 3120-24TC 說明書
D Link 設備預設的 web 介面IP為 10.10.10.90
console 介面的 speed 需指定為 115200

  1. 若要建立 D-Link Switch 的使用者帳號,請參考以下指令:
    create account admin admin
    Enter a case-sensitive new password:********
    Enter the new password again for confirmation:********
    上述指令為建立 admin 這個帳號,輸入完成後會需要輸入兩次密碼確認
  2. 帳號、密碼設定後,若欲修改密碼,請參考以下指令:
    config account <username>
    輸入上述指令後,會出現要求輸入舊密碼,然後再輸入兩次新密碼即可
  3. 顯示設備的IP、Gateway相關資訊
    show ipif
  4. 設定系統管理IP
    config ipif System ipaddress xxx.xxx.xxx.xxx/24
    子網路遮罩(submask)依照原廠說明書是以上述表示方式,而一般 255.255.255.0
  5. vlan 相關範例說明:
    config vlan MGM add untagged 1:1-1:21,1:23 advertisement enable
    上述指令為將 Port 1-21, 23加入vlan MGM當中,advertisement設定為 enable 則是用於宣告此vlan,advertisement 設定僅 D-Link 設備才有,建議打開。
  6. LLDP 設定與相關指令:
    a. 進入Switch Web介面,L2 Features / LLDP / LLDP / LLDP Global Setting
      將LLDP State與LLDP Forward Message更改為 enable,此頁面下方的System Name是在System Configuration / System Information Setting 中設定。
    b. 進入Switch Web介面,L2 Features / LLDP / LLDP / LLDP Baasic TLVs Setting
      假設所有的 port 都開 lldp,則From Port 選 01, To Port 選 24,再將其中的 Port Description, System Name, System Description,System Capabilities(這個不確定作用,但勾了好像沒壞處),全部勾選, 再按下 apply 即可。
  7. 關於D Link 設備 vlan 的認知
    D-Link 的 vlan 是認名稱而非 vlan ID. 若管理用的 vlan 並非使用預設的 vlan (名稱: default),則必需在 Management / IP Interface / System IP Address Settings 中將 Management VLAN Name 更改為要使用的管理 vlan 名稱




8/16/2012

EXSi5: 開啟local/remote shell 後主機出現警告訊息

安裝 VMware ESXi 5 之後
若將 Trouble shooting 中的 ssh 功能開啟(enable)
則透過 vSphere Client 連入主機
會一直出現內有驚嘆號的黃色三角形警告訊息,如下圖紅色框所示:




由於 ssh 功能是確定要開啟使用,但一直看到這種警告訊息超不舒服
總是會以為那邊有問題...
所幸這個警告訊息可以關閉,作法如下:
  1. 點選該台主機,並切換到 Configuration 標籤頁,接著再點選左方項目中的 Software / Advanced Settings 
  2. 在 Advanced Settings 中,找到 UserVars 選項並點選,然後將右邊最底下的項目UserVars.SuppressShellWarning 中的數值,從0改為1,接著再按OK即可。詳細設定位置可參考下圖:
SuppressShellWarning

完成前述步驟後,原本在主機圖示中含有驚嘆號的黃色三角形就不見啦。


參考網址:
ESXi 5: Suppressing the local/remote shell warning
http://www.yellow-bricks.com/2011/07/21/esxi-5-suppressing-the-localremote-shell-warning/