Git Product home page Git Product logo

ansible-kvm-1's Introduction

Ansible-KVM

A playbook to setup KVM on Centos 7, including a management tool called WebVirtManager WebVirtManager is a third party tool that:

  • Defines VMs per XML Templates generated for you through a web interface
  • Allows you to remote console to your VM through HTML (noVNC)
  • Allows you to manage your guest VMs (add/reduce ram/cpu/hdd power on/off suspend)

Getting started with this playbook, you should edit the hosts to match your hosts file. Should you wish to move the app_path for WebVirtMgr, you may do so by changing the app_path variable.

Installation

To install KVM on Centos7 with this playbook:

git clone https://github.com/ryanhartje/ansible-kvm.git
cd ansible-kvm
vim deploy.yml # edit hosts
ansible-playbook deploy.yml

Post Installation

Currently, this project is missing automated steps for TCP authentication, as well as the login user.

Because of this, you will need to create these two accounts.

To setup your TCP account, use will use saslpasswd2:

$ sudo saslpasswd2 -a libvirt
Password: xxxxxx
Again (for verification): xxxxxx

To setup your login user, you must navigate to your project folder, and run:

./manage.py createsuperuser
WARNING:root:No local_settings file found.
Username: user
Email address: [email protected]
Password:
Password (again):

Usage

Currently, we are not actually reverse proxying WebVirtMgr, as it is more secure to connect over an SSH Tunnel, for encryption purposes.

Here is an example of an SSH tunnel that will allow us to access webvirtmgr at http://localhost:8000

$ ssh user@server:port -L localhost:8000:localhost:8000 -L localhost:6080:localhost:6080

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.