All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] interesting tftp experiments
@ 2005-06-27 14:25 Christian MICHON
  2005-06-29 23:45 ` Henrik Nordstrom
  0 siblings, 1 reply; 5+ messages in thread
From: Christian MICHON @ 2005-06-27 14:25 UTC (permalink / raw)
  To: qemu-devel

Hi,

since I was able on a windows host to connect (but no transfer)
on a ftp server over slirp, I thought I could do the same:
over slirp, connect to a true tftp server, not the layer provided
in slirp/tftp.c

In order to do so, I had to do minor patches to v0.7.0
- remove reference to tftp in vl.c
- remove reference to tftp in slirp/udp.c
- remove tftp.o linkage

By doing so, I have a ~true~ tftp-over-slirp qemu. I tried it
and yes I can READ & WRITE to a small tftp server I
found for windows host (http://tftpd32.jounin.net).

I still have some problems though. When the read or
write command is sent, it apparently somehow jams
the slirp channel. The read or write happens, but
not immediately (around 2 sec delay). 

The bad news is that so far, I've manage per session
of qemu either one write, or one read. If someone
has the knowledge of what could be wrong in this
part of slirp, please correct the flaws of what I just
found out.

At least, we should be able to transfer back and
forth files lesser than 32M.

-- 
Christian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] interesting tftp experiments
@ 2005-06-28 10:46 CoMiKe
  2005-06-28 11:40 ` Christian MICHON
  2005-06-29 23:43 ` Henrik Nordstrom
  0 siblings, 2 replies; 5+ messages in thread
From: CoMiKe @ 2005-06-28 10:46 UTC (permalink / raw)
  To: qemu-devel

> since I was able on a windows host to connect (but no transfer)
> on a ftp server over slirp, I thought I could do the same:
> over slirp, connect to a true tftp server, not the layer provided
> in slirp/tftp.c

Hi!

I've never got problems connecting to an FTP server placed on my host computer.

Probably your problem is a port problem.
You have to options:

- If connecting on PORT mode in your FTP client, port 20 should be
redirected to your QEmu session through the -redir option.
- If you use passive mode on your FTP client (PASV) you don't need to
redirect any ports to QEmu, because in passive mode, the server is the
one that opens the port for data communication.

I'm using an small FTP server for Windows (SlimFTPd,
http://www.whitsoftdev.com/slimftpd/). It has an Apache like config
file, and total size is 51 Kb. It supports both PORT and PASV mode.

Probably you already knew about all this FTP topics, excuse me in that case.

Best Regards.
CoMiKe

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] interesting tftp experiments
  2005-06-28 10:46 CoMiKe
@ 2005-06-28 11:40 ` Christian MICHON
  2005-06-29 23:43 ` Henrik Nordstrom
  1 sibling, 0 replies; 5+ messages in thread
From: Christian MICHON @ 2005-06-28 11:40 UTC (permalink / raw)
  To: CoMiKe, qemu-devel

> Probably your problem is a port problem.

this was a possibility

> You have to options:
> 
> - If connecting on PORT mode in your FTP client, port 20 should be
> redirected to your QEmu session through the -redir option.

interesting, never heard of it. Makes sense.

> - If you use passive mode on your FTP client (PASV) you don't need to
> redirect any ports to QEmu, because in passive mode, the server is the
> one that opens the port for data communication.

I already tried that, no success.

> 
> I'm using an small FTP server for Windows (SlimFTPd,
> http://www.whitsoftdev.com/slimftpd/). It has an Apache like config
> file, and total size is 51 Kb. It supports both PORT and PASV mode.

we've a winner here! this ftpd for windows host is working fine. I
don't even need to redirect the port. Thanks alot :))))))

Christian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] interesting tftp experiments
  2005-06-28 10:46 CoMiKe
  2005-06-28 11:40 ` Christian MICHON
@ 2005-06-29 23:43 ` Henrik Nordstrom
  1 sibling, 0 replies; 5+ messages in thread
From: Henrik Nordstrom @ 2005-06-29 23:43 UTC (permalink / raw)
  To: CoMiKe, qemu-devel

On Tue, 28 Jun 2005, CoMiKe wrote:

> - If connecting on PORT mode in your FTP client, port 20 should be
> redirected to your QEmu session through the -redir option.

This is supposed to work "automagically". Sounds like the slirp FTP 
"emulation" code has gone missing somehow...

> - If you use passive mode on your FTP client (PASV) you don't need to
> redirect any ports to QEmu, because in passive mode, the server is the
> one that opens the port for data communication.

If you FTP to the virtual host address (10.0.2.3) then the slirp FTP 
"emulation" code still needs to fix up the addresses used..

I haven't used the user-net networking of qemu much as I have my qemu:s 
running with tun/tap networking to the host, but a lot of this worked just 
fine when I used slirp in it's original form some years ago for providing 
dialup access.

Regards
Henrik

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] interesting tftp experiments
  2005-06-27 14:25 [Qemu-devel] interesting tftp experiments Christian MICHON
@ 2005-06-29 23:45 ` Henrik Nordstrom
  0 siblings, 0 replies; 5+ messages in thread
From: Henrik Nordstrom @ 2005-06-29 23:45 UTC (permalink / raw)
  To: Christian MICHON, qemu-devel

On Mon, 27 Jun 2005, Christian MICHON wrote:

> over slirp, connect to a true tftp server, not the layer provided
> in slirp/tftp.c
>
> In order to do so, I had to do minor patches to v0.7.0
> - remove reference to tftp in vl.c
> - remove reference to tftp in slirp/udp.c
> - remove tftp.o linkage

You shouldn't need to do this if you tftp to the hosts real address, only 
if you insists on using the virtual slirp tftp address..

Regards
Henrik

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-30  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-27 14:25 [Qemu-devel] interesting tftp experiments Christian MICHON
2005-06-29 23:45 ` Henrik Nordstrom
  -- strict thread matches above, loose matches on Subject: below --
2005-06-28 10:46 CoMiKe
2005-06-28 11:40 ` Christian MICHON
2005-06-29 23:43 ` Henrik Nordstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.