archedraft Posted September 1, 2014 Share Posted September 1, 2014 Yes, virt-manager has a VNC connection added. My only thoughts are maybe I have to edit/uncomment more things out of libvirtd.conf? I shouldn't have to install a VNC viewer on my ubuntu vm correct? The only thing you should have uncommented in libvirt.conf is tcp listen. You created a sasl2passwd user and password so virt-manager asks for a username and password to view unraid vm's? Virt-manager has a built in vnc viewer. What ip address and port are in your vm xml file. correct tcp listen is uncommented. I also created an sal2passwd user and virt-manager requires me to enter that password to login. I used virt-manager to create the VM, virt-manager used 127.0.0.1 and 5900. Quote Link to comment
dmacias Posted September 1, 2014 Share Posted September 1, 2014 Yes, virt-manager has a VNC connection added. My only thoughts are maybe I have to edit/uncomment more things out of libvirtd.conf? I shouldn't have to install a VNC viewer on my ubuntu vm correct? The only thing you should have uncommented in libvirt.conf is tcp listen. You created a sasl2passwd user and password so virt-manager asks for a username and password to view unraid vm's? Virt-manager has a built in vnc viewer. What ip address and port are in your vm xml file. correct tcp listen is uncommented. I also created an sal2passwd user and virt-manager requires me to enter that password to login. I used virt-manager to create the VM, virt-manager used 127.0.0.1 and 5900. Maybe try a different vnc viewer from another computer. Quote Link to comment
rmk Posted September 1, 2014 Share Posted September 1, 2014 Thanks no more 1006 error but it times out. I'm not home so I'm probably not forwarding the right ports. Do I need to do anything in the vm differently? Forward whatever the websocket ports are for your domains. Your browser is making a direct websocket connection to the domain via novnc (it's all client side). Quote Link to comment
dmacias Posted September 1, 2014 Share Posted September 1, 2014 Thanks no more 1006 error but it times out. I'm not home so I'm probably not forwarding the right ports. Do I need to do anything in the vm differently? Forward whatever the websocket ports are for your domains. Your browser is making a direct websocket connection to the domain via novnc (it's all client side). Thanks I'm not sure what the default port is but just specified a port and got it working. Thanks for your help. So you know also if it's a limitation of webvirtmgr that only virtual networks are available when creating a vm? In virt-manager all networks are available. Quote Link to comment
peter_sm Posted September 1, 2014 Share Posted September 1, 2014 Just a Q, what will web socket do? Need go google that ..... Quote Link to comment
rmk Posted September 1, 2014 Share Posted September 1, 2014 What's the reason for restarting libvirtd within the plugin? https://github.com/dmacias72/webvirtmgr_unRAID_6/blob/master/webvirtmgr.plg#L1033-L1035 Quote Link to comment
dmacias Posted September 1, 2014 Share Posted September 1, 2014 What's the reason for restarting libvirtd within the plugin? https://github.com/dmacias72/webvirtmgr_unRAID_6/blob/master/webvirtmgr.plg#L1033-L1035 It's only on install but I had to downgrade libvirt to 1.2.6 to get network functionality within virt-manager or webvirtmgr. Otherwise you would see an error that it wasn't supported. I opened up a thread in the defect forum hoping they will include network support in their version. Edit: I don't really like the idea of restarting it cause when I added your repo the other night i forgot and was watching tv and it rebooted my mythbuntu vm. I think maybe I should make a separate libvirt plugin to install 1.2.6, include the scripts to symlink libvirt and start and stop with the array and enable tcp listen. Quote Link to comment
archedraft Posted September 2, 2014 Share Posted September 2, 2014 I got the virt-manager vnc working. I had to remove the default settings for the vnc and change it to "listen to all public network interfaces". On a side note, I upgraded to b8 and the WebVirtMgr plugin will not start. Have you guys tried upgrading yet? Quote Link to comment
dmacias Posted September 2, 2014 Share Posted September 2, 2014 Didn't know about 8. I will try it. Quote Link to comment
archedraft Posted September 2, 2014 Share Posted September 2, 2014 Thanks! Let me know, I may just have to delete the stuff and reinstall. Quote Link to comment
dmacias Posted September 2, 2014 Share Posted September 2, 2014 Thanks! Let me know, I may just have to delete the stuff and reinstall. It's working for me. I installed it after boot but its working. Quote Link to comment
rmk Posted September 2, 2014 Share Posted September 2, 2014 What's the reason for restarting libvirtd within the plugin? https://github.com/dmacias72/webvirtmgr_unRAID_6/blob/master/webvirtmgr.plg#L1033-L1035 It's only on install but I had to downgrade libvirt to 1.2.6 to get network functionality within virt-manager or webvirtmgr. Otherwise you would see an error that it wasn't supported. I opened up a thread in the defect forum hoping they will include network support in their version. Edit: I don't really like the idea of restarting it cause when I added your repo the other night i forgot and was watching tv and it rebooted my mythbuntu vm. I think maybe I should make a separate libvirt plugin to install 1.2.6, include the scripts to symlink libvirt and start and stop with the array and enable tcp listen. I posted some scripts in a separate thread a few days ago to manage Libvirt. I agree with having the this all part of a separate package. My scripts are intended to bring all domains up once the array is online and bring them down gracefully prior to stopping the array. While writing them, I discovered the slackware Libvirt scripts always stop all instances when Libvirt is stopped, which is a terrible assumption. I ended up killing libvirtd directly and removing the pid file in my script. Quote Link to comment
peter_sm Posted September 2, 2014 Share Posted September 2, 2014 @dmacias The files you got from me looks to works great with webvirtmanager. libvirt-1.2.8-x86_64-1_SBo.tgz libvirt-python-1.2.8-x86_64-1_SBo.tgz Quote Link to comment
dmacias Posted September 2, 2014 Share Posted September 2, 2014 @dmacias The files you got from me looks to works great with webvirtmanager. libvirt-1.2.8-x86_64-1_SBo.tgz libvirt-python-1.2.8-x86_64-1_SBo.tgz I'll add them in to the plugin now. I still wanna move the libvirt package to its own plugin. Quote Link to comment
archedraft Posted September 3, 2014 Share Posted September 3, 2014 This is login for webvirtmgr? You might remove the connection from webvirtmgr and recreate it using tcp and the peter_sm/yourpassword Sorry I just confused myself. The username/password for webvirtmgr login is created with manage.py createsuperuser and the tcp connection username/password is created with saslpasswd2 which is for any kvm management program to access libvirt via tcp So once you login to webvirtmgr, you create a tcp connection to unraid using the saslpasswd2 username/password. Same goes for virt-manager Could you explain what this means? I can connect with my username and password to virt-manager but webvirtmanager does not accept the same username and password. To setup the webvirtmanager do I type "manage.py createsuperuser USERNAME"? Quote Link to comment
dmacias Posted September 3, 2014 Share Posted September 3, 2014 Yes you need to create a username and password to access webvirtmgr. When you type in that command you just put in the name you want to use like admin and it will ask for an email and password. If webvirtmgr is on your cache drive you would type in /mnt/cache/manage.py createsuperuser Also I need to update the repo back to https://github.com/retspen/webvirtmgr It looks like he updated it. Edit: you might type manage.py createsuper --help for the correct command line parameters. I know you can enter email and username in the command line then all you have to do is enter a password. Quote Link to comment
archedraft Posted September 3, 2014 Share Posted September 3, 2014 Thanks dmacias I was able to login! Which connection protocol do you recommend using? Quote Link to comment
dmacias Posted September 3, 2014 Share Posted September 3, 2014 Websocket. It's a direct connection It doesn't require the sasl2 password Quote Link to comment
archedraft Posted September 3, 2014 Share Posted September 3, 2014 oh awesome! easy enough. Now time to play around. Thanks again. Quote Link to comment
Pducharme Posted September 3, 2014 Author Share Posted September 3, 2014 reading all that now, i'm lost !! Is there a PLG or a Docker of that WebVirtMgr to manage VMs of KVM ? Quote Link to comment
dmacias Posted September 3, 2014 Share Posted September 3, 2014 reading all that now, i'm lost !! Is there a PLG or a Docker of that WebVirtMgr to manage VMs of KVM ? There's a plugin webvirtmgr. As of now it includes an updated libvirt package so when you install it your vm's are restarted. My plan was to make a separate libvirt plugin also and the post separate plugins for each. Quote Link to comment
jonp Posted September 4, 2014 Share Posted September 4, 2014 Guys, this is awesome work. I am geeking out over this right now. I just installed it as I've been caught up in the haze of other stuff. Got the login stuff figured out and I'm just starting to toy around with some of the more comprehensive stuff. Quote Link to comment
dmacias Posted September 4, 2014 Share Posted September 4, 2014 Guys, this is awesome work. I am geeking out over this right now. I just installed it as I've been caught up in the haze of other stuff. Got the login stuff figured out and I'm just starting to toy around with some of the more comprehensive stuff. Thanks. Any chance of including a similar build of libvirt like peter_sm built so network management is available? Also it would be cool to include libvirt-php so you could include a webpage like docker has. http://libvirt.org/php/ So you could do something like this https://github.com/xpmozong/libvirt-php-examples There's also this https://minovotn.fedorapeople.org/php-virt-control/ Quote Link to comment
Pducharme Posted September 4, 2014 Author Share Posted September 4, 2014 This is the error I receive when I try to install on Unraid 6b8. See attached log. I don't know if it help, but my WebUI is on port 90 instead of port 80 (because of PlexConnect docker). Log_error.txt Quote Link to comment
jonp Posted September 4, 2014 Share Posted September 4, 2014 Guys, this is awesome work. I am geeking out over this right now. I just installed it as I've been caught up in the haze of other stuff. Got the login stuff figured out and I'm just starting to toy around with some of the more comprehensive stuff. Thanks. Any chance of including a similar build of libvirt like peter_sm built so network management is available? Also it would be cool to include libvirt-php so you could include a webpage like docker has. http://libvirt.org/php/ So you could do something like this https://github.com/xpmozong/libvirt-php-examples There's also this https://minovotn.fedorapeople.org/php-virt-control/ Eric and I talked about this around 2am this morning. We are looking into this. 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.