Code Monkey home page Code Monkey logo

novaconsole's Introduction

This is a simple client for connecting to the remote serial console of an OpenStack Nova server, using the API implemented in the Juno release of OpenStack. You can read more about that support here:

Usage

With valid OpenStack credentials (OS_USERNAME, OS_PASSWORD, OS_AUTH_URL, etc) available in your environment, you can run novaconsole with the name or UUID of a Nova server:

$ novaconsole my-server
WARNING:novaconsole.client:connected to: ws://127.0.0.1:6083/?token=bdcea854-2566-4f3b-86ef-4791aba42eea
WARNING:novaconsole.client:type "~." to disconnect

You can also provide a websocket URL directly on the command line:

$ novaconsole --url ws://127.0.0.1:6083/?token=bdcea854-2566-4f3b-86ef-4791aba42eea
WARNING:novaconsole.client:connected to: ws://127.0.0.1:6083/?token=bdcea854-2566-4f3b-86ef-4791aba42eea
WARNING:novaconsole.client:type "~." to disconnect

In either case, you will have an interactive connection to the serial console of your Nova server. You can type ~. to disconnect. If you find that the ~ conflicts with something (for example, ~ is also used as the default escape character by ssh), you can specify a new escape character with -e:

$ novaconsole -e@ my-server
WARNING:novaconsole.client:connected to: ws://127.0.0.1:6083/?token=3fd11349-cd64-4dac-bbe0-68c49e9e1dc9
WARNING:novaconsole.client:type "@." to disconnect

Server configuration

For this to work, your server must be configured to support serial console access. This is a typical default for most "cloud" specific images, which will include something like console=tty0 console=ttyS0,11500n81 on the kernel command line. This provides console output on both the graphical (vnc) console and the serial console, and takes input from the serial console.

Installation

You can install the package with pip:

pip install git+http://github.com/larsks/novaconsole.git

Or you can clone the repository by hand and run setup.py:

git clone http://github.com/larsks/novaconsole.git
cd novaconsole
python setup.py install

novaconsole's People

Contributors

larsks avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.