gushiren

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

适用于:

  • agent_ipmitool_socat
  • pxe_ipmitool_socat

修改driver方式:更换ironic node的driver类型

yum install -y socat
ironic node-update <node-uuid> add driver_info/ipmi_terminal_port=<port>
ironic node-set-console-mode <node-uuid> true
ironic node-get-console <node-uuid>
+-----------------+----------------------------------------------------------------------+
| Property        | Value                                                                |
+-----------------+----------------------------------------------------------------------+
| console_enabled | True                                                                 |
| console_info    | {u'url': u'tcp://<host>:<port>', u'type': u'socat'}                  |
+-----------------+----------------------------------------------------------------------+

和nova结合

安装serialproxy服务

yum install -y openstack-nova-serialproxy
systemctl enable openstack-nova-serialproxy
systemctl start openstack-nova-serialproxy

在nova中打开serial console

[serial_console]
enabled = true
proxyclient_address = 0.0.0.0
base_url = ws://$PROXY_IP:6083/
nova get-serial-console e3aa4840-6f54-48c6-834e-e3c9f896b22a
+--------+-----------------------------------------------------------------+
| Type   | Url                                                             |
+--------+-----------------------------------------------------------------+
| serial | ws://127.0.0.1:6083/?token=<token>                              |
+--------+-----------------------------------------------------------------+

 

posted on 2018-08-22 10:58  gushiren  阅读(493)  评论(0编辑  收藏  举报