qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sparc-solaris networking not working


From: Michele Denber
Subject: Re: sparc-solaris networking not working
Date: Sat, 20 Jun 2020 14:51:32 -0400
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 06-19-2020 6:08 PM, Peter Maydell wrote:
Ping does not work with user-mode networking; don't try to use
it to see whether networking works or not, because it will
mislead you.
Oh!  That's good to know.  I guess I was misled by this page: https://en.wikibooks.org/wiki/QEMU/SunOS_4.1.4 where it says

"We can even check with the ping command from the guest that the host is alive:

# ping 10.0.2.2
10.0.2.2 is alive"

You can see that the guest has successfully connected
because it's received the 220 response string back,
so networking is basically functional.
Which is why I can't figure out why I'm not getting files to transfer.  Some things work fine.  Like I can telnet from the host to the guest:

$ telnet localhost 4423

But I can't transfer files with telnet.
... PASV to the VM host's
actual IP address on 192.168.x.x (ie not to the 10.0.2.2
magic address that says "give me localhost on the host")
might work.
Unfortunately, that doesn't work either.  It does create the file on the destination but it is zero-length and no data ever gets transferred.  I've tried it with a bunch of different ftp servers, on Solaris 10, Solaris 11, Win 7, Win XP, Raspberry Pi, and Android.

sunss5# ftp
ftp> op 192.168.0.78
Connected to 192.168.0.78.
220 avon FTP server ready.
Name (192.168.0.78:root): denber
331 Password required for denber.
Password:
230 User denber logged in.
ftp> bin
200 Type set to I.
ftp> quote PASV
227 Entering Passive Mode (192,168,0,78,170,250)
ftp> put
(local-file) libsuntool.so.0.54
(remote-file) libsuntool.so.0.54
502 Illegal PORT Command
^C
^Z
Stopped
sunss5#


      
You've had the bad luck to pick two things (ping and ftp)
which are weird and complicated in ways that user-mode
networking can't handle. Try something simpler, like HTTP
or SSH.
Unfortunately, Solaris 1.1 does not have ssh.  It also doesn't have curl, so http is out too.  It does have rcp but that doesn't work either:
sunss5# rcp libsuntool.so.0.54 192.168.0.78:/export/home/denber/libsuntool.so.0.54
192.168.0.78: unknown host
sunss5#

But this rcp, from the Ubuntu host to the SunOS guest almost works:

~$ sudo rcp localhost:/lib/libsuntool.so.0.54 .
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is SHA256:dxNOCRlyR2qzbIqbIyxmFKQ+9UnBTXonCIo2LTByJXc.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
root@localhost's password:
Permission denied, please try again.


Nor does rlogin:
sunss5# rlogin 192.168.0.78
192.168.0.78: unknown host
sunss5# rlogin 10.0.2.2
10.0.2.2: unknown host


Or rsh:
sunss5# rsh -n 192.168.0.78 ls
192.168.0.78: unknown host


I also don't have netcat or wget.  I'm about out of ideas here.  I just want to transfer a few files off the guest.
 (You might also consider bridge-mode networking
if user-mode's deficiencies are deal-breakers for you,
but be aware that it is a lot more complicated to set up.)
Is that the section in https://en.wikibooks.org/wiki/QEMU/SunOS_4.1.4 called "Using a TAP Device"?

            - Michele


reply via email to

[Prev in Thread] Current Thread [Next in Thread]