在這裡,我們做了另外一個展示。首先,在遠端的主機http://time.104.es放了一個小小的PHP程式,只要連線到此網站就會傳回當地的時間。接下來,在Virtual Machine中寫一段Python程式disptime.py,在連續50秒內,每隔1秒就去取得該網頁的時間字串,並顯示在螢幕上,完成後並把所有的時間訊息儲存在logfile檔案中。

在Virtual Machine執行的過程中,我們透過virsh指令把此VM從PC1 live mirgate到PC0,然後再把它從PC0 live migrate回到PC1。disptime.py在migration的過程中並沒有明顯地中斷它的程式執行。實驗過程如下面的影片:

以下是logfile的內容:

The time is 01:01:14am
The time is 01:01:15am
The time is 01:01:17am
The time is 01:01:18am
The time is 01:01:19am
The time is 01:01:21am
The time is 01:01:22am
The time is 01:01:24am
The time is 01:01:25am
The time is 01:01:27am
The time is 01:01:29am
The time is 01:01:31am
The time is 01:01:33am
The time is 01:01:34am
The time is 01:01:36am
The time is 01:01:37am
The time is 01:01:38am
The time is 01:01:41am
The time is 01:01:42am
The time is 01:01:44am
The time is 01:01:45am
The time is 01:01:47am
The time is 01:01:48am
The time is 01:01:50am
The time is 01:01:52am
The time is 01:01:53am
The time is 01:01:55am
The time is 01:01:57am
The time is 01:01:58am
The time is 01:02:00am
The time is 01:02:02am
The time is 01:02:03am
The time is 01:02:05am
The time is 01:02:06am
The time is 01:02:08am
The time is 01:02:09am
The time is 01:02:11am
The time is 01:02:19am
The time is 01:02:21am
The time is 01:02:22am
The time is 01:02:24am
The time is 01:02:25am
The time is 01:02:27am
The time is 01:02:29am
The time is 01:02:30am
The time is 01:02:32am
The time is 01:02:33am
The time is 01:02:35am
The time is 01:02:36am
The time is 01:02:38am

上述資料其提供時間的網站位於美國(http://time.104.es),而VM則位於台灣。下面的資料,則是把提供時間的網站放在同一個網段內,以觀察其中的差異。

Taipei time is now:15:05:22
Taipei time is now:15:05:23
Taipei time is now:15:05:24
Taipei time is now:15:05:25
Taipei time is now:15:05:26
Taipei time is now:15:05:27
Taipei time is now:15:05:28
Taipei time is now:15:05:29
Taipei time is now:15:05:30
Taipei time is now:15:05:31
Taipei time is now:15:05:32
Taipei time is now:15:05:33
Taipei time is now:15:05:34
Taipei time is now:15:05:35
Taipei time is now:15:05:36
Taipei time is now:15:05:37
Taipei time is now:15:05:38
Taipei time is now:15:05:39
Taipei time is now:15:05:40
Taipei time is now:15:05:41
Taipei time is now:15:05:42
Taipei time is now:15:05:44
Taipei time is now:15:05:45
Taipei time is now:15:05:46
Taipei time is now:15:05:47
Taipei time is now:15:05:48
Taipei time is now:15:05:49
Taipei time is now:15:05:50
Taipei time is now:15:05:51
Taipei time is now:15:05:52
Taipei time is now:15:05:53
Taipei time is now:15:05:54
Taipei time is now:15:05:55
Taipei time is now:15:05:56
Taipei time is now:15:05:57
Taipei time is now:15:05:58
Taipei time is now:15:05:59
Taipei time is now:15:06:00
Taipei time is now:15:06:01
Taipei time is now:15:06:02
Taipei time is now:15:06:03
Taipei time is now:15:06:04
Taipei time is now:15:06:05
Taipei time is now:15:06:06
Taipei time is now:15:06:07
Taipei time is now:15:06:08
Taipei time is now:15:06:09
Taipei time is now:15:06:10
Taipei time is now:15:06:11
Taipei time is now:15:06:12

 

(107)