Hi Folks,
I was able to get OpenBSD working on AWS thanks to an awesome script by
ajacoutot@ : https://github.com/ajacoutot/aws-openbsd
Everything seems to be working great, except I've had difficulty getting
IPv6 working properly.
AWS unfortunately uses DHCPv6 rather than slaac for IPv6 address
assignment, thus putting 'inet6 autoconf' in my /etc/hostname.xnf0 file
wasn't enough. I installed dhcpcd from ports, and was able to pull an
address no problem. Weirdly, I'm able to ping6 addresses, but only for
roughly 10 seconds after booting, after that, the connection seems to
die. It seems that I am able to get 8 pings out to google before the
IPv6 connection drops.
ip-172-31-6-xxx$ ping6 google.ca
PING google.ca (2607:f8b0:4020:804::2003): 56 data bytes
64 bytes from 2607:f8b0:4020:804::2003: icmp_seq=0 hlim=51 time=1.349 ms
64 bytes from 2607:f8b0:4020:804::2003: icmp_seq=1 hlim=51 time=1.385 ms
64 bytes from 2607:f8b0:4020:804::2003: icmp_seq=2 hlim=51 time=1.378 ms
64 bytes from 2607:f8b0:4020:804::2003: icmp_seq=3 hlim=51 time=1.365 ms
64 bytes from 2607:f8b0:4020:804::2003: icmp_seq=4 hlim=51 time=1.383 ms
64 bytes from 2607:f8b0:4020:804::2003: icmp_seq=5 hlim=51 time=1.363 ms
64 bytes from 2607:f8b0:4020:804::2003: icmp_seq=6 hlim=51 time=1.379 ms
64 bytes from 2607:f8b0:4020:804::2003: icmp_seq=7 hlim=51 time=1.356 ms
^C
--- google.ca ping statistics ---
20 packets transmitted, 8 packets received, 60.0% packet loss
round-trip min/avg/max/std-dev = 1.349/1.370/1.385/0.012 ms
When I try it again:
ip-172-31-6-xxx$ ping6 google.ca
PING google.ca (2607:f8b0:4020:804::2003): 56 data bytes
^C
--- google.ca ping statistics ---
8 packets transmitted, 0 packets received, 100.0% packet loss
I don't have a huge amount of experience with IPv6 as my local ISP
doesn't support it, but I was able to get a Linux image working with
IPv6 no problem. I have the Linux VM in the same subnet as the OpenBSD
image, and they are able to ping6 and ssh -6 each other all day without
issue, which makes me think there is some sort of routing issue going on.
Any insight or advice would be much appreciated.
Jordan
OpenBSD 6.4 (GENERIC) #7: Thu Feb 28 18:10:07 CET 2019
r...@syspatch-64-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1056964608 (1008MB)
avail mem = 1015824384 (968MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb01f (11 entries)
bios0: vendor Xen version "4.2.amazon" date 08/24/2006
bios0: Xen HVM domU
acpi0 at bios0: rev 2
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP APIC HPET WAET SSDT SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 48 pins, remapped
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz, 2400.38 MHz, 06-3f-02
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,FMA3,CX16,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,RDTSCP,LONG,LAHF,ABM,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
acpihpet0 at acpi0: 62500000 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(@1 halt!)
acpicmos0 at acpi0
"ACPI0007" at acpi0 not configured
pvbus0 at mainbus0: Xen 4.2
xen0 at pvbus0: features 0x705, 32 grant table frames, event channel 3
xbf0 at xen0 backend 0 channel 5: disk
scsibus1 at xbf0: 2 targets
sd0 at scsibus1 targ 0 lun 0: <Xen, phy hda 768, 0000> SCSI3 0/direct fixed
sd0: 8192MB, 512 bytes/sector, 16777216 sectors
xnf0 at xen0 backend 0 channel 6: address 06:21:63:26:e3:9c
"console" at xen0: device/console/0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x01: SMBus
disabled
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
xspd0 at pci0 dev 3 function 0 "XenSource Platform Device" rev 0x01
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (da9e146dc26238d2.a) swap on sd0b dump on sd0b
fd0 at fdc0 drive 0: density unknown
fd1 at fdc0 drive 1: density unknown