On 2022-11-04, Frederik Konietzny <[email protected]> wrote: > Hi Stuart, > > thank you for looking at the topic. > > Here is the boot log, and the install.conf. > > In the log, line 19, IPv4 nameservers are used, > but we define in the install.conf line 12 a IPv6 nameserver. > > This IPv6 nameserver is ignored and will not be added to /etc/resolv.conf >
So in install.conf you have this > 5 IPv4 address for vio0 = autoconf and in the autoconf case I don't think I would expect it to ask a question about nameservers if it already has them from DHCP. (And indeed the question about nameservers doesn't show in your log, it just tells you what it's using rather than asking a question, so no surprise it doesn't use the v6 ones). But in the log you have > 11 IPv4 address for vio0? (or 'autoconf' or 'none') [autoconf] none ...ignoring the 'autoconf' from install.conf, but apparently it is possibly fetching a v4 address anyway (otherwise how did it find xx.xx.xx.1 and xx.xx.xx.2...) Seems like maybe in the netboot case it might need to ignore the "bootstrap" IP and nameservers used to fetch install.conf abd just go with the answers to the questions - I don't know if that would cause other issues though. > > ### install log > > 1 (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? > 2 Could not determine auto mode. > 3 Response file location? [http://xxx.xxx.xxx.1/install.conf] > 4 Fetching http://xxx.xxx.xxx.1/install.conf > 5 Performing non-interactive install... > 6 Terminal type? [vt220] vt220 > 7 System hostname? (short form, e.g. 'foo') test-openbsd-autoinst > 8 > 9 Available network interfaces are: vio0 vlan0. > 10 Which network interface do you wish to configure? (or 'done') > [vio0] vio0 > 11 IPv4 address for vio0? (or 'autoconf' or 'none') [autoconf] none > 12 IPv6 address for vio0? (or 'autoconf' or 'none') [none] > yyy.yyy.yyy:2830:1::aa > 13 IPv6 prefix length for vio0? [64] 64 > 14 Available network interfaces are: vio0 vlan0. > 15 Which network interface do you wish to configure? (or 'done') > [done] done > 16 IPv6 default router? yyy.yyy.yyy:2830::1 > 17 add net default: gateway yyy.yyy.yyy:2830::1 > 18 DNS domain name? (e.g. 'example.com') [my.domain] example.com > 19 Using DNS nameservers at xx.xx.xx.1 xx.xx.xx.2 > 20 > 21 Password for root account? <provided> > 22 Public ssh key for root account? [none] none > 23 Start sshd(8) by default? [yes] yes > 24 Do you expect to run the X Window System? [yes] no > 25 Change the default console to com0? [yes] yes > 26 Available speeds are: 9600 19200 38400 57600 115200. > 27 Which speed should com0 use? (or 'done') [115200] 115200 > 28 Setup a user? (enter a lower-case loginname, or 'no') [no] no > 29 Since no user was setup, root logins via sshd(8) might be > useful. > 30 WARNING: root is targeted by password guessing attacks, pubkeys > are safer. > 31 Allow root ssh login? (yes, no, prohibit-password) [no] yes > > > ### resolv.conf > > # cat /etc/resolv.conf > nameserver yy.yy.yy.1 # resolvd: vio0 > nameserver yy.yy.yy.2 # resolvd: vio0 > lookup file bind > > ### install.conf > > 1 # Under CM control, do not edit this file > 2 Choose your keyboard layout = de > 3 System hostname = test-openbsd-autoinst > 4 Which network interface do you wish to configure = vio0 > 5 IPv4 address for vio0 = autoconf > 6 IPv6 address for vio0 = xxxx:xxx:xxx:2830:1::aa > 7 IPv6 prefix length for vio0 = 64 > 8 Which network interface do you wish to configure = done > 9 Default IPv4 route = none > 10 IPv6 default router = xxxx:xxx:xxx:2830::1 > 11 DNS domain name = example.net > 12 DNS nameservers = xxxx:xxx:xxx:2830::10 > 13 Start sshd(8) by default = yes > 14 Do you expect to run the X Window System = no > 15 Setup a user = no > 16 Allow root ssh login = yes > 17 Password for root account = xxxx > 18 Which disk is the root disk = sd0 > 19 Use (W)hole disk MBR, whole disk (G)PT, (O)penBSD area or > (E)dit = W > 20 Use (A)uto layout, (E)dit auto layout, or create (C)ustom > layout = A > 21 URL to autopartitioning template for disklabel = > http://[xxxx:xxx:xxx:2830::70]/autodisklabel > 22 Location of sets = https > 23 Set name(s) = -all bsd bsd.rd comp*.tgz base*.tgz man*.tgz > site*.tgz > 24 HTTP proxy URL = none > 25 HTTP Server = update.example.net > 26 Server directory = OpenBSD/7.2/amd64 > 27 Set name(s) = done > 28 Location of sets = done > 29 What timezone are you in = UTC > 30 Exit to (S)hell, (H)alt or (R)eboot = S > > Thanks, > > Frederik > > >> Betreff: Re: autoinstall behavior on the nameservers has changed in >> OpenBSD 7.2 >> Datum: Thu, 3 Nov 2022 10:45:54 -0000 (UTC) >> Von: Stuart Henderson <[email protected]> >> An: [email protected] >> >> On 2022-11-02, Frederik Konietzny <[email protected]> wrote: >>> Hi, >>> >>> for our OpenBSD PXE/autoinstall environment we are using a IPv4 PXE >>> server and a OpenBSD mirror with IPv6 address. Since OpenBSD 7.2 we have >>> an issue with the nameservers during the autoinstall process. (OpenBSD >>> 6.9, 7.0 and 7.1 work fine) >>> >>> If we start a VM to install OpenBSD 7.2 via PXE it gets an IPv4 address >>> via dhcp, loads the ramdisk bsd.rd and loads the install.conf file >>> successfully. Than it loads the install.conf file, where we define a >>> IPv6 IP, IPv6 Route and IPv6 nameserver server: >>> >>> Choose your keyboard layout = de >>> System hostname = test-openbsd-autoinst >>> Which network interface do you wish to configure = vio0 >>> IPv4 address for vio0 = none >> >> interesting, so you tell it not to use v4 here, but... >> >>> nameserver yy.yy.yy.1 # resolvd: vio0 >>> nameserver yy.yy.yy.2 # resolvd: vio0 >> >> can you show more (ideally all) of the log? >> >> > -- Please keep replies on the mailing list.

