通过控制台访问实例

通过控制台访问实例

VNC或SPICE用来查看一个实例的终端视图,不管是否终端日志被输出。这允许您使用键盘和鼠标与实例交互。

通常有三个远程控制台方法访问OpenStack

novnc
所有VNC客户端使用HTML5 Canvas和WebSockets实现
spice
一种完全通过浏览器客户端与虚拟云主机交互的方式
xvpvnc
Java客户端提供访问实例的控制台

例子:

若想通过远程控制台访问云主机,就运行以下命令:

$ openstack console url show INSTANCE_NAME --xvpvnc

这个命令返回获得一个你可访问的云主机的URL

+--------+------------------------------------------------------------------------------+
| Type   | Url                                                                          |
+--------+------------------------------------------------------------------------------+
| xvpvnc | http://192.168.5.96:6081/console?token=c83ae3a3-15c4-4890-8d45-aefb494a8d6c  |
+--------+------------------------------------------------------------------------------+

--xvpvnc can be replaced by any of the above values as connection types.

使用SPICE查看实例控制台时,可以在实例页面使用浏览器插件,也可参考上面的例子,使用:command:`openstack console url show`命令来获取一个已认证的地址。

For further information and comparisons (including security considerations), see the Security Guide.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.