Hi Martin,
This morning at DockerCon I mentioned to Amir that I had a problem running the mirage-skeleton DNS app on GCE.
He suggested that I contact you to see if you could suggest something.
I'd really like to fix this for a lightning talk I'll do tomorrow.
The problem I have seems to be related to routing.
I receive the DNS request I send to my deployed instance but the response never reaches my client.
I'm running my instance under us-central1 with the default network,
10.128.0.0/20.
So the mirage configure command I use is:
mirage configure -t virtio --ipv4
10.128.0.0/20 --ipv4-gateway=10.128.0.1
My instance has following internal/external ip:
External IP 146.148.68.114 (ephemeral)
Internal IP 10.128.0.3
See below for serial console output (from a few days ago).
Thanks for any suggestion,
Mike.
Serial console output for mirageos-dns-2017-04-16-20h48m
SeaBIOS (version 1.8.2-20161221_130212-google)
Total RAM Size = 0x0000000040000000 = 1024 MiB
CPUs found: 1 Max CPUs supported: 1
found virtio-scsi at 0:3
virtio-scsi vendor='Google' product='PersistentDisk' rev='1' type=0 removable=0
virtio-scsi blksize=512 sectors=20971520 = 10240 MiB
drive 0x000f3230: PCHS=0/0/0 translation=lba LCHS=1024/255/63 s=20971520
Booting from Hard Disk 0...
SYSLINUX 6.03 Copyright (C) 1994-2014 H. Peter Anvin et al
Loading unikernel.bin... ok
| ___|
__| _ \ | _ \ __ \
\__ \ ( | | ( | ) |
____/\___/ _|\___/____/
Solo5: Memory map: 1023 MB addressable:
Solo5: unused @ (0x0 - 0x100fff)
Solo5: text @ (0x101000 - 0x258fff)
Solo5: rodata @ (0x259000 - 0x2a5fff)
Solo5: data @ (0x2a6000 - 0x389fff)
Solo5: heap >= 0x38a000 < stack < 0x3fffd000
Solo5: Clock source: KVM paravirtualized clock
Solo5: PCI:00:03: unknown virtio device (0x8)
Solo5: PCI:00:04: virtio-net device, base=0xc040, irq=11
Solo5: PCI:00:04: configured, mac=42:01:0a:80:00:03, features=0x204399a7
Solo5: new bindings
STUB: getenv() called
STUB: open() called
STUB: getpid() called
STUB: getppid() called
2017-04-16 18:50:28 -00:00: INF [netif] Plugging into 0 with mac 42:01:0a:80:00:03
2017-04-16 18:50:28 -00:00: INF [ethif] Connected Ethernet interface 42:01:0a:80:00:03
2017-04-16 18:50:28 -00:00: INF [arpv4] Connected arpv4 device on 42:01:0a:80:00:03
2017-04-16 18:50:28 -00:00: INF [udp] UDP interface connected on 10.128.0.0
2017-04-16 18:50:28 -00:00: INF [tcpip-stack-direct] stack assembled: mac=42:01:0a:80:00:03,ip=10.128.0.0
2017-04-16 18:50:28 -00:00: INF [server] Loading 3107 bytes of zone data
Warning (<string> line 47): Converting MD to MX
Warning (<string> line 48): Converting MF to MX
2017-04-16 18:50:28 -00:00: INF [server] DNS server listening on UDP port 53
2017-04-16 18:51:23 -00:00: INF [server] Got DNS query from 82.233.105.45:55449 via UDP: who is ' mail mjbright xxx ' ?
2017-04-16 18:51:23 -00:00: INF [server] Sending reply ' � mail mjbright xxx � � { C� :�
ns2 isp net� :� ns0� � :� ns4�C� :� ns3�C�X � { C) ��' to 82.233.105.45:55449
2017-04-16 18:51:28 -00:00: INF [server] Got DNS query from 82.233.105.45:55449 via UDP: who is ' mail mjbright xxx ' ?
2017-04-16 18:51:28 -00:00: INF [server] Sending reply ' � mail mjbright xxx � � { C� :�
ns2 isp net� :� ns0� � :� ns4�C� :� ns3�C�X � { C) ��' to 82.233.105.45:55449
2017-04-16 18:51:33 -00:00: INF [server] Got DNS query from 82.233.105.45:55449 via UDP: who is ' mail mjbright xxx ' ?
2017-04-16 18:51:33 -00:00: INF [server] Sending reply ' � mail mjbright xxx � � { C� :�
ns2 isp net� :� ns0� � :� ns4�C� :� ns3�C�X � { C) ��' to 82.233.105.45:55449
2017-04-16 18:53:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 18:53:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 18:54:01 -00:00: INF [server] Got DNS query from 82.233.105.45:50969 via UDP: who is '�t mail mjbright xxx ' ?
2017-04-16 18:54:01 -00:00: INF [server] Sending reply '�t� mail mjbright xxx � � { C� :�
ns2 isp net� :� ns0� � :� ns4�C� :� ns3�C�X � { C) ��' to 82.233.105.45:50969
2017-04-16 18:55:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 18:55:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 18:57:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 18:57:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 18:59:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 18:59:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:01:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:01:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:03:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:03:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:05:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:05:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:07:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:07:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:09:13 -00:00: INF [server] Got DNS query from 82.233.105.45:59705 via UDP: who is ' mail mjbright xxx ' ?
2017-04-16 19:09:13 -00:00: INF [server] Sending reply ' � mail mjbright xxx � � { C� :�
ns2 isp net� :� ns0� � :� ns4�C� :� ns3�C�X � { C) ��' to 82.233.105.45:59705
2017-04-16 19:09:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:09:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:11:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:11:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:13:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:13:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:15:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:15:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1
2017-04-16 19:16:32 -00:00: INF [server] Got DNS query from 82.233.105.45:48235 via UDP: who is '�� mail mjbright xxx ' ?
2017-04-16 19:16:32 -00:00: INF [server] Sending reply '��� mail mjbright xxx � � { C� :�
ns2 isp net� :� ns0� � :� ns4�C� :� ns3�C�X � { C) ��' to 82.233.105.45:48235
2017-04-16 19:16:37 -00:00: INF [server] Got DNS query from 82.233.105.45:48235 via UDP: who is '�� mail mjbright xxx ' ?
2017-04-16 19:16:37 -00:00: INF [server] Sending reply '��� mail mjbright xxx � � { C� :�
ns2 isp net� :� ns0� � :� ns4�C� :� ns3�C�X � { C) ��' to 82.233.105.45:48235
2017-04-16 19:16:42 -00:00: INF [server] Got DNS query from 82.233.105.45:48235 via UDP: who is '�� mail mjbright xxx ' ?
2017-04-16 19:16:42 -00:00: INF [server] Sending reply '��� mail mjbright xxx � � { C� :�
ns2 isp net� :� ns0� � :� ns4�C� :� ns3�C�X � { C) ��' to 82.233.105.45:48235
2017-04-16 19:16:54 -00:00: INF [server] Got DNS query from 82.233.105.45:33570 via UDP: who is '� mail mjbright xxx ' ?
2017-04-16 19:16:54 -00:00: INF [server] Sending reply '�� mail mjbright xxx � � { C� :�
ns2 isp net� :� ns0� � :� ns4�C� :� ns3�C�X � { C) ��' to 82.233.105.45:33570
2017-04-16 19:16:59 -00:00: INF [server] Got DNS query from 82.233.105.45:33570 via UDP: who is '� mail mjbright xxx ' ?
2017-04-16 19:16:59 -00:00: INF [server] Sending reply '�� mail mjbright xxx � � { C� :�
ns2 isp net� :� ns0� � :� ns4�C� :� ns3�C�X � { C) ��' to 82.233.105.45:33570
2017-04-16 19:17:28 -00:00: INF [arpv4] ARP: timeout 10.128.0.1