Skip to contentSkip to conversation

user-net -redir working?

Qemu-devel Richard Neill 1 participant 1 message Nov 22, 2005

lore
Share & tools
lore
#0 lore raw

Re: User-net not working:

Quoted 9 lines

Disabling the Nagle algorithm (i.e., enabling TCP_NODELAY) or typing a lot of garbage just to fill the buffer with enough data can help, also.

And IIRC, netcat has a UDP mode as well. I see no reason for this to happen, but is there any chance it's using UDP by default, and you're only redirecting TCP?

Good luck!

Thanks for your message.

I think that -redir really is broken: I've also been unsuccessful in trying to make it work using an FTP server on a Windows guest, and using the SSH server on a knoppix guest. Has anyone here ever had success with it? It also fails on hosts with 2 different versions of Mandrake.

Anyway, I've taken your suggestion, and run both ends with ethereal. Here's what I did:

HOST (Linux);
qemu -cdrom /dev/cdrom -boot d -user-net -redir tcp:2200::22

GUEST (Knoppix):
Boot up, then start sshd. Verify that I can indeed do ssh root@localhost, and that PermitRootLogin is yes in sshd_config.

Then, start ethereal (on the "any" interface)

HOST:
Start ethereal (on the "any" interface")
ssh -p 2200 root@localhost

At this point, ssh just stalls. It's obviously waiting for something, but not known what. I get no output at all from it.

End of experiment.

ETHEREAL on HOST is showing a series of empty packets:

SYN
SYN
ACK
FIN
ACK
FIN
ACK
[repeats]

ETHEREAL on GUEST is showing a series of empty packets, all of which
are SYN.

I have no problem in making an outgoing connection from the GUEST to the
HOST.

I'm attaching both log files - they are only 2.5 kB

Any ideas? Has anyone succesfully used the user-net -redir option?

Richard

�ò���q�o�C�>>RT5 NE,@� ӽk�"8_���o�C��>>RT5 NE,@� ӽk�"8_���o�Cd_>>RT5 NE,@� ӽk�"8_���o�C��>>RT5 NE,@� �\* "8A�p�C�">>RT5 NE,@� �\* "8A�p�C;�>>RT5 NE,@� �\* "8A�p�C��>>RT5 NE,@� �\* "8A�&p�C�>>RT5 NE,@� �\* "8A�/p�C8�>>RT5 NE,@� �]��"8k��2p�Cp)>>RT5 NE,@� �\* "8A�4p�C��
>>RT5 NE,@� �]��"8k��>p�C!4>>RT5 NE,@� �\* "8A�@p�C��
>>RT5 NE,@� �]��`"8k��Lp�C��
>>RT5 NE,@�
�]��`"8k��Np�C�9 >>RT5 NE,@�
�^�<"8��Tp�C&>>RT5 NE,@� �^�<"8��Xp�CԬ
>>RT5 NE,@� �]��"8k��p�C >>RT5 NE, @� �^�<`"8��dp�C2�
>>RT5 NE,!@� �]��`"8k��

�ò���qU~�C9�LLE<�T@@Ke�]�Ո�����@ 
'R\U~�Cg�LLE<@@<���]���Ո� ��ɝ@ 
'R\'R\U~�C��DDE4�V@@Kk�]�Ո� ���� ��
'R\'R\n~�C �DDE4��@@}��\��3���%� �^ '��'�n~�C0�DDE4@@<��\���%���3�� *t
'��'��t~�C��DDE4�X@@Ki�]�Ո� ���� W
'��'R\t~�C~�DDE4W�@@����]���Ո�
� �� '��'��u~�C��LLE<��@@���^�בKp����@  'ʹu~�C��LLE<@@<���^��WבKq���@  'ʹ'ʹu~�CDDE4��@@���^�בKq��X� �� 'ʹ'ʹ�~�C��DDE4��@@���^�בKq��X� �@ (N'ʹ�~�Ch�DDE4��@@f���^��XבKr� I� (O(N