Vbox Host OS By Ubuntu12.04 下默认NAT VRDP授权超时

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
ckmaster
帖子: 40
注册时间: 2010-03-02 14:21

Vbox Host OS By Ubuntu12.04 下默认NAT VRDP授权超时

#1

帖子 ckmaster » 2014-05-08 13:57

宿主机 Ubuntu12.04-4 32bit

安装Vbox 4.3.10 32 + Oracle_VM_VirtualBox_Extension_Pack-4.3.10

使用默认 NAT 监听端口默认3389

sudo vboxmanage modifyvm "2003s" --vrde on

sudo adduser 2003s

sudo vboxmanage modifyvm "2003s" --vrdeauthtype external

sudo vboxmanage modifyvm "2003s" --vrdeauthlibrary default

sudo vboxmanage startvm "2003s" --type headless

sudo netstat -atln

代码: 全选

tcp        0      0 127.0.0.1:3389      0.0.0.0:*               LISTEN
telnet 也是通的...

但是mstsc时 就会一直提示 “正在配置远程会话” 然后过上三五分钟就是出现

“客户端试图连接时 出现了一个授权错误(授权超时)请重新跟远程计算机连接”

再次连接 时 查看 netstat 连接状态会变成

代码: 全选

tcp        0      0 127.0.0.1:3389      117.22.180.110:49477    TIME_WAIT
tcp        0      0 127.0.0.1:3389      117.22.180.110:49478    FIN_WAIT2

代码: 全选

Drag'n'drop Mode: disabled
VRDE:            enabled (Address 127.0.0.1, Ports 3389, MultiConn: on, ReuseSingleConn: off, Authentication type: external)
Video redirection: disabled
VRDE property: TCP/Ports  = "3389"
VRDE property: TCP/Address = "127.0.0.1"
VRDE property: VideoChannel/Enabled = <not set>
VRDE property: VideoChannel/Quality = <not set>
VRDE property: VideoChannel/DownscaleProtection = <not set>
VRDE property: Client/DisableDisplay = <not set>
VRDE property: Client/DisableInput = <not set>
VRDE property: Client/DisableAudio = <not set>
VRDE property: Client/DisableUSB = <not set>
VRDE property: Client/DisableClipboard = <not set>
VRDE property: Client/DisableUpstreamAudio = <not set>
VRDE property: Client/DisableRDPDR = <not set>
VRDE property: H3DRedirect/Enabled = <not set>
VRDE property: Security/Method = <not set>
VRDE property: Security/ServerCertificate = <not set>
VRDE property: Security/ServerPrivateKey = <not set>
VRDE property: Security/CACertificate = <not set>
VRDE property: Audio/RateCorrectionMode = <not set>
VRDE property: Audio/LogPath = <not set>
请问以上问题是如何造成的 问题出在哪里 如何解决 希望大家不吝赐教 感激....

以下是运行日志

代码: 全选

00:00:24.460704 VRDP: New connection: 
00:00:24.460809 VRDP: Connection opened (IPv4): 0
00:00:24.461494 VRDP: Negotiating security method with the client.
00:00:24.463682 VRDP: Connection closed: 0
00:00:24.515427 VRDP: New connection: 
00:00:24.515489 VRDP: Connection opened (IPv4): 1
00:00:24.516191 VRDP: Negotiating security method with the client.
00:00:24.579674 VRDP: Methods 0x0000001b
00:00:24.579687 VRDP: Channel: [rdpdr] [1004]. Accepted.
00:00:24.579693 VRDP: Channel: [rdpsnd] [1005]. Accepted.
00:00:24.579698 VRDP: Channel: [drdynvc] [1006]. Accepted.
00:00:24.579704 VRDP: Channel: [cliprdr] [1007]. Accepted.
00:00:24.850736 VRDP: Client seems to be MSFT.
00:00:24.850754 VRDP: Logon: ALANSUN-PC (172.16.1.101) build 7601. User: [vbox] Domain: [] Screen: 0
00:00:24.852910 AUTH: User: [vbox]. Domain: []. Authentication type: [External]
00:00:24.853540 AUTH: loading external authentication library 'vboxauth'
00:00:24.853576 RTLdrLoadAppPriv: "/usr/lib/virtualbox/vboxauth.so" not found
00:00:24.853746 AUTH: Failed to load external authentication library. Error code: VERR_FILE_NOT_FOUND
00:00:24.853771 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={8ab7c520-2442-4b66-8d74-4ff1e195d2b6} aComponent={Console} aText={Could not load the external authentication library 'vboxauth' (VERR_FILE_NOT_FOUND)}, preserve=false
00:00:24.853795 AUTH: Access denied.
00:00:24.853802 VRDP: Connection closed: 1
00:00:35.846665 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=af600000 w=640 h=480 bpp=0 cbLine=0x280, flags=0x1
00:00:35.876598 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=00000000 w=720 h=400 bpp=0 cbLine=0x0, flags=0x1
00:00:36.016673 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=af600000 w=640 h=480 bpp=0 cbLine=0x140, flags=0x1
00:00:36.020657 Guest Log: int13_harddisk: function 15, unmapped device for ELDL=81
00:00:42.456956 PIT: mode=2 count=0x2ead (11949) - 99.85 Hz (ch=0)
00:00:49.051625 PIIX3 ATA: LUN#0: IDLE IMMEDIATE, CmdIf=0xc4 (-1 usec ago)
00:00:49.051653 PIIX3 ATA: LUN#0: aborting current command
00:00:56.448050 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=af600000 w=1024 h=768 bpp=16 cbLine=0x800, flags=0x1
00:01:10.196663 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=00000000 w=720 h=400 bpp=0 cbLine=0x0, flags=0x1
00:01:10.226806 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=af600000 w=1024 h=768 bpp=32 cbLine=0x1000, flags=0x1

