Hello, I am encountering a network related issue in a KVM VPS that I am using for OpenBSD. The way it appears to me is that /etc/netstart fails to get a network connection using dhcp on its first attempt, but works on the second attempt.
While the system is booting, I see the following: > em0: no link......... sleeping However, executing 'sh /etc/netstart' once the system is booted works: > em0: 123.123.123.123 lease accepted from [...] The same happened during first installation of OpenBSD, I just told it to use dhcp, it fails the first time, but works if I just do the same thing for the same interface again. Attached is the full output of dmesg, I attached it as a plain text file due to the line breaks hindering readability in email. I would appreciate any pointers as to what is happening and how I could fix it or work around it. Thanks a lot in advance!
OpenBSD 6.7 (GENERIC.MP) #182: Thu May 7 11:11:58 MDT 2020 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4278165504 (4079MB) avail mem = 4135882752 (3944MB) mpath0 at rootscsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf61e0 (13 entries) bios0: vendor Seabios version "0.5.1" date 01/01/2011 bios0: Red Hat KVM acpi0 at bios0: ACPI 1.0 acpi0: sleep states S5 acpi0: tables DSDT FACP SSDT APIC acpi0: wakeup devices acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz, 180.94 MHz, 06-4f-01 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SS,SSE3,PCLMUL,SSSE3,FMA3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,FSGSBASE,TSC_ADJUST,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,XSAVEOPT,MELTDOWN cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped cpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 999MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz, 362.41 MHz, 06-4f-01 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SS,SSE3,PCLMUL,SSSE3,FMA3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,FSGSBASE,TSC_ADJUST,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,XSAVEOPT,MELTDOWN cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu1: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped cpu1: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped cpu1: smt 0, core 0, package 1 ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 11, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpicpu0 at acpi0: C1(@1 halt!) acpicpu1 at acpi0: C1(@1 halt!) "ACPI0006" at acpi0 not configured acpipci0 at acpi0 PCI0: _OSC failed acpicmos0 at acpi0 "QEMU0002" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured cpu0: using VERW MDS workaround pvbus0 at mainbus0: KVM pvclock0 at pvbus0 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 atapiscsi0 at pciide0 channel 0 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 1.5.> removable cd0(pciide0:0:0): using PIO mode 4, DMA mode 2 pciide0: channel 1 disabled (no drives) uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: apic 0 int 11 piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: apic 0 int 9 iic0 at piixpm0 iic0: addr 0x18 00=a2 01=32 02=32 03=32 04=32 05=32 06=32 07=32 08=32 09=43 0a=08 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x19 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x1a 00=a2 01=32 02=32 03=32 04=32 05=32 06=32 07=32 08=32 09=43 0a=08 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x1b 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x1c 0f=06 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x1d 0f=06 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x1e 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x1f 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x20 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x21 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x22 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x23 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x24 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x25 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x26 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x27 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x28 3e=a2 48=a2 4a=a2 4e=a2 4f=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x29 00=a2 01=32 02=32 03=32 04=32 05=32 06=32 07=32 08=32 09=43 0a=08 3e=a2 48=a2 4a=a2 4e=a2 4f=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x2a 3e=a2 48=a2 4a=a2 4e=a2 4f=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x2b 00=a2 01=32 02=32 03=32 04=32 05=32 06=32 07=32 08=32 09=43 0a=08 3e=a2 48=a2 4a=a2 4e=a2 4f=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x2c 00=a2 0e=a2 16=a2 3e=a2 48=a2 4a=a2 4e=a2 4f=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x2d 00=a2 04=a2 0e=a2 16=a2 3e=a2 48=a2 4a=a2 4e=a2 4f=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x2e 00=a2 04=a2 0e=a2 16=a2 3e=a2 48=a2 4a=a2 4e=a2 4f=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x2f 00=a2 0e=a2 3e=a2 48=a2 4a=a2 4e=a2 4f=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x48 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x49 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x4a 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x4b 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x4c 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x4d 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff iic0: addr 0x4e 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00 3e=a2 48=a2 4a=a2 4e=a2 fc=a2 fe=a2 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff 06=ffff 07=ffff 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) em0 at pci0 dev 3 function 0 "Intel 82540EM" rev 0x03: apic 0 int 11, address 00:20:1f:64:cc:a6 auich0 at pci0 dev 4 function 0 "Intel 82801AA AC97" rev 0x01: apic 0 int 11, ICH ac97: codec id 0x83847600 (SigmaTel STAC9700) audio0 at auich0 virtio0 at pci0 dev 5 function 0 "Qumranet Virtio Storage" rev 0x00 vioblk0 at virtio0 scsibus2 at vioblk0: 2 targets sd0 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, > sd0: 102400MB, 512 bytes/sector, 209715200 sectors virtio0: msix shared virtio1 at pci0 dev 6 function 0 "Qumranet Virtio Memory Balloon" rev 0x00 viomb0 at virtio1 virtio1: apic 0 int 10 isa0 at pcib0 isadma0 at isa0 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 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 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 uhidev0 at uhub0 port 1 configuration 1 interface 0 "QEMU QEMU USB Tablet" rev 2.00/0.00 addr 2 uhidev0: iclass 3/0 ums0 at uhidev0: 3 buttons, Z dir wsmouse1 at ums0 mux 0 vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets root on sd0a (9a0cb63b1666a490.a) swap on sd0b dump on sd0b fd0 at fdc0 drive 1: density unknown