Discussion:
[9fans] Networking in VirtualBox (DNS problem?)
(too old to reply)
Rubén Berenguel
2013-08-07 13:39:00 UTC
Permalink
Hi all,

The newest version of VirtualBox (4.2.16) works with Plan9 (at last!)
but I can't figure out how to set up networking (I had no trouble
setting it up with qemu before.) For reference, I'm using VirtualBox
(the version described) in a MacBook. I have tried bridget and NAT for
all adapters, and the only instance I got something working was

NAT,
Intel PRO MT/1000 Desktop

on bootup the card was detected, ip/ipconfig didn't complain with this
setting (it complained with most bridged setups with Airport.) cat
/net/dnb gave me 127.0.0.1 as my IP (hmmm) but Google's DNS servers,
which sounds okay. ndb/dns -r didn't complain either, but ip/ping
google.com did: cs problem, dns problem. I thought it was just that
the network didn't work, but ip/ping 212.106.221.227 (that's
google.com) or ip/ping 88.221.15.26 (that's reddit.com) did work
without any problems. So my best guess is that dns (or cs) are the
culprits. dnsquery does nothing (complains about anything I get to
ask) and the same goes for dnsdebug ("crapped" error messages for all
queries.)

Any setup hint?

Ruben
i***@gmail.com
2013-08-07 13:48:04 UTC
Permalink
Hey Ruben,

from my past times using VirtualBox I found this quote:

“This one: It took me over a day of sweat, blood and tears to get the network running. Actually the PCNet adapters don't seem to work at all. I found just this one Network setting to be good:
Adapter 1: Intel PRO/1000 MT Server (Bridged adapter, eth0)
where the `MT Server' version is absolutely essential, as the MT Desktop version does not work!”

from

http://www.plan9.bell-labs.com/wiki/plan9/installing_plan_9_in_a_virtualbox/index.html

I would recommend using qemu these days, though.

Cheers,

ingo
Rubén Berenguel
2013-08-07 14:43:02 UTC
Permalink
Hi Ingo,

I had perused that thread already (almost all Google results, in
fact.) But your answer made me realise something: I wasn't using qemu
because I could not install a fresh Plan9 in a Qemu image from within
Qemu (I don't remember the problem now.) But now I can boot the qemu
image I have created with VirtualBox and I'm happy with Qemu :)

Now problem is that although the dns server is configured correctly
(dnsquery google.com ip returns a bunch of ips for google) ip/ping
answers with corrupted reply. But abaco browses correctly so... I
won't bother. Thanks!

Ruben
Post by i***@gmail.com
Hey Ruben,
Adapter 1: Intel PRO/1000 MT Server (Bridged adapter, eth0)
where the `MT Server' version is absolutely essential, as the MT Desktop version does not work!”
from
http://www.plan9.bell-labs.com/wiki/plan9/installing_plan_9_in_a_virtualbox/index.html
I would recommend using qemu these days, though.
Cheers,
ingo
---------- Forwarded message ----------
Date: Wed, 7 Aug 2013 15:39:00 +0200
Subject: [9fans] Networking in VirtualBox (DNS problem?)
Hi all,
The newest version of VirtualBox (4.2.16) works with Plan9 (at last!)
but I can't figure out how to set up networking (I had no trouble
setting it up with qemu before.) For reference, I'm using VirtualBox
(the version described) in a MacBook. I have tried bridget and NAT for
all adapters, and the only instance I got something working was
NAT,
Intel PRO MT/1000 Desktop
on bootup the card was detected, ip/ipconfig didn't complain with this
setting (it complained with most bridged setups with Airport.) cat
/net/dnb gave me 127.0.0.1 as my IP (hmmm) but Google's DNS servers,
which sounds okay. ndb/dns -r didn't complain either, but ip/ping
google.com did: cs problem, dns problem. I thought it was just that
the network didn't work, but ip/ping 212.106.221.227 (that's
google.com) or ip/ping 88.221.15.26 (that's reddit.com) did work
without any problems. So my best guess is that dns (or cs) are the
culprits. dnsquery does nothing (complains about anything I get to
ask) and the same goes for dnsdebug ("crapped" error messages for all
queries.)
Any setup hint?
Ruben
Carl Phillips
2013-08-07 15:16:59 UTC
Permalink
Hi Ruben,

If you still want to try and get dns working in VirtualBox:

try editing /rc/bin/termrc so that the ip/ipconfig and ndb/dns -r lines
are always executed - comment out the tests above each of these lines.
Reboot the vm after making these changes.

This works well here on an Arch Linux host with Virtualbox 4.2.16 Plan 9
vm configured for bridged networking, Intel Pro/1000 MT Server and DHCP
from a router on a wired lan.

Carl

Continue reading on narkive:
Search results for '[9fans] Networking in VirtualBox (DNS problem?)' (Questions and Answers)
5
replies
what are the flaws of Linux OS?
started 2008-08-09 23:18:02 UTC
software
Loading...