July 8, 20169 yr I would like to use 3rd party management apps to manage the VMs. The main reason for this is I need something more robust than the existing web management tool. I need to snapshot, clone, etc. I realize I can do this via a shell but I'm looking for a GUI. Do you know if this is possible? Thanks!
July 8, 20169 yr Try looking at webvirtmgr and virt-manager. Webvirtmgr is a web interface to manage KVM hypervisors and virt-manager is a GUI package to do the same. There are docker images for both of them on docker hub. I would suggest unws/webvirtmgr and tukiyo3/virt-manager.
July 8, 20169 yr Author You rock. I have WebvirtMgr up and running as a docker container and its exactly what I needed. I did have to change the libvirtd.conf to listen on 0.0.0.0 vs the 127.0.0.1 but thats the only change on the unraid side and then just setting up the docker, connecting to the container and adding my user and away we go. Thank you!
July 8, 20169 yr You rock. I have WebvirtMgr up and running as a docker container and its exactly what I needed. I did have to change the libvirtd.conf to listen on 0.0.0.0 vs the 127.0.0.1 but thats the only change on the unraid side and then just setting up the docker, connecting to the container and adding my user and away we go. Thank you! care to post a screenshot?
July 8, 20169 yr Author Main Panel for a VM Snapshot: Clone: I have not attempted a clone yet. The snapshots want the disk to be in qcow2 and I did have an issue restoring a snapshot. I dont know what happened but it didnt want to start right away. Maybe it was still restoring as it worked a little later. I made a file, snapshotted it, removed the file and then restored back..my file was back. It does need the VM down when doing the snapshot.
July 8, 20169 yr ok sold, need to install this container, since is not on the official CA, how does one install dockers?
July 8, 20169 yr 6 different ones show up when I do a search on Community Applications and click get more results from dockerhub. Which author are you using?
July 8, 20169 yr Author A little tricky but I think this is complete: 1: Enable dockerhub access in the settings section of the Community Applications and then search for primiano/docker-webvirtmgr and add it to the system. You'll get a dialog like this. Change the port and /data/vm path to your appdata directory as needed. it will place a sqllite db in the appdata location. 2: connect into the container: docker exec -it docker-webvirtmgr bash 3. run this to add a user in the container..it will prompt for user/password/email. /webvirtmgr/manage.py createsuperuser 4. exit out of the container: exit 5. edit /etc/libvirt/libvirtd.conf and comment out the line: listen_addr = "127.0.0.1" by putting a # symbol in front of it. 6. add a new line to /etc/libvibvirt/libvirtd.conf: listen_addr = "0.0.0.0" and save it 7) Restart the KVM system via unraid: Settings->VM Manager->Enable VMs to No and apply, Enable VMs to Yes and Apply. 8 ) Connect to your WebvirtMgr: http://<unraid ip>:8089 in my case 9) log into it with your new user created in step 3 10) Select Add connection and choose TCP and I filled in my unraid IP/root/root_password
July 8, 20169 yr Author followup. I was a little concerned that the /etc/libvirt/libvirtd.conf change wouldnt survive a reboot given how unraid unpacks every time so I rebooted my box. It survived and I was able to just start the webvirtmgr container and connect via the web url and it was all good. Maybe someone(not me) should make a unraid xml file for this thing so it can be in the main 'Apps' section? I dont know enough to do so.
July 8, 20169 yr A little tricky but I think this is complete: 1: Run this from the shell: 8089 is my web port..pick an open port and the /mnt/cache/docker/appdata/webvirtmgr is the app data location. docker run -d -p 8089:8080 -p 6080:6080 --name webvirtmgr -v /mnt/cache/docker/appdata/webvirtmgr:/data/vm primiano/docker-webvirtmgr To keep everything so that it can be properly managed through the GUI including, instead of step 1, Search for primiano/docker-webvirtmgr in CA (get more results from docker hub) then select the appropriate appdata path within the template. Adding containers manually through the command line (while it works) means that amongst other things should you ever have need to recreate the image file (cache drive failure?) you will have to search the forums etc for that particular container again.
July 8, 20169 yr A little tricky but I think this is complete: 1: Run this from the shell: 8089 is my web port..pick an open port and the /mnt/cache/docker/appdata/webvirtmgr is the app data location. docker run -d -p 8089:8080 -p 6080:6080 --name webvirtmgr -v /mnt/cache/docker/appdata/webvirtmgr:/data/vm primiano/docker-webvirtmgr To keep everything so that it can be properly managed through the GUI including, instead of step 1, Search for primiano/docker-webvirtmgr in CA (get more results from docker hub) then select the appropriate appdata path within the template. Adding containers manually through the command line (while it works) means that amongst other things should you ever have need to recreate the image file (cache drive failure?) you will have to search the forums etc for that particular container again. I get a no matching content when i search it, also don't have the button that says search docker hub.. im on 6.1.9
July 8, 20169 yr Author you need to enable the searching of dockerhub in the community applications settings under the settings section of unraid.
July 8, 20169 yr Author Squid: How do I remove the "Display Recommended" section so Community Apps thinks it hasnt been converted already? Hitting "Display Recommended" just kicks me out and doesnt allow me to get to the config section like if I hadnt converted it already. Thanks!
July 8, 20169 yr you need to enable the searching of dockerhub in the community applications settings under the settings section of unraid. thank you
July 8, 20169 yr Squid: How do I remove the "Display Recommended" section so Community Apps thinks it hasnt been converted already? Hitting "Display Recommended" just kicks me out and doesnt allow me to get to the config section like if I hadnt converted it already. Thanks! I have the same problem.
July 8, 20169 yr Squid: How do I remove the "Display Recommended" section so Community Apps thinks it hasnt been converted already? Hitting "Display Recommended" just kicks me out and doesnt allow me to get to the config section like if I hadnt converted it already. Thanks! uh you found a bug in a section of code I haven't looked at in 6 months. (and no one else has noticed either) Display Recommended was originally in there so that if the same container existed within unRaid repositories it would add that one instead of allowing you to add the bare repo. However it doesn't work properly if you don't actually add the container. (And it doesn't particularly make sense if the container in question was originally converted from dockerHub) go to the flash drive (config/plugins/community.applications/private/DockerHub) and delete the appropriate xml file. As my wife continually reminds me, I'm not perfect I'll issue an update tonight and probably take the display recommended button completely out of the system.
July 8, 20169 yr Author updated to use Community Applications instead of calling docker from the shell.
March 25, 20179 yr Hey RXWatcher, Thanks for the detailed instructions. I'm working on getting a template going for it. I have the container running, but any time I click on the name of my server in the "connections" page, I get the error below. Any ideas? I restarted libvirt with "/etc/rc.d/rc.libvirt restart" instead of the UI, but I don't think that matters. I'm running unraid 6.3.2. Also, why did you give it your /mnt/user path? Oops! 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete you request.
April 28, 20179 yr I'm new to KVM but have used VMWare and VirtualBox in the past with snapshots. I'm curious if using this solution here is as space efficient as snapshots in VMWare or VirtualBox
May 6, 20179 yr I've been wondering if any of you have found or know of a fix for that "Error 500" problem? I was able to sucessfully install webvirmgr but can't connect to the unRAID VMs. Furthermore, everything should be configured correctly since I can - without any problems - connect to unraid with the desktop version of Virt-Manager.
July 21, 20178 yr I can't seem to find the dockers listed here. Any alternative dockers for managing KVM? update: I missed enabling dockerhub access as per instructions in this thread. I can now see them. I am getting the "500 Internal Server Error" also. Libvirt Log shows the following: 2017-07-22 13:55:22.676+0000: 3266: error : virNetSocketReadWire:1808 : End of file while reading data: Input/output error Edited July 22, 20178 yr by SCSI
Archived
This topic is now archived and is closed to further replies.