m-bers / docker-virt-manager Goto Github PK
View Code? Open in Web Editor NEWDocker virt-manager
License: GNU General Public License v3.0
Docker virt-manager
License: GNU General Public License v3.0
as soon as a reverse proxy HAPROXY or nginx for example come into play, a wss:// connection will tried to be opened by the proxy, which fails (websocket not working)
Browser errors out with "cannot open connection to wss://www.example.com/socket
400 Bad websocket request
I am trying to click the open button but I get this error, what can I do? thanks
I want connect to a remote server that have multiple kvm up.
but when it start it stuck on "connecting" without any error!
what should i do?
also i'm able to connect to that server with virt-manager but it's not available on docker-virt-manager.
docker-compose:
services:
virt-manager:
image: mber5/virt-manager:latest
restart: always
ports:
- 8185:80
- 7681:7681
environment:
HOSTS: "['qemu+ssh://[email protected]/system']"
volumes:
- /home/ubuntu/.ssh/id_rsa:/root/.ssh/id_rsa:ro
First of all, thank you for this project. I have been searching for such a lean solution for a long time.
The idea is as the title says. Though one can restart virt-manager through the browser-terminal, it would be more convenient to have it auto restart. Maybe this can be implemented with little effort.
Hi,
when I connect to the graphical interface of a VM, the keyboard layout is wrong. Is it possible to change that?
In Virtmanager it is correct.
Greets
Thanks for the container! The idea is brilliant!
I have an issue, though. Container starts and I can make the connection (to qemu:///session). I can see my VMs and can start and stop them. However, when I try to open any VM I get Error connecting to graphical console: Failed to recv file descriptor: Permission denied
.
I'm running Ubuntu 20.04 on the host. I can successfully connect to all my VMs via a remote virtual-manager connection from another Ubuntu machine โ so my QEMU/KVM config should be fine I guess.
What could I be missing here? Pleas point me to the right direction! Thanks in advance!
Here's my docker-compose:
virt-manager:
container_name: virt-manager
image: docker.io/mber5/virt-manager
restart: unless-stopped
environment:
- DARK_MODE=false
- HOSTS="['qemu:///session']"
ports:
- 8185:80
volumes:
- /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock
- /var/lib/libvirt/images:/var/lib/libvirt/images
devices:
- /dev/kvm:/dev/kvm
Firstly, thanks for the container and your work here. This is a great tool, and very beneficial to all. ๐
I start the docker-compose with my normal user which is mapped to the docker group, so it has access to start the container. The container starts and I can access it via the web. I see the 3 VMs I have running on the host (the same host the container is running on). It shows the CPU graphs and they are moving, so all appears fine.
When I double click on a VM, the VM screen opens, but it shows:
Error connecting to graphical console.
Failed to recv file descriptor: Permission denied.
It then disconnects from the host completely and I have to double click on the QEMU/KVM line to reconnect.
I can create a new VM fine. It starts and works fine too. Starting, Stopping and Deleting images works just as well, so it would appear permissions to the libvirt are working. Just when I open a VM panel, it has an issue, and kicks me out.
Running on Ubuntu.
I have privileged: "true".
Any thoughts?
Hi there,
I'm trying to connect to my server that didn't have SSH open on 22 port.
On the UI I've set manually :
qemu+ssh:///[email protected]:15052
But on the env var, When I set the var it didn't work.
-e HOSTS=['qemu+ssh:///[email protected]:15052/system']
The logs show me the following :
Thanks for the help.
Unfortunately I am unable to connect, I get following error message:
Unable to connect to libvirt qemu://root@<192.168.1.48/system.
Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
Verify that the 'libvirtd' deamon is running on the remote host.
Running systemctl status libvirtd
shows that it is active.
Any ideas?
hi @m-bers, I'm hosting VMs on OpenWRT host - https://openwrt.org/docs/guide-user/virtualization/qemu_host
I don't have libvirt
, but installed the kmod-kvm-x86
package for virtualization.
what should the docker-compose be in such case?
(the first option in the README is for localhost but with libvirt
volumes, while the second is for a different host)
thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.