Support VNC for VirtualBox-ose
A web-based front-end to VirtualBox written in PHP
Brought to you by:
imoore76
Current version of phpVirtualBox can't configure VNC port for VirtualBox-ose (only RDP port for binary VirtualBox by Oracle).
There are example of implementation this feature for phpVirtualBox 4.2-5 (not my code, but I made few fixes). May be this patch have bugs, but this is only example, not ready to use in production software.
Thanks!
Hello,
Thank you for the patch. Out of curiosity, on what host OS are you running VirtualBox?
Main servers in production on Ubuntu 12.04 LTS with binary VirtualBox by Oracle, but want to migrate to VirtualBox-ose and may be on FreeBSD.
I have FreeBSD 9.1 on my workstation at work and at home and using both for testing.
Can you paste the output here of running:
VBoxManage list extpacks
on your FreeBSD box, please?
Extension Packs: 1
Pack no. 0: VNC
Version: 4.2.16_OSE
Revision: 86992
Edition:
Description: VNC plugin module
VRDE Module: VBoxVNC
Usable: true
Why unusable:
OK, I've included it in the latest SVN commit. If you'd like to test it, that would be great. Let me know if you need instructions on downloading the latest from SVN.
Thanks, I know how to use svn. :-]
Can't check - after I press "Settings" button I got infinite white box with message "Loading ...".
Logoff/login, browser restart (Firefox 22), web cache clean - everytime "Loading ...".
After switch back to older version - all work fine.
Checked on FreeBSD and on Ubuntu - same.
P.S. Sorry for my english.
Your English is fine. It looks like a accidentally added an extra character in the JS code that should not have been there. I fixed it now. Please download and test the latest commit.
I think it work fine, but I can't make full test - I got this bug:
https://forums.virtualbox.org/viewtopic.php?f=1&t=56311
And made ticket: https://www.virtualbox.org/ticket/12019
Hi,
Just want to let you know that setting the VNC password works for me with
Phpvirtualbox 4.2-7
tested on FreeBSD 9.1 with VirtualBox-ose 4.2.16
regards and many thanks,
Jan
jandegr1, is your virtual machine run with correct port?
My use 5900 always. :-(
Hi VVD,
I changed the port from 5900 to 5901 for my Ubuntu guest with the remote display tab of phpvirtualbox and I could connetct with VNC on port 5901.
So it seems fine over here, is there anything else I should test ?
regards,
Jan
Hi
I finally could duplicate the error. It is in no way phpvirtualbox related. It is in VBoxVNC.so (part of VirtualBox-ose),
I use my own version of VBoxVNC.so that I modified for an azerty-BE
keyboard layout. That is why I could not duplicate the error, because my
own version of VBoxVNC.so was still fine.
The FreeBSD port now contains a patch to enable IPv6 for VNC by default,
causing this mixup of portnumbers.
If you build the port, to remove that patch :
cd /usr/ports/emulators/virtualbox-ose
cd files
rm *VNC.cpp
cd ..
make as usual
Now the port is built with IPv4 for VNC only, and phpvirtualbox can now
handle the VNC port number correctly and the field VNC password also works.
If you want a prebuilt package, look there :
http://forums.nas4free.org/viewtopic.php?f=71&t=4785
I think a lid can be put on this issue.
regards,
Jan
Last edit: jandegr1 2013-08-21
jandegr1, thanks!
«- Revert VNC IPv6 patch because it causes an incompatibility. Per default the VNC ports are stored in "TCP/Ports" but with that change "VNCAddress4", "VNCPort4", "VNCAddress6" and "VNCPort6" are used which breaks phpvirtualbox and also confused VBoxManage/VBoxHeadless.» © http://svnweb.freebsd.org/ports?view=revision&revision=327110
Will test soon!
I currently have VirtualBox-Headless + PhpVirtualbox running on FreeBSD 9.1. I can indeed not edit vnc ports, it just manually assigns port numbers to my virtual machines. But I can see what that randomly assigned port number is. (5900, 5901 etc..) I can also connect to that via a separate vnc viewer.
So if I understand it correctly, if I reinstall my VirtualBox while removing that ipv6 patch and then add the patch you guys added, then I should be able to edit the VNC connection settings from inside the gui?
It would be awesome indeed if it would be possible to edit the vnc settings from inside phpvirtualbox and possibly even launch the vnc viewer already.
Good job on the patch so far! Much appreciated.
Things got corrected upstream, all you need to do is update your portstree,
build & install virtualbox-ose-4.2.18 and you're done.
Last edit: jandegr1 2013-09-21
This feature has been implemented.