适用于:
- 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> | +--------+-----------------------------------------------------------------+
但谈何容易。