1

I'm searching for an OpenBSD bootable image that I can install on SSD to run pf on. I've found these images for m0n0wall and pfSense but not for OpenBSD alone.

Can somebody link me to an image with instructions on how to install it directly to a SSD?

Thanks in advance.

Zen Master
  • 131
  • 2
  • 6
  • 1
    What does the fact that you're installing on an SSD have to do with this question? – EEAA Jul 05 '11 at 16:40
  • Did you mean install to flash drive rather than install to SSD? – Michael Lowman Jul 05 '11 at 16:50
  • PXEBoot seems like a good way to do it. – Tom O'Connor Jul 05 '11 at 17:16
  • Well there are multiple downloads, and I am not sure which one to grab. I believe that the only way to install to an SSD is by downloading an image file, but not sure which one to install that is bootable, since I do not have a CD Drive, or any other method of installing onto this box. This might be a dumb question, but im a router guy, and not used to working with Server software, or hardware. – Zen Master Jul 05 '11 at 17:18
  • From my limited understanding, I believe that this is a SATADOM 4GB SSD flash drive – Zen Master Jul 05 '11 at 17:24
  • This is what was bought, along with a 4GB Flash SSD to plug in it. http://www.supermicro.com/products/motherboard/ATOM/ICH9/X7SPA.cfm?typ=H&IPMI=Y . I originally planned on using M0n0wall that has an image download designed for installing on SSD Flash, but unfortunately M0n0wall doesn't support my Network Adapter. Now, I am atttempting to install Native OpeBSD, or Native FreeBSD, but clueless on where to start. – Zen Master Jul 05 '11 at 17:36

6 Answers6

2

This web page at bsdgurl.org looks to be offering what you're looking for. You'll need to write the image to a USB drive, boot from USB, then install to your DOM (ssd). Use method 2 if you don't have another BSD box laying around.

cwawak
  • 142
  • 3
2

