[openstack-dev] [nova] How to connect to a serial port of an instance via websocket?

Markus Zoeller mzoeller at de.ibm.com
Tue Oct 28 14:09:44 UTC 2014


The API provides an endpoint for querying the serial console of an 
instance ('os-getSerialConsole'). The nova-client interacts with this
API endpoint via the command `get-serial-console`.

    nova get-serial-console myInstance
 
It returns a string like:

    ws://127.0.0.1:6083/?token=e2b42240-375d-41fe-a166-367e4bbdce35
 
Q: How is one supposed to connect to such a websocket?

[1] 
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/consoles.py#L111
[2] 
https://ask.openstack.org/en/question/50671/how-to-connect-to-a-serial-port-of-an-instance-via-websocket/

Regards,
Markus Zoeller
IRC: markus_z




More information about the OpenStack-dev mailing list