Feature #2572
closedFreeBSD Operating Systems Support
Description
- 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.
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://<www_dir>/
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 :-)
Updated by Romain Vrignaud about 11 years ago
- Related to Feature #3168: Add FreeBSD logo in host list added
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
Updated by Anonymous about 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset acfb10fcb4892d6143c0e927bfdb69f98c52276f.