Menu

#2 Support VNC for VirtualBox-ose

unassigned
closed
nobody
None
7
2014-12-16
2013-08-07
VVD
No

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!

1 Attachments

Discussion

  • Ian Moore

    Ian Moore - 2013-08-07

    Hello,

    Thank you for the patch. Out of curiosity, on what host OS are you running VirtualBox?

     
  • VVD

    VVD - 2013-08-07

    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.

     
  • Ian Moore

    Ian Moore - 2013-08-07

    Can you paste the output here of running:

    VBoxManage list extpacks

    on your FreeBSD box, please?

     
  • VVD

    VVD - 2013-08-07

    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:

     
  • Ian Moore

    Ian Moore - 2013-08-07

    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.

     
  • VVD

    VVD - 2013-08-07

    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.

     
  • Ian Moore

    Ian Moore - 2013-08-08

    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.

     
  • jandegr1

    jandegr1 - 2013-08-13

    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

     
  • VVD

    VVD - 2013-08-15

    jandegr1, is your virtual machine run with correct port?
    My use 5900 always. :-(

     
  • jandegr1

    jandegr1 - 2013-08-15

    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

     
  • jandegr1

    jandegr1 - 2013-08-18

    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
  • VVD

    VVD - 2013-09-12

    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!

     
  • sukosevato

    sukosevato - 2013-09-21

    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.

     
  • jandegr1

    jandegr1 - 2013-09-21

    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
  • Ian Moore

    Ian Moore - 2013-11-16
    • status: open --> closed
     
  • Ian Moore

    Ian Moore - 2013-11-16

    This feature has been implemented.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.