VRDP not working after upgrading to 5.1

Discussions related to using VirtualBox on Linux hosts.
VBoxVM
Posts: 11
Joined: 14. Jul 2016, 09:28
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Debian
Contact:

VRDP not working after upgrading to 5.1

Post by VBoxVM »

Host: Debian 8. Updated from 5.0.26 to 5.1. Extension Pask updated. Firewall is not set, the ports are opened.
VBoxManage showvminfo:
VRDE: enabled (Address 0.0.0.0, Ports 5004, MultiConn: on, ReuseSingleConn: off, Authentication type: external)
VRDP not working after upgrading.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VRDP not working after upgrading to 5.1

Post by Perryg »

Post the guests log file ( as an attachment ). Right click on the guest in the Main Manager then click show log. Save and post as an attachment. Compress if it is too large to post.
VBoxVM
Posts: 11
Joined: 14. Jul 2016, 09:28
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Debian
Contact:

Re: VRDP not working after upgrading to 5.1

Post by VBoxVM »

Added log file
Attachments
log.txt
(65.91 KiB) Downloaded 14 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VRDP not working after upgrading to 5.1

Post by Perryg »

Code: Select all

00:00:16.004243 VRDP: Connection opened (IPv4): 0
00:00:16.004579 VRDP: Negotiating security method with the client.
00:00:16.005191 VRDP: Connection closed: 0
00:00:16.111891 VRDP: New connection: 
00:00:16.111931 VRDP: Connection opened (IPv4): 1
00:00:16.112203 VRDP: Negotiating security method with the client.
00:00:16.112760 VRDP: Connection closed: 1
00:00:16.220204 VRDP: New connection: 
00:00:16.220240 VRDP: Connection opened (IPv4): 2
00:00:16.220655 VRDP: Negotiating security method with the client.

Code: Select all

00:00:16.585942 AUTH: Using entry point 'AuthEntry'
00:00:16.586031 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={d2937a8e-cb8d-4382-90ba-b7da78a74573} aComponent={VirtualBoxClientWrap} aText={Attempted to create more than one VirtualBoxClient instance}, preserve=false aResultDetail=0
00:00:16.652642 AUTH: external authentication module returned 'access denied'
00:00:16.652659 AUTH: Access denied.
00:00:16.652664 VRDP: Connection closed: 2
For what ever reason the first connection fails which is setting up the failure. One possible reason is the external authentication that you are using and it is not returning the validation fast enough for what ever reason. Does the it work if you set the authentication to none (null)
VBoxVM
Posts: 11
Joined: 14. Jul 2016, 09:28
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Debian
Contact:

Re: VRDP not working after upgrading to 5.1

Post by VBoxVM »

Without authentication works.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VRDP not working after upgrading to 5.1

Post by Perryg »

I am not sure of any real work on the vRDP section lately, but it could have happened. You might want to post a ticket to bugtracker and tell your story. Be sure to tell then which version worked and post guest logs.
VBoxVM
Posts: 11
Joined: 14. Jul 2016, 09:28
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Debian
Contact:

Re: VRDP not working after upgrading to 5.1

Post by VBoxVM »

Bug reports created.
Install version 5.0.26, vrdp works!
socratis
Site Moderator
Posts: 27329
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: VRDP not working after upgrading to 5.1

Post by socratis »

VBoxVM wrote:Bug reports created.
It would be nice if you posted a link to the tickets, so anyone landing here from a search could continue their quest to fix it. TIA.
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.
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: VRDP not working after upgrading to 5.1

Post by frank »

Should be fixed in the most recent 5.1 test builds.
VBoxVM
Posts: 11
Joined: 14. Jul 2016, 09:28
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Debian
Contact:

Re: VRDP not working after upgrading to 5.1

Post by VBoxVM »

socratis wrote:It would be nice if you posted a link to the tickets, so anyone landing here from a search could continue their quest to fix it. TIA.
https://www.virtualbox.org/ticket/15653
offsides
Posts: 5
Joined: 3. Apr 2010, 19:07
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: Windows XP

Re: VRDP not working after upgrading to 5.1

Post by offsides »

I just reopened the ticket - it's happening to me in 5.1.10 on CentOS7. This is my first 5.1.x build (I migrated to it from 5.0.x on an older server), so I don't know if earlier versions worked or not.
offsides
Posts: 5
Joined: 3. Apr 2010, 19:07
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: Windows XP

Re: VRDP not working after upgrading to 5.1

Post by offsides »

It's starting too look like a weird unix_chkpwd issue (not running as root despite being setuid root!), but I'm stumped for ideas...
offsides
Posts: 5
Joined: 3. Apr 2010, 19:07
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: Windows XP

Re: VRDP not working after upgrading to 5.1

Post by offsides »

OK, so the bottom line is that unless you run as root, the VBoxAuth.so that uses PAM just doesn't work (theoretically it should work for the user running the VM, but even that was being a problem). So I took the existing code and split it into 2 parts: a VBoxAuth module (VBoxAuthPAMnonroot.so) that doesn't call PAM directly, but instead calls a SUID helper binary that then does the PAM auth as root (VBoxAuthPAMnrhelper). As a security measure to limit the risks of abusing the SUID helper (outside of repeated VRDP auth attempts) the helper binary MUST be hardlinked to VBoxAuthPAM.nrhelper-<username>, where <username> is the name of the user running the VM. Multiple users are permitted, just create multiple hardlinks. The module will call the helper with the name of the user running the VM, and if any other user tries to run that specific link/path it will refuse to do anything.

There's probably a little cleanup that can be done, but I mostly reused existing code wherever possible, and it works on my home system.
Attachments
VBoxAuthPAMnrhelper.c
Non-Root PAM Auth SUID Helper
(9.86 KiB) Downloaded 9 times
VBoxAuthPAMnonroot.h
Non-Root PAM Auth header file
(271 Bytes) Downloaded 5 times
VBoxAuthPAMnonroot.c
Non-Root PAM Auth module
(7.06 KiB) Downloaded 6 times
socratis
Site Moderator
Posts: 27329
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: VRDP not working after upgrading to 5.1

Post by socratis »

@offsides
If you post the resolution to the bug you've been also reporting as well (https://www.virtualbox.org/ticket/15653), you might have a better chance for the developers to see your solution.
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.
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: VRDP not working after upgrading to 5.1

Post by frank »

I don't know why it should be necessary to have root permissions to use the services of libpam.so. My host is using shadow passwords as well but using VBoxAuth authentication I'm able to login using my local credentials. For some reason it's not possible to login if I start the VM using strace but I have no problems without strace. I'm using libpam0g 1.1.8-3.3 on a Debian/Sid installation.
Post Reply