network connection to minix running under qemu

263 views
Skip to first unread message

Alan Post

unread,
Apr 28, 2011, 4:02:37 PM4/28/11
to minix3
I'm running minix 2.0 under qemu (I've also tried it under VMWare).
I understand this is the minix 3.0 mailing list, I'm hoping the
issue I'm having is not specific to minix 2.0.

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

Tomas Hruby

unread,
Apr 28, 2011, 5:32:19 PM4/28/11
to min...@googlegroups.com
Hi,

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.

Alan Post

unread,
Apr 28, 2011, 5:45:54 PM4/28/11
to min...@googlegroups.com

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,

nvangogh

unread,
Apr 28, 2011, 5:51:38 PM4/28/11
to minix3
Just to add, I installed and run minix 3 under qemu and the network
came up automatically - no problems - maybe you should give minix 3 a
try

Antoine LECA

unread,
Apr 29, 2011, 4:05:28 AM4/29/11
to min...@googlegroups.com
Alan Post wrote:
> I try to telnet into the machine:
>
> # from host
> telnet localhost 2323
>
> Telnet makes a connection, but receives no reponse.

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

Alan Post

unread,
Apr 29, 2011, 12:08:27 PM4/29/11
to min...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages