Hello!
Is there any official way to "sysprep" a FreeBSD host?
As Ubuntu's manpages says:
What I want to do is:
I know that I don't need to worry about license data. But I'm worried about configs, ssh keys, logs, etc.
Example of some important/interesting items (based on Linux) from "virt-sysprep": (from Ubuntu's manpage cited above)
Note: Bold items are very important.
- shell history
- ca-certificates (restore defaults)
- crash-data (dumps)
- cron-spool
- dhcp-client-state (Remove DHCP client leases)
- dhcp-server-state (Remove DHCP server leases)
- firewall-rules
- flag-reconfiguration (For Linux guests, this touches "/.unconfigured", which causes the first boot to interactively query the user for settings such as the root password and timezone)
- fs-uuids Change filesystem UUIDs)
- kerberos-data
- logfiles
- machine-id (Remove the local machine ID)
- mail-spool
- net-hostname (Remove HOSTNAME in network interface configuration)
- net-hwaddr (Remove HWADDR (hard-coded MAC address) configuration)
- ssh-hostkeys
- ssh-userdir
- sssd-db-log
- tmp-files
- udev-persistent-net (Remove udev persistent net rules which map the guest's existing MAC address to a fixed ethernet device (eg. eth0).)
- user-account
- yum-uuid (thats the RHEL package manager - like pkg)
I'm starting to learn FreeBSD, so I don't know some FreeBSD's specific needs, example:
- Do I need the remove any
- Are there other data/uuid to remove (recommended)
I tried to search (FreeBSD's forum/manpages and Google), but without success.
If there isn't a tool/script to do that, do you (the community) recommend to remove other item/data/uuid?
Is there any official way to "sysprep" a FreeBSD host?
As Ubuntu's manpages says:
http://manpages.ubuntu.com/manpages/wily/man1/virt-sysprep.1.html said:"Sysprep" stands for "system preparation" tool. The name comes from
the Microsoft program "sysprep.exe" which is used to unconfigure
Windows machines in preparation for cloning them.
What I want to do is:
- Install FreeBSD (virtual machine)
- Install some ports (using
pkg
and/or compile from ports) - Configure ports
- And finally create a "template" (removing host specific data).
- Share the template with other people (external)
I know that I don't need to worry about license data. But I'm worried about configs, ssh keys, logs, etc.
Example of some important/interesting items (based on Linux) from "virt-sysprep": (from Ubuntu's manpage cited above)
Note: Bold items are very important.
- shell history
- ca-certificates (restore defaults)
- crash-data (dumps)
- cron-spool
- dhcp-client-state (Remove DHCP client leases)
- dhcp-server-state (Remove DHCP server leases)
- firewall-rules
- flag-reconfiguration (For Linux guests, this touches "/.unconfigured", which causes the first boot to interactively query the user for settings such as the root password and timezone)
- fs-uuids Change filesystem UUIDs)
- kerberos-data
- logfiles
- machine-id (Remove the local machine ID)
- mail-spool
- net-hostname (Remove HOSTNAME in network interface configuration)
- net-hwaddr (Remove HWADDR (hard-coded MAC address) configuration)
- ssh-hostkeys
- ssh-userdir
- sssd-db-log
- tmp-files
- udev-persistent-net (Remove udev persistent net rules which map the guest's existing MAC address to a fixed ethernet device (eg. eth0).)
- user-account
- yum-uuid (thats the RHEL package manager - like pkg)
I'm starting to learn FreeBSD, so I don't know some FreeBSD's specific needs, example:
- Do I need the remove any
pkg
's unique data (like RHEL's yum uuid)- Are there other data/uuid to remove (recommended)
I tried to search (FreeBSD's forum/manpages and Google), but without success.
If there isn't a tool/script to do that, do you (the community) recommend to remove other item/data/uuid?