DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st January 2023
Bsaidus Bsaidus is offline
Port Guard
 
Join Date: Jan 2023
Posts: 10
Default Installation of OpenBSD

Hello to all,
Is there any way to do installation of OpenBSD automatically without interruption.
I mean, after booting, some mechanism or script, starts and install OpenBSD without question ( no question for Keybord, if, ... ).
Thank you.
Reply With Quote
  #2   (View Single Post)  
Old 31st January 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Hello, and welcome!

Yes. Please see the autoinstall(8) man page.
Reply With Quote
  #3   (View Single Post)  
Old 1st February 2023
Bsaidus Bsaidus is offline
Port Guard
 
Join Date: Jan 2023
Posts: 10
Default

Quote:
Originally Posted by jggimi View Post
Hello, and welcome!
Yes. Please see the autoinstall(8) man page.
Thank you, but can it do the automation directely after the boot??
ie: I put CDRom then after boot the installation will be done automatically without touching keyboard ??

Thanks.
Reply With Quote
  #4   (View Single Post)  
Old 1st February 2023
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default

Quote:
Originally Posted by Bsaidus View Post
Thank you, but can it do the automation directely after the boot??
jggimi already gave you the answer but apparently you didn't look at it. Right at the top of the autoinstall(8) manpage it says:
Quote:
autoinstall – unattended OpenBSD installation and upgrade
You should read it.
Reply With Quote
  #5   (View Single Post)  
Old 2nd February 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

If booting from any of the Project-supplied media images, such as a CD ROM .iso, there will be an initial keyboard prompt. In order to have a completely automated installation from boot with no keyboard input, either the admin must use a netboot installation method or modify the media image to include an /auto_install.conf file, as discussed in the man page.
Reply With Quote
  #6   (View Single Post)  
Old 3rd February 2023
Bsaidus Bsaidus is offline
Port Guard
 
Join Date: Jan 2023
Posts: 10
Default

Thank you all for advices,
I'll try to do with your recommandations.
The finality, I want to have an openbsdXX.iso with the autoinstall script ( no netboot, no httpserver) only the iso.
Reply With Quote
  #7   (View Single Post)  
Old 3rd February 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

You have stated three requirements:
  1. No network connectivity.
  2. No keyboard use.
  3. Booting optical media only.
I think you will have a very difficult time meeting all three requirements.
  • The autoinstall(8) facility can be used without a network, but to do so requires a keyboard to indicate the local path to the script.
  • Adding files to the .iso image will not suffice. The .iso image CD9960 filesystem is not mounted at boot and is not available as a local path for autoinstall(8).
You will need to add your autoinstall(8) provisioning files to the RAMDISK kernel's built-in RAM disk, rebuild that kernel environment, and then rebuild the .iso image. Even then, I believe you will still need a keyboard to direct the install process to your script.

Good luck!
Reply With Quote
  #8   (View Single Post)  
Old 3rd February 2023
Bsaidus Bsaidus is offline
Port Guard
 
Join Date: Jan 2023
Posts: 10
Unhappy

Quote:
Originally Posted by jggimi View Post
You have stated three requirements:
  1. No network connectivity.
  2. No keyboard use.
  3. Booting optical media only.
I think you will have a very difficult time meeting all three requirements.
  • The autoinstall(8) facility can be used without a network, but to do so requires a keyboard to indicate the local path to the script.
  • Adding files to the .iso image will not suffice. The .iso image CD9960 filesystem is not mounted at boot and is not available as a local path for autoinstall(8).
You will need to add your autoinstall(8) provisioning files to the RAMDISK kernel's built-in RAM disk, rebuild that kernel environment, and then rebuild the .iso image. Even then, I believe you will still need a keyboard to direct the install process to your script.

Good luck!

Waw! I'll try and let you know
Thank you.
Reply With Quote
  #9   (View Single Post)  
Old 3rd February 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

You will need to read man pages. Along with autoinstall(8), you'll need to read vnd(4), vnconfig(8), mount(8) and umount(8), release(8), and mkhybrid(8). Likely more man pages will be needed, but these are the ones that come to mind first.

You will also need to experiment repeatedly with kernel and release building, because you will need to make customized provisioning entries in /usr/src/distrib/$(machine)/* in order to modify what's included in the RAMDISK kernel's RAM disk filesystem.

As I noted above, you will also need some good luck, too.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation on OpenBSD area Zielonykid123 OpenBSD Installation and Upgrading 5 26th November 2021 05:23 AM
New OpenBSD installation on HDD with Windows cableguy OpenBSD Installation and Upgrading 8 3rd April 2014 10:57 PM
OpenBSD installation goes perfectly passthejoe OpenBSD Installation and Upgrading 4 16th November 2012 02:40 AM
gnome installation on openbsd 5.1 barti OpenBSD Packages and Ports 6 20th July 2012 08:42 PM
Some questions about installation of OpenBSD aleunix OpenBSD Installation and Upgrading 20 15th June 2008 11:57 AM


All times are GMT. The time now is 01:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick