Obs²: If you want to connect using a password, follow the version with this setting enabled: @m-bers
virt-manager: https://virt-manager.org/
broadway: https://developer.gnome.org/gtk3/stable/gtk-broadway.html
- 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.
git, docker, docker-compose, at least one libvirt/kvm host
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
htpasswd -c /etc/nginx/.htpasswd user
# To create additional user accounts, use the following command.
htpasswd /etc/nginx/.htpasswd user
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
Go to http://localhost:8185 in your browser
- Thanks to @m-bers for the idea!