Project

General

Profile

Actions

Feature #2572

closed

FreeBSD Operating Systems Support

Added by Nils Domrose over 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Support for FreeBSD Operatimg System including:
  • operatingsystem model
  • default unattanded views for memdisk

Requirement: Installer Support for syslinux/memdisk - I will create and link an installer issue

In order to install FreeBSD on a Server, a mfsbsd ramdisk must be placed on a server and the url must be configured inside an Installation Media object using this syntax:

http://<host>/boot/$arch/images/mfsbsd.img

Using a Memdisk default PXELinux Template, Foreman will generate a pxelinux configuration using syslinux memdisk as kernel and the mfsbsd image as initrd.
Additional templates care about the provisioning (using pc-sysinstall) and finish for executing post install actions and setup and run puppet.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #3168: Add FreeBSD logo in host listClosedRomain Vrignaud09/30/2013Actions
Actions #1

Updated by Nils Domrose over 11 years ago

Added Support for FreeBSD installation. In order to install FreeBSD Servers using foreman you need to create a mfsbsd image using https://github.com/mmatuska/mfsbsd

As we require rc.local support in order to start the sysinstall process i submitted a patch to mfsbsd, too https://github.com/mmatuska/mfsbsd/pull/17

You can find a fork here: https://github.com/endyman/mfsbsd/tree/rc-local-support
Simply add a rc.local to /conf/ including the follwing code:

# create install.cfg for the installer
# if your forman server is not named foreman,
# change the name accordinly.

cat << EOF >/tmp/install.cfg
pc_config: https://foreman/unattended/provision
nic_config: dhcp-all
confirm_install: no
EOF

# start the installation process using pc-sysinstall

pc-sysinstall start-autoinstall /tmp/install.cfg
shutdown -r now

In case your foreman server is not called foreman, change it here. Currently there is no elegant way to pass params to BSD so we are using a static host here. I created a foreman CNAME in each domain pointing to the foreman server. After the kernel is booted, mfsbsd will try to fetch the installer provisioning config from https://foreman/unattended/provision

Next you need to build the mfsbsd image - BASE points to you install cdrom:

$ make BASE=/cdrom/usr/freebsd-dist

As a last step you need to copy the image on a webserve follwing this schema:

<www_dir>/boot/x86_64/images/mfsbsd.img

In foreman you simply point your install media to http://&lt;www_dir&gt;/

Actions #2

Updated by Nils Domrose over 11 years ago

created new Pull request with more concise usage of install media:

https://github.com/theforeman/foreman/pull/673

Added Support for FreeBSD installation. In order to install FreeBSD Servers using foreman you need to create a mfsbsd image using https://github.com/mmatuska/mfsbsd

As we require rc.local support in order to start the sysinstall process i submitted a patch to mfsbsd, too https://github.com/mmatuska/mfsbsd/pull/17

You can find a fork here: https://github.com/endyman/mfsbsd/tree/rc-local-support
Simply add a rc.local to /conf/ including the follwing code:

# create install.cfg for the installer
# if your forman server is not named foreman,
# change the name accordinly.

cat << EOF >/tmp/install.cfg
pc_config: https://foreman/unattended/provision
nic_config: dhcp-all
confirm_install: no
EOF

# start the installation process using pc-sysinstall

pc-sysinstall start-autoinstall /tmp/install.cfg
shutdown -r now

In case your foreman server is not called foreman, change it here. Currently there is no elegant way to pass params to BSD so we are using a static host here. I created a foreman CNAME in each domain pointing to the foreman server. After the kernel is booted, mfsbsd will try to fetch the installer provisioning config from https://foreman/unattended/provision

Next you need to build the mfsbsd image - BASE points to you install cdrom:

$ make BASE=/cdrom/usr/freebsd-dist

As a last step you need to copy the image to yout foreman tftpserver using this schema:

boot/FreeBSD-<arch>-<version>-mfs.img

i.e.
boot/FreeBSD-x86_64-9.1-mfs.img

In foreman do not forget to update your install media to point to a FreeBSD mirror near you :-)

Actions #3

Updated by Romain Vrignaud about 11 years ago

Actions #4

Updated by Dominic Cleal about 11 years ago

  • Description updated (diff)
  • Status changed from New to Ready For Testing
  • Assignee set to Nils Domrose
  • Target version set to 1.10.0
  • Translation missing: en.field_release set to 2
Actions #5

Updated by Anonymous about 11 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF