I don't know if I am on the right forum but here's my issue :
I have installed a guest Debian Sparc64 with QEMU on a MacOS 10.9.5. I try to get ssh access between host and guest, without success.
I want to find a simple solution. From what I have seen, I launch Sparc64 with following options :
qemu-system-sparc64 -hda debian_sparc64.img -m 2048 -net nic -net user,hostfwd=tcp::2222-:22 -nographic
Then, I try to connect to guest from my MacOS host with :
ssh -p 2222 localhost
Unfortunately, the above command doesn't ask a password, it stays locked.
If someone could see what's wrong, this would be fine to let me know.
When QEMU VM is running,
here are the results, on MacOS host, of :
nmap localhost -p 22 Starting Nmap 6.47 ( http://nmap.org ) at 2017-09-16 22:44 CEST Nmap scan report for localhost (127.0.0.1) Host is up (0.000097s latency). PORT STATE SERVICE 22/tcp open ssh
and the results, also on MacOS host, of :
nmap localhost -p 2222 Starting Nmap 6.47 ( http://nmap.org ) at 2017-09-16 22:45 CEST Nmap scan report for localhost (127.0.0.1) Host is up (0.00012s latency). PORT STATE SERVICE 2222/tcp open EtherNet/IP-1
I forgot to say that QEMU image used ( debian 9.0 Sparc64 guest) has not by default "SSH server" running on it, as it is showed with this command under root :
# ps aux | grep ssh root 299 0.0 0.0 7168 1952 ttyS0 S+ 22:51 0:00 grep ssh
I have nethertheless "SSH Client" (I mean the "
ssh" command), but I don't know how to connect to MacOS host from the Debian Sparc64 guest.
The problem is that I can't install others packages than ones provided by Debian-Sparc64 QEMU image because I have not the network on this guest ( i.e I can't use
apt-get install ).
If anyone could see how to circumvent this issue ?
Surely it would be necessary to install networking (port 80) on guest but with a MacOS host, it seems to be difficult, with bridging and virtual interfaces ...
Any help is welcome
@Stefan M's advices, after installing
Squid, I tried to use
guestfwd option by launching this way :
qemu-system-sparc64 -hda debian_sparc64.img -m 2048 -net user,guestfwd=tcp::3128-:3128 -nographic
and I get the following error :
qemu-system-sparc64: -net user,guestfwd=tcp::3128-:3128: could not open guest forwarding device 'guestfwd.tcp.3128' qemu-system-sparc64: -net user,guestfwd=tcp::3128-:3128: Device 'user' could not be initialized
Could you tell me what I have to do (results got with MacOS 10.9.5) ?
I have found a tutorial on this link. Following this page, I did :
First Installed TUN/TAP drivers to bridge the NIC from the VM to my OS X host
launched QEMU with :
qemu-system-sparc64 -hda debian_sparc64.img -m 2048 -net nic -net tap,script=no,downscript=no -nographic
- Once QEMU has booted, I run into other terminal on Host (MacOS 10.9.5) :
ifconfig tap0 192.168.1.21
Indeed, my local network uses 192.168.1.x IP.
/etc/network/interfacesof guest Debian Sparc64, I have set :
iface eth0 inet static
Unfortunately, I can't get SSH access from MacOS host to Guest or from Guest to MacOS host (by doing for example : "
ssh firstname.lastname@example.org" from host), even by launching qemu-system-sparc64 with root.
If someone could see what's wrong.