RXWatcher Posted July 8, 2016 Share Posted July 8, 2016 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! Quote Link to comment
Bungy Posted July 8, 2016 Share Posted July 8, 2016 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. 1 Quote Link to comment
RXWatcher Posted July 8, 2016 Author Share Posted July 8, 2016 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! Quote Link to comment
ijuarez Posted July 8, 2016 Share Posted July 8, 2016 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? Quote Link to comment
RXWatcher Posted July 8, 2016 Author Share Posted July 8, 2016 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. Quote Link to comment
ijuarez Posted July 8, 2016 Share Posted July 8, 2016 ok sold, need to install this container, since is not on the official CA, how does one install dockers? Quote Link to comment
JonathanM Posted July 8, 2016 Share Posted July 8, 2016 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? Quote Link to comment
RXWatcher Posted July 8, 2016 Author Share Posted July 8, 2016 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 1 Quote Link to comment
RXWatcher Posted July 8, 2016 Author Share Posted July 8, 2016 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. Quote Link to comment
Squid Posted July 8, 2016 Share Posted July 8, 2016 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. Quote Link to comment
ijuarez Posted July 8, 2016 Share Posted July 8, 2016 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 Quote Link to comment
RXWatcher Posted July 8, 2016 Author Share Posted July 8, 2016 you need to enable the searching of dockerhub in the community applications settings under the settings section of unraid. Quote Link to comment
RXWatcher Posted July 8, 2016 Author Share Posted July 8, 2016 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! Quote Link to comment
ijuarez Posted July 8, 2016 Share Posted July 8, 2016 you need to enable the searching of dockerhub in the community applications settings under the settings section of unraid. thank you Quote Link to comment
f3dora Posted July 8, 2016 Share Posted July 8, 2016 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. Quote Link to comment
Squid Posted July 8, 2016 Share Posted July 8, 2016 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. Quote Link to comment
RXWatcher Posted July 8, 2016 Author Share Posted July 8, 2016 That fixed it. Thanks for the quick response. Quote Link to comment
RXWatcher Posted July 8, 2016 Author Share Posted July 8, 2016 updated to use Community Applications instead of calling docker from the shell. Quote Link to comment
coppit Posted March 25, 2017 Share Posted March 25, 2017 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. Quote Link to comment
dadarara Posted April 12, 2017 Share Posted April 12, 2017 whats the solution for the 500 error ? Quote Link to comment
eric.frederich Posted April 28, 2017 Share Posted April 28, 2017 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 Quote Link to comment
kleinheld Posted May 6, 2017 Share Posted May 6, 2017 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. Quote Link to comment
SCSI Posted July 21, 2017 Share Posted July 21, 2017 (edited) 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, 2017 by SCSI Quote Link to comment
dadarara Posted July 22, 2017 Share Posted July 22, 2017 whats the solution for the 500 error ? Quote Link to comment
rinseaid Posted July 24, 2017 Share Posted July 24, 2017 In my case, removing spaces from my VM names resolved the 500 error. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.