Recently in VM Category

Windows VM Image for Testing

user-pic
Vote 0 Votes

Download virtual machines 這一頁是要讓開發者測試各種瀏覽器用的,
要測試 Windows 作業系統也行吧

Microsoft Azure

user-pic
Vote 0 Votes

看到微軟的雲端服務有 免費試用 (一個月, 額度台幣 6300), 於是去試了一下
虛擬機器的映象檔滿豐富的, 自家的 Windows 有很多種可以選, 也有 Linux (CentOS, Ubuntu 等)

IDC 位置有這些:
東亞(香港)、東南亞(新加坡)、日本西部、日本東部
美國西部、美國中北部、美國中部、美國中南部、美國東部、美國東部2、巴西南部
北歐、西歐、澳洲東部、澳洲東南部、印度南部、印度中部、印度西部

對台灣 Ping 值最好的是東亞(香港), 日本東部排第2, 再來是日本西部排第3
我的 IP ping 東亞 26ms, 日本東部 54ms, 日本西部 62ms
日本西部地理上離台灣較近, 但光纖路由看來還是先到日本東部, 再到日本西部
(日本東部跟日本西部的 VM 互 ping 值是 9ms)
其他地區的 Ping 值
東南亞(新加坡) 76ms
美國西部 155ms
美國中北部 246ms
美國中部 245ms
美國中南部 206ms
美國東部 245ms
美國東部2 240ms
北歐 296ms
西歐 298ms
巴西南部 391ms

網路流入的速度, 應該是 1G, 但是流出的速度似乎被限制在 100Mbps, 也就是客戶端的下載速度最快是 100Mbps

管理介面 portal.azure.com 的設計採類似 Windows 10 的動態磚, 相容性很差, 只有用 IE 能正常使用,
Chrome, Firefox 都不太正常, 真的很糟糕

GRE 好像不能過, 所以無法架 PPTP Server, Log 可以看到類似如下的訊息
GRE: read(fd=6,buffer=610c80,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs

建立 VM 的速度很慢, 都要好幾分鐘(大都大於五分鐘), 遠遜於 Amazon EC2 及 Google Compute Engine (都小於一分鐘)

Azure 的 Windows VM 比其他雲端服務都便宜, 算是一項優勢,
若需求是 Windows 平台的雲端服務, 用 Azure 就對了

VMware P2V

user-pic
Vote 0 Votes

VMware P2V 實體機轉虛擬機
vCenter Converter 安裝到你要轉的電腦,
安裝時選第一個 Local installation

Source System
source type 選擇 Powered-on machine, This local machine
Destination System
destination type 選擇 VMware Infrastructure virtual machine
下面輸入 VMware Infrastructure server 資訊 (我的環境是 ESXi) 的 Server IP, User name, Password
Destination Virtual Machine
輸入機器名稱
Destination Location
選擇 Datastore 及 VM 版本, 留意不要超過 Destination System 的最大支援,
例如 Destination System 只支援到 Version 8, 最大只能選 Version 8
Options
硬體參數調整
Summary 完後就開始轉了, 轉換時間大概需要數小時

第一次轉遇到一個錯誤
FAILED: Unable to create a VSS snapshot of the source volume(s). Error code:
2147549183 (0x8000FFFF)

結果跟 這篇 的狀況相同, 少了 vssui_dll 檔, 補完之後,
再照 KB940184 步驟做一次, 重開機, 就可以了

VMware virtual disk 有三種模式:

Thick Provision Lazy Zeroed (預先配置空間, 磁區不清空)
Thick Provision Eager Zeroed (預先配置空間, 磁區清空填 0x00)
Thin Provision (用多少配多少, 省空間)

官方有一篇 Performance Study of VMware vStorage Thin Provisioning
結論是 Thick or Thin Provision 效能並沒有太大差異.
(We determined that a workload run on a thin-provisioned disk performs very closely to that of a thick-provisioned disk,
in both the zeroing and post-zeroing phases of disk growth.)
所以選省空間的 Thin Provision 就好了.

VMware ESXi 5.5 PPTP Fix

user-pic
Vote 0 Votes

VMware ESXi 5.5 中的機器, 若使用 E1000 網卡, PPTP 會無法運作,
Client 會連不上, Server 端 Log 會看到類似這樣的 Log
GRE: read(fd=6,buffer=610c80,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
此問題查了滿久的, 完全一樣的設定移到 VM 就不行, 原來是 VMware 本身的問題

解法1: 上 Patch (需要架 Update Manager 伺服器)
解法2(Workaround): 把網卡改成 VMXNET3, 若是 CentOS 必需裝 centos.plus 的 kernel, 才會有 vmxnet3 的 module

ref. Point-to-Point Tunneling Protocol (PPTP) connections may not work on ESXi 5.5 (2061834)

2014-10-08 Update: PPTP Client 也有類似的狀況, Log 最後會看到 LCP: timeout sending Config-Requests

VMX to OVF

user-pic
Vote 0 Votes

使用 VMware OVF Tool (下載需登入) 可以把 VMX 格式 VMware image 轉成 OVF 格式,
轉完後就可以 Deploy 到 VMware ESXi

Usage: ovftool [options] <source> [<target>]
where
<source>: Source URL locator to an OVF package, VMX file, or virtual machine in
vCenter or on ESX Server.
<target>: Target URL locator which specifies either a file location, or a
location in the vCenter inventory or on an ESX Server.

例:
C:\Program Files\VMware\VMware OVF Tool>ovftool.exe "D:\MyVMX\OS X Mavericks.vmx" D:\MyOVF
Opening VMX source: D:\MyVMX\OS X Mavericks.vmx
Opening OVF target: D:\MyOVF
Writing OVF package: D:\MyOVF\OS X Mavericks\OS X Mavericks.ovf
Transfer Completed
Completed successfully

About this Archive

This page is an archive of recent entries in the VM category.

Sports is the previous category.

Web is the next category.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives