跳到主要內容

發表文章

目前顯示的是有「Virtualization」標籤的文章

Upgrade Proxmox from 6.0 to 6.1

如果沒問題其實不升級也沒什麼差,但是 Proxmox 6.0 的iSCSI multipath似乎有bug,升到6.1才會正常,用multipath -ll 看就知道。 Proxmox因為有商業訂閱服務,官方只說訂閱後用Enterprise升級,我們只好拿開機ISO來升級。

NFS datastore的優缺點

使用NFS datastore的優點: 可以用任何client去讀取資料,像我偶爾需要去修改 vmx 檔時,可以不用透過console用vi改,用Notepad++/Atom/Pluma去修改實在是一大樂事。 備份容易,可以用NAS/NFS provider上的備份機制,目前的NAS都有快照機制,也可以將快照備份到其他台NAS。我買一套 Veeam Backup and Replication 的$,就足夠買一座S牌或Q牌NAS做為備份用。 由於是File based,所以支援 重複資料刪除 ( Deduplication )。使用iSCSI時 Deduplication 的效率其實很差,雖然很多家都說是block level deduplication,其實效果有限。 不過若不是買NetApp這種等級的神器,還是不要輕易開啟,我曾經在Nexenta Store上開啟,效果非常不滿意,對效能影響甚鉅。 需要還原備份時很容易,可以快速掛載備份的vmdk取代原有的vmdk達成快速復原。  使用NFS datastore的缺點:  只能用單一網路,沒有MPIO之類的機制。多埠合併都需要switch支援,不在討論之列。 使用NFS target的File System,不是 VMFS ,限制比較多。 效能不如iSCSI,原因就是以上兩點綜合。 結論: 需要極高速的datastore時,首選仍然是iSCSI,但若考慮到備份還原時,NFS 對於窮人 也可以納入考量。

NFS datastore change IP address

摘錄自  Changing IP address of NFS Datastore - Shut down all VMs (via the VIC) - Put the server into maintenance mode: # vimsh -n -e /hostsvc/maintenance_mode_enter - For each datastore whose address has changed, delete the old, and re-add it with new address (and exact same label): # esxcfg-nas -d <label> # esxcfg-nas -a --host <new_name> --share <remote_nfs_share_path> <label> - Mount the datastores # esxcfg-nas -r (this will fail if any datastore hosts are still unreachable, or will complete silently if all goes well) - Bring the server out of maintenance mode: # vimsh -n -e /hostsvc/maintenance_mode_exit

Mounting NFS datastores with different IP address one different ESXi Hosts 讓不同的ESXi host使用不同的IP掛載同一個NFS Target

I have a small vSphere environment, the NAS has 4 NIC ports, 3 ESXi client direct connect to NAS without switch/hub by different IPs. vCenter thake them as different NFS datastore, because of different UUIDs. A UUID mismatch between two datastores occurs because the UUID is based on a hash of the NFS Server and Path, as seen by running esxcfg-nas. If you have specified the NFS server information using different methods on different hosts, then the hash value, and ultimately the UUIDs will be different. 我有一個小型的vSphere環境,其中1座4埠網路NAS和3台ESXi使用不同網段IP直接連接到NAS。但是vCenter認為它們是不同的NFS datastore,因為產生的hash和UUID不同,詳見  VMware KB1005930 。

Proxmox VE

敝公司的合作廠商推薦 Proxmox VE ,這也是基於 KVM 的虛擬主機軟體,還支援OpenVZ Container,也有 HA架構 ,實在很不錯,相較於XenServer有誠意多了。 參考資料: 企業虛擬化平台的另類選擇 - Proxmox Virtual Environment 實戰

試用 XenServer 6.2 及安裝更新

很久沒有玩 XenServer 了,這次因為拿到一台 Celeron J1900 ,同事說沒法子裝ESXi,但是可以裝 XenServer 和 Hyper-V,所以特地裝來測試。

是否需要升級到VMware vSphere ESXi 5.5?

朋友傳來一篇 Don’t upgrade to ESXi 5.5!! ,在此替朋友解釋清楚。

在Hyper-V 3.0安裝 Windows 2000

基本上,Hyper-V 3.0不支援Windows 2000,但真要裝的話也不是不行,只是沒有安裝整合服務就會跑起來頓頓的。 所以,只要裝好Windows 2000 with SP4之後,接下來就要在VM上插入vmguest.iso,這個要用Hyper-V 2.0的版本,請自行安裝Hyper-V 2.0後取得。

Hyper-V Server 2012 安裝

自從前陣子卯起來玩 ESXi之後,很長一段時間沒有碰 Hyper-V ,最近有台PC掛點換了主機板送回來後就先拿來當測試機。不測則已,測了之後才發現 axxr 的 UEFI 主機板居然沒有 Boot Manager的選項,不能模擬成BIOS的開機方式;造成 ESXi 和 XenServer 都裝好後無法開機的冏境。 想了想就拿來裝 Hyper-V Server 2012 ,測一下Hyper-V 3.0吧!

P2V或V2V轉換後VM再起不能解決方法之Windows篇

通常P2V或V2V程式類似TrueImage Enterprise,具備異機還原功能,也就是會把Windows的HAL重置。 但是並不是所有的程式都有此功能,例如免費的 Disk2vhd ,我轉換了幾台線上機器還沒有能開成功的 :( 所以在此要公布我私藏的秘技,幫助有需要的MIS朋友。