安装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
但是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