next up previous contents
Next: Dashboard Up: Instance Previous: 驗證   Contents

VNC Client

  1. 查詢目前 instance 狀態,只有 crt2 active
    [root@controller ~]# . demo.token 
    [root@controller ~]# openstack server list
    +--------------------------------------+---------+---------+--------------------------+--------+---------+
    | ID                                   | Name    | Status  | Networks                 | Image  | Flavor  |
    +--------------------------------------+---------+---------+--------------------------+--------+---------+
    | 4c06d1cd-4dbf-43de-a5e3-3c5945f61ff1 | fsa1    | SHUTOFF | provider=163.17.10.118   | fsa    | m2.crt  |
    | c92c1859-ec57-46f8-a13f-6f23edbfc761 | esm1    | SHUTOFF | provider=163.17.10.125   | esm    | m1.esm  |
    | 84c92c8d-0b61-4269-a711-ea0a06e2f6c7 | crt2    | ACTIVE  | provider=163.17.10.123   | crtusb | m2.crt  |
    | bfaefe36-2310-4241-bbea-e02e1a4a482f | cirros1 | SHUTOFF | selfservice=192.168.10.5 | cirros | m1.nano |
    +--------------------------------------+---------+---------+--------------------------+--------+---------+
    
  2. 取得 crt2 的 novnc 連線網址,使用瀏覽器輸入此網址即可進入操作 console。
    [root@controller ~]# openstack console url show 84c92c8d-0b61-4269-a711-ea0a06e2f6c7
    +-------+------------------------------------------------------------------------------------+
    | Field | Value                                                                              |
    +-------+------------------------------------------------------------------------------------+
    | type  | novnc                                                                              |
    | url   | http://163.17.10.112:6080/vnc_auto.html?token=65105063-ec3c-4ff9-a03c-c356e238dda3 |
    +-------+------------------------------------------------------------------------------------+
    
  3. 每個 active 的 instance 都可以使用 vncviewer 連線 IP:PORT,其中 IP 為 openstack host IP 此例為 163.17.10.112,PORT 預設從 5900 開始。
    [root@dyw219 ~]# vncviewer 163.17.10.112:5900
    


2018-09-19