check this out:
$ ssh linux-guest
( '>')
/) TC (\ Core is distributed with ABSOLUTELY NO WARRANTY.
(/-_--_-\) www.tinycorelinux.net
tc@box:~$ wget www.akaros.org/files/test.html
Connecting to www.akaros.org (146.148.59.222:80)
test.html 100% |***********************| 24 0:00:00 ETA
tc@box:~$
tc@box:~$ cat test.html
Nanwan says, "Ship it!"
tc@box:~$
that's with akaros port-fowarding host port 23 (which you don't see in
my .ssh/config) to the guest port 22. the guest got its IP, route, and
DNS server from DHCP (synthetic, inside the VMM). the DNS is actually
the host's DNS server.
tc@box:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 1C:B7:2C:EE:52:69
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::1eb7:2cff:feee:5269/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7953 (7.7 KiB) TX bytes:6737 (6.5 KiB)
tc@box:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
tc@box:~$ arp -an
? (10.0.2.2) at 01:02:03:04:05:0a [ether] on eth0
ARP is also done synthetically. the VMM just responds to all ARP
requests with the host's fake ethernet address.
with a flip of a bool, i can give the guest the host's IP address too.
it all gets translated, so it doesn't matter what addresses i give it.
in that case, the host can just use static configs or still use DHCP.
ex:
tc@box:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 1C:B7:2C:EE:52:69
inet addr:10.107.10.100 Bcast:10.107.10.127 Mask:255.255.255.192
inet6 addr: fe80::1eb7:2cff:feee:5269/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:171 errors:0 dropped:0 overruns:0 frame:0
TX packets:115 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18546 (18.1 KiB) TX bytes:14775 (14.4 KiB)
and reaching hosts that appear to be in the broadcast domain works fine:
tc@box:~$ nc 10.107.10.69 8080
hello from tc
hi from other box
i've got a bunch of other issues to sort out (including a race that may
have a lengthy solution and guest-to-host communiciation), but the
basics seem to work so far. oh, and there's a nasty bug with VMCS unload
that i kick every so often. good times! (as always)
if you're curious, check out my net branch. and let me know if you
happen to have any questions about protocol xsums. =P
barret
--
You received this message because you are subscribed to the Google Groups
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.