头像
astolia
论坛版主
帖子: 6703
注册时间: 2008-09-18 13:11

Re: Vbox Host OS By Ubuntu12.04 下默认NAT VRDP授权超时

#2

帖子 astolia » 2014-05-08 19:54

日志里写的很清楚啊 "/usr/lib/virtualbox/vboxauth.so" not found,正确的路径应该是 /usr/lib/virtualbox/VBoxAuth.so
不知道你是不是改了vbox默认的认证库地址。 自己看看grep VRDEAuthLibrary ~/.VirtualBox/VirtualBox.xml。
或者你把/usr/lib/virtualbox/VBoxAuth.so做个软链接到/usr/lib/virtualbox/vboxauth.so
ckmaster
帖子: 40
注册时间: 2010-03-02 14:21

Re: Vbox Host OS By Ubuntu12.04 下默认NAT VRDP授权超时

#3

帖子 ckmaster » 2014-05-08 22:19

astolia 写了:日志里写的很清楚啊 "/usr/lib/virtualbox/vboxauth.so" not found,正确的路径应该是 /usr/lib/virtualbox/VBoxAuth.so
不知道你是不是改了vbox默认的认证库地址。 自己看看grep VRDEAuthLibrary ~/.VirtualBox/VirtualBox.xml。
或者你把/usr/lib/virtualbox/VBoxAuth.so做个软链接到/usr/lib/virtualbox/vboxauth.so
感谢您的解答,我是个新手,按照您说的我做了 ln 软链过去,依然是无法连接 授权超时以下是新的日志劳烦您再给看看
我找不到 VirtualBox.xml 这个文件 知道文件所在位置, 您说的 grep VRDEAuthLibrary ~/.VirtualBox/VirtualBox.xml 这个命令我输入后提示 bad command
请问这个命令该如何使用

代码: 全选

00:00:10.260049 VRDP: New connection: 
00:00:10.260147 VRDP: Connection opened (IPv4): 0
00:00:10.261014 VRDP: Negotiating security method with the client.
00:00:10.263447 VRDP: Connection closed: 0
00:00:10.316071 VRDP: New connection: 
00:00:10.316138 VRDP: Connection opened (IPv4): 1
00:00:10.316980 VRDP: Negotiating security method with the client.
00:00:10.370606 VRDP: Methods 0x0000001b
00:00:10.370619 VRDP: Channel: [rdpdr] [1004]. Accepted.
00:00:10.370625 VRDP: Channel: [rdpsnd] [1005]. Accepted.
00:00:10.370630 VRDP: Channel: [drdynvc] [1006]. Accepted.
00:00:10.370635 VRDP: Channel: [cliprdr] [1007]. Accepted.
00:00:10.613325 VRDP: Client seems to be MSFT.
00:00:10.613344 VRDP: Logon: ALANSUN-PC (172.16.1.222) build 7601. User: [vbox] Domain: [] Screen: 0
00:00:10.615579 AUTH: User: [vbox]. Domain: []. Authentication type: [External]
00:00:10.616278 AUTH: loading external authentication library 'vboxauth'
00:00:10.616420 AUTH: Using entry point 'AuthEntry'.
00:00:14.461258 AUTH: external authentication module returned 'access denied'
00:00:14.461274 AUTH: Access denied.
00:00:14.461284 VRDP: Connection closed: 1
00:00:35.888395 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=00000000 w=720 h=400 bpp=0 cbLine=0x0, flags=0x1
00:00:36.031970 Guest Log: int13_harddisk: function 15, unmapped device for ELDL=81
00:00:36.038321 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=af700000 w=640 h=480 bpp=0 cbLine=0x140, flags=0x1
00:00:41.787818 PIT: mode=2 count=0x2ead (11949) - 99.85 Hz (ch=0)
00:00:48.382498 PIIX3 ATA: LUN#0: IDLE IMMEDIATE, CmdIf=0xc4 (-1 usec ago)
00:00:48.382523 PIIX3 ATA: LUN#0: aborting current command
00:00:55.788411 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=af700000 w=1024 h=768 bpp=16 cbLine=0x800, flags=0x1
00:01:09.378424 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=af700000 w=1024 h=768 bpp=32 cbLine=0x1000, flags=0x1
ckmaster
帖子: 40
注册时间: 2010-03-02 14:21

