Any use WebVirtMgr with KVM ??


Recommended Posts

 

 

 

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.

Link to comment
  • Replies 120
  • Created
  • Last Reply

Top Posters In This Topic

 

 

 

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.

Link to comment

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).

Link to comment

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.

Link to comment

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.

Link to comment

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.

Link to comment

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"?

Link to comment

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.

Link to comment

reading all that now, i'm lost !! :o

 

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.

 

Link to comment

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/

Link to comment

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.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.