OpenBSD Journal

Call For Testing Of OpenBSD Automatic Installation

Contributed by tbert on from the unattended-consequences dept.

As we mentioned previously the OpenBSD developers have been working on adding support for unattended, automatic installation and configuration of the operating system. The new support is still a work in progress and the developers need help from the community to test the new features and report their findings.

If you'd like to help out with the testing, you'll need to be following -current by running snapshots. Information on PXE booting can be found at the "FAQ 6.10 - How do I boot using PXE?" entry as well as the pxeboot(8/i386) and pxeboot(8/amd64) manuals. For instructions, read the "Preparing an unattended installation of OpenBSD" section of the "INSTALL.${arch}" file (e.g. "INSTALL.amd64") found in the same directory as the installation sets. Even if everything works perfectly for you, it's still helpful to report your test results on the tech@ OpenBSD mail lists.

Check below the fold for what a successful install looks like.

>> OpenBSD/amd64 PXEBOOT 3.22
com0: changing speed to 115200 baud in 5 seconds, change your terminal to match!

com0: 115200 baud
loadrandom: tftp:/etc/random.seed
cannot open tftp:/etc/random.seed
loadrandom: error -1
booting tftp:/bsd: 4168740+961652+2905792+0+520528 [100+338448+219658]=0xcb2918
entry point at 0x10001e0 [7205c766, 34000004, 24448b12, c588a304]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2014 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.4-current (RAMDISK_CD) #6: Thu Jan  9 01:18:28 CET 2014
    root@t430s.my.domain:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 116465664 (111MB)
