Was this page helpful?

RHEL5 - xm destroy command

  • You do not have permissions to view this page - please try logging in.
內容表格
沒有標頭

在正常情況下我們都會使用 xm shutdown domain(Domain ID),但是如果 Guest 的系統是在死當的情況下那光是使用 xm shutdown domain(Domain ID)是沒有效果的.這時候可以用 xm destroy domain(Domain ID) 強制 Guest OS 關機.

[root@benjr ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1231     4 r-----    150.1
rhel4.6                                    2      255     1 -b----      0.1
rhel5                                      4      511     1 -b----      2.2

目前正在運行的 Guest 有兩個 RHEL4.6 / RHEL5 我想用 RHEL4.6 做示範,所以先將 RHEL4.6 強制關機吧!!

[root@benjr ~]# xm destroy rhel4.6
or #xm destroy domain(domain ID)
[root@benjr ~]# xm destroy 2

這動作相當於按下 Guest OS 的 power button 4秒.直接將系統關閉.

[root@benjr ~]# xm create -c rhel4.6

你可以發現 Guest系統一定是立刻關閉了.

完整版內容請看 : http://benjr.tw/?q=node/374

Was this page helpful?
標籤 (Edit tags)
  • No tags
您必須 登入 才能發佈評論。
Powered by MindTouch Core