Re: Vbox Host OS By Ubuntu12.04 下默认NAT VRDP授权超时

#4

帖子 ckmaster » 2014-05-08 22:19

astolia 写了:日志里写的很清楚啊 "/usr/lib/virtualbox/vboxauth.so" not found,正确的路径应该是 /usr/lib/virtualbox/VBoxAuth.so
不知道你是不是改了vbox默认的认证库地址。 自己看看grep VRDEAuthLibrary ~/.VirtualBox/VirtualBox.xml。
或者你把/usr/lib/virtualbox/VBoxAuth.so做个软链接到/usr/lib/virtualbox/vboxauth.so
感谢您的解答,我是个新手,按照您说的我做了 ln 软链过去,依然是无法连接 授权超时以下是新的日志劳烦您再给看看
我找不到 VirtualBox.xml 这个文件 知道文件所在位置, 您说的 grep VRDEAuthLibrary ~/.VirtualBox/VirtualBox.xml 这个命令我输入后提示 bad command
请问这个命令该如何使用

代码: 全选

00:00:10.260049 VRDP: New connection: 
00:00:10.260147 VRDP: Connection opened (IPv4): 0
00:00:10.261014 VRDP: Negotiating security method with the client.
00:00:10.263447 VRDP: Connection closed: 0
00:00:10.316071 VRDP: New connection: 
00:00:10.316138 VRDP: Connection opened (IPv4): 1
00:00:10.316980 VRDP: Negotiating security method with the client.
00:00:10.370606 VRDP: Methods 0x0000001b
00:00:10.370619 VRDP: Channel: [rdpdr] [1004]. Accepted.
00:00:10.370625 VRDP: Channel: [rdpsnd] [1005]. Accepted.
00:00:10.370630 VRDP: Channel: [drdynvc] [1006]. Accepted.
00:00:10.370635 VRDP: Channel: [cliprdr] [1007]. Accepted.
00:00:10.613325 VRDP: Client seems to be MSFT.
00:00:10.613344 VRDP: Logon: ALANSUN-PC (172.16.1.222) build 7601. User: [vbox] Domain: [] Screen: 0
00:00:10.615579 AUTH: User: [vbox]. Domain: []. Authentication type: [External]
00:00:10.616278 AUTH: loading external authentication library 'vboxauth'
00:00:10.616420 AUTH: Using entry point 'AuthEntry'.
00:00:14.461258 AUTH: external authentication module returned 'access denied'
00:00:14.461274 AUTH: Access denied.
00:00:14.461284 VRDP: Connection closed: 1
00:00:35.888395 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=00000000 w=720 h=400 bpp=0 cbLine=0x0, flags=0x1
00:00:36.031970 Guest Log: int13_harddisk: function 15, unmapped device for ELDL=81
00:00:36.038321 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=af700000 w=640 h=480 bpp=0 cbLine=0x140, flags=0x1
00:00:41.787818 PIT: mode=2 count=0x2ead (11949) - 99.85 Hz (ch=0)
00:00:48.382498 PIIX3 ATA: LUN#0: IDLE IMMEDIATE, CmdIf=0xc4 (-1 usec ago)
00:00:48.382523 PIIX3 ATA: LUN#0: aborting current command
00:00:55.788411 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=af700000 w=1024 h=768 bpp=16 cbLine=0x800, flags=0x1
00:01:09.378424 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=af700000 w=1024 h=768 bpp=32 cbLine=0x1000, flags=0x1
头像
astolia
论坛版主
帖子: 6703
注册时间: 2008-09-18 13:11

Re: Vbox Host OS By Ubuntu12.04 下默认NAT VRDP授权超时

#5

帖子 astolia » 2014-05-08 23:30

你没有设置好宿主机的PAM认证系统又要用external方式认证当然会这样了。
非要认证又怕麻烦的话,用VBoxAuthSimple方式好了,直接提供个用户名和密码就行了
具体见官方文档:
http://www.virtualbox.org/manual/ch07.html#vbox-auth
ckmaster
帖子: 40
注册时间: 2010-03-02 14:21

Re: Vbox Host OS By Ubuntu12.04 下默认NAT VRDP授权超时

#6

帖子 ckmaster » 2014-05-09 0:54

astolia 写了:你没有设置好宿主机的PAM认证系统又要用external方式认证当然会这样了。
非要认证又怕麻烦的话,用VBoxAuthSimple方式好了,直接提供个用户名和密码就行了
具体见官方文档:
http://www.virtualbox.org/manual/ch07.html#vbox-auth
非常感谢
回复