First go to the download area of openbsd (example : http://ftp.heanet.ie/pub/OpenBSD/4.9/amd64/) you'll need two files :

  • pxeboot
  • bsd.rd (rd stands for ramdisk)

With these two files,you need to setup a pxe boot environment.

Next you need to set up a DHCP server that recognize the MAC address of the card and set the option filename and next-server.

Here is a example for a linux dhcpd :

host soekris {

          hardware ethernet 00:00:AB:CD:EF:1c;
          fixed-address 192.168.0.150;
          filename "pxeboot";
          next-server 192.168.0.98;

}

Where your nextserver is a tftp server serving the files /pxeboot and /bsd.rd

On Windows I use the excellent tftpd32d (http://tftpd32.jounin.net/)

You need to activate only the TFTP option and set the directory to the one containing both of your files and start it.

Now boot your machine with PXE enabled. Make sure your dhcp daemon is serving the right address and the right information (check for DHCPACK in the logs)

The filename option will instructs your machine to load and run the pxeboot which is the first stage (somewhat equivalent to grub). Then, at the prompt, you may wait or just enter bsd.rd. This file will be downloaded from the TFTP server also and will starts the installation procedure.

You may also consult the official documentation at http://ftp.heanet.ie/pub/OpenBSD/4.9/amd64/INSTALL.amd64

and look for the section "Creating a PXE network bootable setup using OpenBSD or other Un*x-like system:"

Bruno Mairlot
  • 421
  • 3
  • 5
2

if your doing this multiple times, pxe booting is easiest.

if its only a couple times, just mount your flash drive on another machine as the root in a virtual machine. for example, if your using qemu/kvm on linux and the flash drive shows up as /dev/sdc

kvm -drive file=/dev/sdc,if=virtio,cache=none -cdrom /path/to/install55.iso -boot d

youll have to do this as root for raw access to /dev/sdc. also, dont worry about virtio. it works fine in openbsd and the install will still work if the drive is ide, sata, scsi or whatever. ive even done it with drives that boot from usb on soekris.

pixel
  • 21
  • 1
1

The Atom processor is supported according to the OpenBSD i386 platform web page. You will have to verify the rest of the devices on the board.

I recommend trying a regular install of OpenBSD for both testing as well as ongoing operation. Avoid the other "image" options out there if you want support from the OpenBSD developers and user community.

Installation to SSD should not be any different from installation to a hard drive. Read the installation guide within the FAQ for detailed instructions. The trick for you is getting the board to boot. Provided the BIOS supports it, you could try booting and installing from an external USB CD-ROM using the install media (Installation Guide section 4.3) you've purchased or downloaded. The cd49.iso file is what you want to download from the i386 directory of any official mirror server.

If an external CD-ROM is absolutely not an option, PXE booting is your best alternative. However, this one takes a little leg work to setup DHCP, TFTP, etc.

Best regards!

0

Most of the ready-baked bootable OpenBSD images that I'm familiar with are (or were) geared towards embedded single board computers such as the Soekris and Alix devices. The primary objective was to pare down the operating system to fit onto smaller flash cards.

These days, now that flash storage devices have gotten larger, most people just install the entire OpenBSD operating system directly onto the flash media.

I can think of two main installation options for your situation:

  1. PXE-boot network install.
  2. Direct install to the flash/SSD drive from another computer.

The least complicated by far is the direct install method.

Here's what I would suggest. Connect the SSD to an internet connected computer. Boot that computer with the OpenBSD installer cd-rom. Install OpenBSD onto the recently connected SSD drive.

After the installation, modify the /etc/fstab file as necessary. You can do this manually at the end of the install before rebooting. Or you can boot to the install disk again and select shell, mount the newly installed filesystem, and modify with the sed command. Usually this means changing all the /dev/wd1x entries to /dev/wd0x for example.

Remove the SSD drive and insert into the destination machine. Try to boot it up. If there are problems booting, it's usually because the /etc/fstab entries are incorrect. Check the dmesg output as the kernel boots to see what the destination machines hard drive devices are detected as. They should be either sd0 or wd0.

Good luck!

Seth
  • 216
  • 2
  • 5
0

PXE boot an OpenBSD kernel is simple; PXE installing OpenBSD is a bit more complex.

You can PXE install the last OpenBSD install55.iso with Serva (I'm related to Serva development) or with some other PXE server following Serva instructions

See here for full details and requirements: http://vercot.com/~serva/an/NonWindowsPXE3.html

When the environment is set you can see here the step-by-step procedure from the PXE client boot until the install is finished.

OpenBSD amd64 install step-by-step considering OpenBSD_55_amd64 as head directory:  
From Serva repository ( IP 192.168.20.1 ) i.e.

(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? I
Choose your keyboard layout ('?' or 'L' for list) [default]     
System hostname? (short form, e.g. 'foo') foo
Available network interfaces are: vic0 vlan0.
Which network interface do you wish to configure? (or 'done') [vic0]    
IPv4 address for vic0? (or 'dhcp' or 'none') [dhcp]
IPv6 address for vic0? (or 'rtsol' or 'none') [none]
Available network interfaces are: vic0 vlan0.
Which network interface do you wish to configure? (or 'done') [done]
Password for root account? (will not echo) ****
Password for root account? (again) ****
Start sshd(8) by default? [yes]
Start ntpd(8) by default? [no]
Do you expect to run the X Window System? [yes]
Do you want the X Window System to be started by xdm(1)? [no]
Change the default console to com0? [no]
Setup a user? (enter a lower-case loginname, or 'no') [no]
What timezone are you in? ('?' for list) [Europe/London]
Available disks are: sd0.
Which disk is the root disk? ('?' for details) [sd0]
Use DUIDs rather than device names in fstab? [yes]
Use (W)hole disk, use the (O)penBSD area, or (E)dit the MBR? [Whole]
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]

Let's install the sets!
Location of sets? (cd disk ftp http or 'done') [http]
HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]
Server? (hostname, list#, 'done' or '?') [mirror.codigo23.net] 192.168.20.1
Server directory? [pub/OpenBSD/5.5/i386] OpenBSD_55_amd64/5.5/amd64
Select sets by entering a setname ... 
                                  ... [done]
Directory does not contain SHA256.sig. Continue without verification? [no] yes
Installing ...
Installing ...
...
Location of sets? (cd disk ftp http or 'done') [done]
CONGRATULATIONS! your OpenBSD install has been successfully completed!
To boot the new system, enter 'reboot' at the command prompt.
Pat
  • 3,519
  • 2
  • 17
  • 17