avail mem = 108597248 (103MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf1640 (10 entries)
bios0: vendor Bochs version "Bochs" date 01/01/2011
bios0: Bochs Bochs
acpi0 at bios0: rev 0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HPET
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
acpiprt0 at acpi0: bus 0 (PCI0)
mpbios at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: QEMU Virtual CPU version 1.7.0, 3183.88 MHz
cpu0: FPU,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,POPCNT,NXE,LONG,LAHF,SVM,ABM,SSE4A
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
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
"Intel 82371SB ISA" rev 0x00 at pci0 dev 1 function 0 not configured
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 2048MB, 4194304 sectors
wd1 at pciide0 channel 0 drive 1: 
wd1: 16-sector PIO, LBA48, 2048MB, 4194304 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
wd1(pciide0:0:1): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
"Intel 82371AB Power" rev 0x03 at pci0 dev 1 function 3 not configured
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 "Intel 82540EM" rev 0x03: irq 11, address 52:54:00:12:34:56
em1 at pci0 dev 4 function 0 "Intel 82540EM" rev 0x03: irq 11, address 52:54:00:12:34:57
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
softraid0 at root
scsibus1 at softraid0: 256 targets
PXE boot MAC address 52:54:00:12:34:56, interface em0
root on rd0a swap on rd0b dump on rd0b
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/amd64 5.4 installation program.
Starting non-interactive mode in 5 seconds...
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? 
Here is where the (A)utoinstall starts off after the 5 second timeout:
DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 3 DHCPOFFER from 10.0.2.2 (52:55:0a:00:02:02) DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 10.0.2.2 (52:55:0a:00:02:02) bound to 10.0.2.15 -- renewal in 43200 seconds. Trying 10.0.2.2... Requesting http://10.0.2.2/52:54:00:12:34:56-install.conf ftp: Error retrieving file: 404 Not Found Trying 10.0.2.2... Requesting http://10.0.2.2/install.conf 1749 bytes received in 0.00 seconds (4.57 MB/s) Performing non-interactive install...Terminal type? [vt220] vt220 System hostname? (short form, e.g. 'foo') test1 Available network interfaces are: em0 em1 vlan0. Which network interface do you wish to configure? (or 'done') [em0] em0 IPv4 address for em0? (or 'dhcp' or 'none') [dhcp] dhcp Issuing hostname-associated DHCP request for em0. DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 10.0.2.2 (52:55:0a:00:02:02) bound to 10.0.2.15 -- renewal in 43200 seconds. IPv6 address for em0? (or 'rtsol' or 'none') [none] none Available network interfaces are: em0 em1 vlan0. Which network interface do you wish to configure? (or 'done') [done] done Using DNS domainname my.domain Using DNS nameservers at 10.0.2.3 Password for root account? Public ssh key for root account? [none] none Start sshd(8) by default? [yes] yes Start ntpd(8) by default? [no] no Do you expect to run the X Window System? [yes] yes Do you want the X Window System to be started by xdm(1)? [no] no Change the default console to com0? [no] yes Available speeds are: 9600 19200 38400 57600 115200. Which speed should com0 use? (or 'done') [115200] 115200 Setup a user? (enter a lower-case loginname, or 'no') [no] no What timezone are you in? ('?' for list) [Europe/Vienna] Europe/Vienna Available disks are: wd0 wd1. Which disk is the root disk? ('?' for details) [wd0] wd0 Use DUIDs rather than device names in fstab? [yes] yes Disk: wd0 geometry: 520/128/63 [4194304 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------------- 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused *3: A6 0 1 2 - 519 127 63 [ 64: 4193216 ] OpenBSD Use (W)hole disk, use the (O)penBSD area, or (E)dit the MBR? [OpenBSD] OpenBSD The auto-allocated layout for wd0 is: # size offset fstype [fsize bsize cpg] a: 800.6M 64 4.2BSD 2048 16384 1 # / b: 81.1M 1639616 swap c: 2048.0M 0 unused d: 908.9M 1805824 4.2BSD 2048 16384 1 # /usr e: 256.8M 3667232 4.2BSD 2048 16384 1 # /home Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] a /dev/rwd0a: 800.6MB in 1639552 sectors of 512 bytes 4 cylinder groups of 200.14MB, 12809 blocks, 25728 inodes each newfs: reduced number of fragments per cylinder group from 32872 to 32736 to enlarge last cylinder group /dev/rwd0e: 256.8MB in 525984 sectors of 512 bytes 5 cylinder groups of 63.94MB, 4092 blocks, 8192 inodes each /dev/rwd0d: 908.9MB in 1861408 sectors of 512 bytes 5 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each Available disks are: wd1. Which disk do you wish to initialize? (or 'done') [done] done /dev/wd0a (c95f7901f279d69d.a) on /mnt type ffs (rw, asynchronous, local) /dev/wd0e (c95f7901f279d69d.e) on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid) /dev/wd0d (c95f7901f279d69d.d) on /mnt/usr type ffs (rw, asynchronous, local, nodev) Let's install the sets! Location of sets? (cd disk ftp http or 'done') [http] http HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] none Server? (hostname, list#, 'done' or '?') [10.0.2.2] ftp5.eu.openbsd.org Server directory? [ftp/pub/OpenBSD/snapshots/amd64] ftp/pub/OpenBSD/snapshots/amd64 Select sets by entering a set name, a file name pattern or 'all'. De-select sets by prepending a '-' to the set name, file name pattern or 'all'. Selected sets are labelled '[X]'. [X] bsd [X] etc54.tgz [X] xbase54.tgz [X] xserv54.tgz [X] bsd.rd [X] comp54.tgz [X] xetc54.tgz [ ] bsd.mp [X] man54.tgz [X] xshare54.tgz [X] base54.tgz [X] game54.tgz [X] xfont54.tgz Set name(s)? (or 'abort' or 'done') [done] done bsd 100% |*************************************| 10995 KB 00:02 bsd.rd 100% |*************************************| 8397 KB 00:02 base54.tgz 100% |*************************************| 62511 KB 00:33 etc54.tgz 100% |*************************************| 513 KB 00:00 comp54.tgz 100% |*************************************| 53855 KB 00:37 man54.tgz 100% |*************************************| 9822 KB 00:06 game54.tgz 100% |*************************************| 2717 KB 00:01 xbase54.tgz 100% |*************************************| 13671 KB 00:06 xetc54.tgz 100% |*************************************| 64874 00:00 xshare54.tgz 100% |*************************************| 4297 KB 00:04 xfont54.tgz 100% |*************************************| 38994 KB 00:18 xserv54.tgz 100% |*************************************| 23879 KB 00:11 Saving configuration files...Making all device nodes...done. CONGRATULATIONS! Your OpenBSD install has been successfully completed! To boot the new system, enter 'reboot' at the command prompt. When you login to your new system the first time, please read your mail using the 'mail' command. syncing disks... done rebooting...

This installation log courtesy Robert Peichaer (rpe@); many thanks!

As always new features require community testing and feedback, so please make sure that any problems with this get reported.

(Comments are closed)


  1. By Wesley MOUEDINE ASSABY () wesley@mouedine.net on http://www.mouedine.net

    It will be also famous to be able to point to an answer file With/without pxe server.

    1. By rpe () on

      > It will be also famous to be able to point to an answer file With/without pxe server.

      - unattended installation/upgrade only works if a system is netbooted
      - the answer file is the same, no matter how a system is netbooted
      - there's an example answer file fragment in autoinstall(8)


  2. By Anonymous Coward () on

    The install log appears to be 'attended'. No console output from an unattended install? Wouldn't that be appropriate?

    1. By rpe () on

      > The install log appears to be 'attended'. No console output from an unattended install? Wouldn't that be appropriate?

      Don't know how you come to that conclusion?!
      The actual console output looks identical.

  3. By Eric Radman () ericshane@eradman.com on http://eradman.com

    Reading autoinstall(8)...is it possible to supply a custom disklabel? The ability to run post-install script would useful as well.

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]