VNC (OSX ScreenSharing) broken with HostOnly

Postings relating to old VirtualBox pre-releases
Post Reply
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

VNC (OSX ScreenSharing) broken with HostOnly

Post by socratis »

Host:     OSX 10.11.6
Guest:    Any OSX VM
Severity: STOP THE PRESSES!!!
OSX has this feature called "Screen Sharing" under System Preferences » Sharing. It's a built-in VNC server. Launch any OSX VM, enable ScreenSharing, and then from the host's Finder you can see the VM. Click on the "Share Screen..." on the host's Finder and a credentials dialog pops up. Fill that in and you're screen sharing the VM.

It broke!!! Somewhere between r126642 and r126868 the credentials dialog never comes up, it's stuck at the "Connecting to VM..." until it times out and fails.

This is happening if the VM is using the HostOnly adapter. If the VM uses a Bridged adapter it works, including with 6.0.0b3 r127054.

Thanks to okluss for helping me pinpoint this to the HostOnly adapter and not to the whole VNC issue as I originally thought.

I believe this is due to the recent VNC/RDP fixes/patches:
It fails with 6.0.0b3 r127054 as well.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
okiuss
Posts: 61
Joined: 7. Nov 2016, 14:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: OSX,LINUX,WINXXX
Location: Austria

Re: VNC (OSX ScreenSharing) broken

Post by okiuss »

Host: 10.13.6
Guest: 10.13.6
VB: 6 Beta 3

Screen Sharing works for me .... BUT

it depends on the interface the guest is useing.
Bridged Networking on the guest did function at the first run.

HostOnly did not.
Had to reboot the server so that the HOST shows the usual IP settings:
vboxnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
ether 0a:00:27:00:00:00
inet 192.168.56.1 netmask 0xffffff00 broadcast 192.168.56.255
(In the first run there was NO ip assigned to the host !)

But the guest still did not get an ip assigned by the VBox DHCP.
After setting up a manual ip to the guest, screen sharing over host only adapter works too.

IMHO there is something broken with the host only adapter in VB 6 Beta.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VNC (OSX ScreenSharing) broken

Post by socratis »

Brilliant okluss, you nailed it!!!

HostOnly doesn't work, Bridged does. So, it turns out that it's not the VNC patches that messed this up, it's the HostOnly adapter. I'll update the first post and the title to reflect this.

Thank you!
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply