Skip to content

obazda20/docker-virt-manager

 
 

Repository files navigation

Changes to the Original one

  • you can use SSH Key with passphrases

Docker virt-manager

broadway webui for libvirt/kvm

Docker virt-manager

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!

Requirements:

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

Usage

docker-compose

If docker and libvirt are on the same host

services: 
  virt-manager:
    image: mber5/virt-manager:latest
    restart: always
    ports:
      - 8185:80
    environment:
      HOSTS: "['qemu:///system']"
    volumes:
      - "/var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock"
      - "/var/lib/libvirt/images:/var/lib/libvirt/images"
    devices:
      - "/dev/kvm:/dev/kvm"

If docker and libvirt are on different hosts

services: 
  virt-manager:
    image: mber5/virt-manager:latest
    restart: always
    ports:
      - 8185:80
    environment:
    # Substitute comma separated qemu connect strings, e.g.: 
    # HOSTS: "['qemu+ssh://user@host1/system', 'qemu+ssh://user@host2/system']"
      HOSTS: "[]"
    volumes:
    # Substitute location of ssh private key, e.g.:
      - /home/user/.ssh/id_rsa:/root/.ssh/id_rsa:ro

Building from Dockerfile

git clone https://github.com/m-bers/docker-virt-manager.git
cd docker-virt-manager
docker build -t docker-virt-manager . && docker-compose up -d

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

About

Docker virt-manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 71.0%
  • Shell 29.0%