I am able to boot minix in qemu just fine. the ethernet adapter
comes up, and I use ifconfig to give myself the ip address 10.0.2.2.
I run qemu:
# from host
qemu ... -net nic -net user=net=10.0.2.2/255.255.255.0,hostfwd=tcp::2323-:23
I try to telnet into the machine:
# from host
telnet localhost 2323
Telnet makes a connection, but receives no reponse. It seems that
qemu is binding the local port, but packets are not getting all the
way to minix inside qemu. If I shut down qemu while telnet is connected,
the telnet connection immediately closes. If I halt minix instead, the
telnet connection remains open.
Is there something I'm not understanding about connecting to a qemu
virtual machine, or am I seeing a problem specific to minix 2.0?
I really appreciate you help,
-Alan
--
.i ma'a lo bradi ku penmi gi'e du
I think this is a purely qemu question. 10.0.2.2 is the default host
address visible to the guest. If I am not wrong that is also what your
commandline does. You cannot set the same address in minix. Try
10.0.2.15. That is the default the guest would get from dhcp.
T.
Good catch, I did try that in a variety of combinations; all without
success.
I tried retaining the command-line as I provided it above, removing
all but the hostfwd option, and tried the telnet server with
debugging on. It all produced the same result.
To confirm, what is the default gateway, and would that affect me?
I don't believe it should, because my netmask should avoid my using
the default gateway, but I'll check.
Is there existing debug code in the inet server? My next step would
be to see how far along it is getting; I'll likely try minix3 first
to rule out my continuing to misuse qemu.
Thank you,
Sorry for the stupid question, but did you enable in.telnetd?
It is off by default (like all the daemons.)
Try renaming /etc/rc.daemons.dist into /etc/rc.daemons and reboot
Antoine
Good question! I ran telnetd from the command-line:
tcpd -d telnet in.telnetd -d
Hoping it would indicate a partial connection of some sort.