安裝注意:
On Server: XenServer 7.0
1. 第一次安裝XenServer時,請在Bios中取消UEFI,使用Legacy。在HP Workstation中,請直接使用Legacy DVD開機,才能安裝XenServer。
2. 同時Bios中還需要到 Security >>> Virtualization Technology >>>Enable。啟用這個功能,才能裝Guest OS。
3. 安裝時請使用DVD和固定IP較佳。
4. 使用DVD開機後進入Welcome to XenServer後,按說明選擇安裝。
5. 安裝完後,即可使用SSH遠端連入。
On Client: XenCenter
1. for wins x64,請直接安裝XenCenter-setup.exe。
2. 啟用後請直接Add new server,輸入ip,輸入帳號密碼,即可遠端管理XenServer。
下載地址:http://xenserver.org/open-source-virtualization-download.html
如果到官網下載,需先sign up。
新增HD:因為XenServer是Linux系統,可在console或是ssh遠端連入後,在command下操作:
# xe host-list //檢查host uuid (也可以在XenCenter中查詢,但不知為何查下來的資料系統說不認識)
uuid (RO): dab1a2b9-1603-4704-b0cb-aaaaaaaaaaaa
name-label ( RW): Server-XenServer
name-description ( RW): Default install
# ll /dev/disk/by-id //查詢new hd的id
total 0
lrwxrwxrwx 1 root root 9 Aug 17 16:04 ata-hp_CDDVDW_SU-208GB_xxxxxxxxxxxxxxxx -> ../../sr0
lrwxrwxrwx 1 root root 9 Aug 17 2016 ata-xxxxxx_SSDSC2KW240H6_xxxxxxxxxxxxxxxxx -> ../../sdb ←這顆是XenServer的安裝HD。是開機HD。
lrwxrwxrwx 1 root root 9 Aug 17 2016 ata-ST1000DM003-1ER162_xxxxxxxxxxxxxxxx -> ../../sda ←這顆是新增的HD。
lrwxrwxrwx 1 root root 10 Aug 17 2016 dm-name-VG_XenStorage--89674aa4--b51a--6216--98cb--xxxxxxxxxxxxxx-MGT -> ../../dm-0
lrwxrwxrwx 1 root root 10 Aug 17 2016 dm-uuid-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -> ../../dm-0
lrwxrwxrwx 1 root root 9 Aug 17 2016 wwn-xxxxxxxxxxxxxxxx -> ../../sda
lrwxrwxrwx 1 root root 9 Aug 17 2016 wwn-xxxxxxxxxxxxxxxxx -> ../../sdb
# xe sr-create content-type=user device-config:device=/dev/disk/by-id/ata-ST1000DM003-1ER162_xxxxxxxxxxxxxxxx host-uuid=dab1a2b9-1603-4704-b0cb-aaaaaaaaaaaa name-label="local storage 2" shared=false type=lvm
如果沒有錯誤訊息,只是跑出一排數字,就是完成了。
如果是給Linux用,最後的type=ext。lvm是給windows用的。
範例:
# xe sr-create content-type=user device-config:device=/dev/disk/by-id/ata-ST3000DM008-2DM166_Z504G31M host-uuid=23866b8b-2695-4801-a13c-360c9e697be9 name-label="3T" shared=false type=ext
fb8fb8b3-cddf-5643-d5bc-0ff606d6eec1
↑ 硬碟越大,時間越長,要等到有這個數字出現,HD才有mount並且connected完成。
# xe pbd-list //用來檢查這台機器上有哪些HD。可以看到這台機器掛了二顆實體HD,一顆是SSD,一顆是3T的HD。
uuid ( RO) : 4a13c891-bae9-4414-5e53-2c29df9ccba8
host-uuid ( RO): 23866b8b-2695-4801-a13c-360c9e697be9
sr-uuid ( RO): 5d05f07d-bc3b-7c43-52d4-15026ae5d977
device-config (MRO): path: /opt/xensource/packages/iso; location: /opt/xensource/packages/iso; legacy_mode: true
currently-attached ( RO): true
uuid ( RO) : 742cf737-cfb9-b910-0ece-45dfd185785c
host-uuid ( RO): 23866b8b-2695-4801-a13c-360c9e697be9
sr-uuid ( RO): f3541f79-37db-bac2-1b84-eff48f23e258
device-config (MRO): device: /dev/disk/by-id/ata-INTEL_SSDSC2KW240H6_CVLT615506EC240CGN-part3
currently-attached ( RO): true
uuid ( RO) : 883ad8d3-9c71-3c7d-3a26-5de8c9cbca43
host-uuid ( RO): 23866b8b-2695-4801-a13c-360c9e697be9
sr-uuid ( RO): df2160e1-c95f-35e3-bf31-b03d82f24d82
device-config (MRO): location: /dev/xapi/block
currently-attached ( RO): true
uuid ( RO) : c168a6c1-91fe-b55a-e385-27f72fa4b2aa
host-uuid ( RO): 23866b8b-2695-4801-a13c-360c9e697be9
sr-uuid ( RO): fb8fb8b3-cddf-5643-d5bc-0ff606d6eec1
device-config (MRO): device: /dev/disk/by-id/ata-ST3000DM008-2DM166_Z504G31M
currently-attached ( RO): true
uuid ( RO) : 4a86b079-e362-fd03-502b-3ab25546661e
host-uuid ( RO): 23866b8b-2695-4801-a13c-360c9e697be9
sr-uuid ( RO): 365e74d4-ef7e-dc93-d45b-8e12ffcd53fc
device-config (MRO): location: /dev/xapi/cd
currently-attached ( RO): true
回到XenCenter中,重新讀取這台XenServer,就會看到新增的HD出現了,可以加在New VMs中了。
參考資訊:
http://support.citrix.com/article/CTX121313
http://support.citrix.com/article/CTX131386
https://discussions.citrix.com/topic/282610-the-sr-operation-cannot-be-performed-because-a-device-underlying-the-sr-is-in-use-by-the-host/
留言列表