LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-23-2011, 03:55 PM   #1
St. Even
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Question RDP to Windows XP guest on kvm constantly reconnecting after logon


Hello all,


ISSUE

I have, after some days of "hard" work, managed to correctly configure kvm on a Centos 5.5 host. I have 2 VM running successfully. Since I only have one public IP address (for the kvm host) I am trying to setup port forwarding (using IP tables). And everything seems to work fine. When I rdp to 'hostname.com:3389' I successfully get the login screen for my Windows XP VM.

The problem starts after logging in... As soon as I provided my credentials in the Windows XP VM the rdp session disconnect/reconnects... It all happens so fast that I cannot really do anything (in a matter of seconds I am disconnected and reconnected again).


TROUBLESHOOTING

So what have I already tried/checked?
1. I tested the port forwarding the other VM (a Centos system) and I can successfully connect using ssh (and no disconnects).
2. I checked that after I created the iptables rules I could still access the host and the Internet from my Windows XP VM.


LOGS/OUTPUT

PREROUTING rule:
Code:
DNAT       tcp  --  0.0.0.0/0            12.12.12.12       tcp dpt:21 to:192.168.122.1:3389
FORWARD rule:
Code:
ACCEPT     all  --  anywhere             192.168.122.0/24    state NEW,RELATED,ESTABLISHED
To me this all should work... Unfortunately it does not! Hope somebody can help me!
 
Old 03-28-2011, 06:48 AM   #2
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Can you connect to the XP machine from the VM host machine, using rdesktop? That would eliminate port forwarding as a problem. Can you connect using, for example, TightVNC instead? (I take it your XP machine still gives you a qemu console?)
 
Old 03-28-2011, 10:51 AM   #3
St. Even
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your suggestion... I tried to connect to the WinXP system using rdesktop remotely (so not from another VM guest, but over the Internet) and believe it or not, that works fine! No disconnects at all! So it seems that the build-in RDP client in Windows is the culprit. I tried playing with its settings to make it work, but so far I have not been able to get it to work...

So any suggestions are more than welcome!
 
Old 03-29-2011, 12:40 AM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by St. Even View Post
Thanks for your suggestion... I tried to connect to the WinXP system using rdesktop remotely (so not from another VM guest, but over the Internet) and believe it or not, that works fine! No disconnects at all! So it seems that the build-in RDP client in Windows is the culprit. I tried playing with its settings to make it work, but so far I have not been able to get it to work...

So any suggestions are more than welcome!
Perhaps you don't have all your updates installed on the Windows XP VM? One of those updates is an update to the remote desktop protocol. Update RDP at the client end as well.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to connect to a VirtualBox Windows guest through RDP ErEn Linux - Networking 1 04-03-2010 03:45 PM
KVM: Mouse under Windows Guest performs way better than under Centos Guest martdj Linux - Virtualization and Cloud 3 03-29-2010 04:20 AM
Wireless Connection Constantly Dropping and Reconnecting TheEvilOne6620 Linux - Wireless Networking 1 08-03-2009 01:02 PM
Wireless Connection Constantly Dropping and Reconnecting TheEvilOne6620 Linux - Networking 1 07-26-2009 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration