Giter VIP home page Giter VIP logo

docker-virt-manager's Introduction

Docker virt-manager - Authentication via Active Directory or Authentication basic

Obs¹: Connection private key connection only

Obs²: If you want to connect using a password, follow the version with this setting enabled: @m-bers

GTK Broadway web UI for libvirt

1.png 2.png

What is it?

virt-manager: https://virt-manager.org/
broadway: https://developer.gnome.org/gtk3/stable/gtk-broadway.html

Features:

  • Uses GTK3 Broadway (HTML5) backend--no vnc, xrdp, etc needed!
  • Password/SSH passphrase support via ttyd (thanks to @obazda20 for the idea!) Just click the terminal icon at the bottom left to get to the password prompt after adding an ssh connection.

Requirements:

git, docker, docker-compose, at least one libvirt/kvm host

Usage

docker-compose

If docker and libvirt are on the same host or different hosts

version: '3'

networks:
  virt-manager:
    driver:
      bridge
    driver: bridge
    ipam:
        driver: default
        config:
            - subnet: "172.1.0.0/16"

services:  
  virt-manager:
    build:
      dockerfile: ./DockerFile
      context: .
    container_name: virt-manager
    image: docker-virt-manager
    restart: always
    ports:
      - 8185:80
    networks:
      - virt-manager
    environment:
      # Set HOSTS: "['qemu:///session']" to connect to a user session
      # If you want to access other machines, leave HOSTS: "[]"
      HOSTS: "[]"
      # If you want to authenticate via AD, inform the domain
      DOMINIO: ""
      # enter the ip of the domain controller server
      HOST_DOMINIO_1: ""
      # If you have more than one, please enter below.
      HOST_DOMINIO_2: ""
      # OBS: If you have more than two domain controllers, 
      # modify the krb5.conf file, inside the "files" folder
      
    volumes:
      - ./keys/chave.pem:/root/.ssh/chave.pem:ro

If you are not going to use authentication via Active Directory, modify the Dockerfile file, leaving it as below

virt-basic.png]

How to create a common user

    htpasswd -c /etc/nginx/.htpasswd user
    # To create additional user accounts, use the following command.
    htpasswd /etc/nginx/.htpasswd user

Building from Dockerfile

    git clone https://github.com/alan-bruno/docker-virt-manager.git
    cd docker-virt-manager && chmod 600 keys/chave.pem
    # Remember to put the private access key to the servers keys/chave.pem
    docker-compose up -d --build

Access

Go to http://localhost:8185 in your browser

docker-virt-manager's People

Contributors

m-bers avatar alan-bruno avatar dqbd avatar antipatico 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.