Bug 174976 - emulators/virtualbox-ose: virtualbox 4.2.6: VNC not working
Summary: emulators/virtualbox-ose: virtualbox 4.2.6: VNC not working
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-04 19:10 UTC by Martin Birgmeier
Modified: 2013-11-13 12:41 UTC (History)
0 users

See Also:


Attachments
patch-virtualbox-vnc.txt (560 bytes, patch)
2013-04-16 15:20 UTC, Stefan Bethke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Birgmeier 2013-01-04 19:10:00 UTC
Up till virtualbox 4.1.22, I have been starting headless virtual machines
using something like

    VBoxHeadless -n -m 9001 --startvm 'FreeBSD 7 i386 (v901)'

Now, neither the -n nor the -m command line options are supported. However,
in the VirtualBox manager command, I set the "server port" on the "remote
display" tab to 9001.

Now, when starting, VBoxHeadless displays:

    04/01/2013 19:49:09 Listening for VNC connections on TCP port 9001
    04/01/2013 19:49:09 Listening for VNC connections on TCP6 port 5900
    VRDE server is listening on port 9001.

So first, the old bug where the TCP6 port was not set has resurfaced.

Aside from that, the second problem is that using vncviewer (from
net/tightvnc) does not work at all: issuing

    vncviewer hal:9004

regardless of the setting of "authentication method" in "remote display"
results in being asked for a password, and no possible supplied password
works, always returning

    password check failed!

This happens even if the "authentication method" is set to "Null".

Fix: 

At least the TCP6 port problem has been solved before in the port.
How-To-Repeat: See the description.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-01-20 00:37:36 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vbox

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Bernhard Froehlich 2013-01-20 06:50:30 UTC
VNC is now supported as an extpack using VRDE. Please consult the vbox
documentation or have a look at the FreeBSD emulation mailinglist archives
where people have also documented the proper VBoxManage commands.
Comment 3 Stefan Bethke 2013-04-16 15:20:08 UTC
With the following patch, VirtualBox uses the vrde properties VNCAddress4, VNCAddress6, VNCPort4, and VNCPort6, and passes their values to libvncserver.  For example:
$ VBoxManage modifyvm Ubuntu --vrdeproperty VNCPort4=5902
$ VBoxManage modifyvm Ubuntu --vrdeproperty VNCPort6=5902

-- 
Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811
Comment 4 Mark Linimon 2013-05-02 23:39:33 UTC
----- Forwarded message from Bernhard Fröhlich <decke@bluelife.at> -----

Date: Fri, 3 May 2013 00:01:48 +0200
From: Bernhard Fröhlich <decke@bluelife.at>
To: Stefan Bethke <stb@lassitu.de>
Cc: Martin.Birgmeier@aon.at,
	"freebsd-emulation@freebsd.org" <freebsd-emulation@freebsd.org>
Subject: Re: ports/174976: fix for IPv6 port setting

I've just committed your patch to the vbox testing repository.

http://redports.org/changeset/11692

On Tue, Apr 16, 2013 at 5:01 PM, Stefan Bethke <stb@lassitu.de> wrote:
> With the following patch, VirtualBox uses the vrde properties VNCAddress4, VNCAddress6, VNCPort4, and VNCPort6, and passes their values to libvncserver.  For example:
> $ VBoxManage modifyvm Ubuntu --vrdeproperty VNCPort4=5902
> $ VBoxManage modifyvm Ubuntu --vrdeproperty VNCPort6=5902
>
> --
> Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811

-- 
Bernhard Fröhlich
http://www.bluelife.at/
_______________________________________________
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org"


----- End forwarded message -----
Comment 5 Bernhard Froehlich freebsd_committer freebsd_triage 2013-11-13 12:41:44 UTC
State Changed
From-To: open->closed

The patch has been reverted because it introduces backward incompatible 
new settings which also break www/phpvirtualbox.