LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-05-2007, 05:34 AM   #1
ErEn
Member
 
Registered: Jan 2006
Location: Ankara - Turkey
Distribution: Arch Linux
Posts: 39

Rep: Reputation: 15
Unhappy Trying to connect to a VirtualBox Windows guest through RDP


Hi all,

I have an absurd problem at least according me
I have a laptop running Ubuntu Feisty Fawn, and I installed VirtualBox on it to run windows Xp pro. I setup the virtual machine to use host networking so i use the following script to connect Windows to the local network.
Code:
# Set up variables here: 
DESC="Virtualbox IP tunnel" 
VBOXUSER=alp # this should be your username, can use 'root' if you want it for everyone 
PATH=/sbin:/bin:/usr/sbin:/usr/bin 
TUNDEVICE=tap1 # Arbitrary, but must match device used in virtualbox network device setting 
LANDEVICE=eth1 # Adjust to match your WiFi device - may be ath0 etc. 
IPADDR=192.168.1.60 # pick something from an unused subnet 

case "$1" in 
 start|restart|force-reload) 
	echo -n "Starting $DESC: " 
	chown root:vboxusers /dev/net/tun 
	tunctl -t $TUNDEVICE -u $VBOXUSER 
	ip link set $TUNDEVICE up 
	ip addr add $IPADDR dev $TUNDEVICE 
	iptables -t nat -P POSTROUTING DROP 
	iptables -t nat -A POSTROUTING -o $LANDEVICE -j MASQUERADE 
	echo 1 > /proc/sys/net/ipv4/ip_forward 
	echo 1 > /proc/sys/net/ipv4/conf/$TUNDEVICE/proxy_arp 
	parprouted $LANDEVICE $TUNDEVICE 
	;; 
 stop) 
	echo -n "Stopping $DESC: " 
	iptables --table nat -F 
	ip link set $TUNDEVICE down 
	;; 
 *) 
	N=/etc/init.d/$NAME 
	echo "Usage: $N start|stop" >&2 
	exit 1 
	;; 
esac 
exit 0
But of course that is not enough, I assigned a static ip to Windows which is "192.168.1.61" .
And now I am able to connect to internet and can access to other computers on LAN in Windows. But the problem is I can NOT access Windows from other computers and i can not ping "192.168.1.61". It says:
Quote:
ping: sendmsg: Operation not permitted
So I am not able to connect to Windows through rdp with the following command, after waiting for some it ends up with connection timed out!
Code:
alp@alp-laptop:~/Desktop$ rdesktop -rsound:remote -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Shell\WinShellEx\WinShellEx.exe" -c "c:\seamlessrdp" 192.168.1.61:3389 -u "remoteUser" -p password -N
Autoselected keyboard map en-us
ERROR: connect: Connection timed out
I also tried to connect 192.168.1.60 using rdesktop but it doesn't work either!
But I can ping 192.168.1.60 from other computers...
So Can anyone help me?... I am desperate...
 
Old 04-03-2010, 03:45 PM   #2
swingboy3
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Late but...

This may be a bit late on the reply, but I figure it might help someone in the future.

I was able to get RDP connected through the host by a setting on Virtualbox.

First shut down the windows XP client
Open the configurations for that client
Select the networking option
change from NAT to bridged adapter

That's it. I can remote in through the ip address assigned to the XP virtual box.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access windows drive from virtualbox cooler123321 Linux - General 1 07-06-2007 07:56 AM
windows rdp and telnet ilnli General 8 11-17-2006 07:02 AM
KDE 3.2 and Windows Remote Desktop (RDP) sorrodos Linux - Software 7 11-20-2005 12:01 PM
RDP - Linux to Windows vonedaddy Linux - Networking 1 10-19-2004 09:14 AM
Can't connect to Guest OS grifta Linux - Networking 1 07-26-2003 10:09 PM


All times are GMT -5. The time now is 10:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration