FreeBSD 12.1 is EoL'd on January 31, 2021
MODIFY
builds.yml
builds.yml
@@ -15,8 +15,6 @@ public:
- 'fedora-33'
- 'freebsd-11.4-i386'
- 'freebsd-11.4'
-- 'freebsd-12.1-i386'
-- 'freebsd-12.1'
- 'freebsd-12.2-i386'
- 'freebsd-12.2'
- 'opensuse-leap-15.2'

DELETE
packer_templates/freebsd/freebsd-12.1-amd64.json
-{
- "builders": [
- {
- "boot_command": [
- "<esc><wait>",
- "boot -s<wait>",
- "<enter><wait>",
- "<wait10><wait10>",
- "/bin/sh<enter><wait>",
- "mdmfs -s 100m md1 /tmp<enter><wait>",
- "mdmfs -s 100m md2 /mnt<enter><wait>",
- "dhclient -p /tmp/dhclient.em0.pid -l /tmp/dhclient.lease.em0 em0<enter><wait>",
- "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `install_path`}} \u0026\u0026 bsdinstall script /tmp/installerconfig<enter><wait>"
- ],
- "boot_wait": "5s",
- "cpus": "{{ user `cpus` }}",
- "disk_size": "{{user `disk_size`}}",
- "guest_additions_mode": "disable",
- "guest_os_type": "FreeBSD_64",
- "headless": "{{ user `headless` }}",
- "http_directory": "{{user `http_directory`}}",
- "iso_checksum": "{{user `iso_checksum`}}",
- "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
- "memory": "{{ user `memory` }}",
- "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-virtualbox",
- "shutdown_command": "echo 'vagrant' | su -m root -c 'shutdown -p now'",
- "ssh_password": "vagrant",
- "ssh_port": 22,
- "ssh_timeout": "10000s",
- "ssh_username": "vagrant",
- "type": "virtualbox-iso",
- "virtualbox_version_file": ".vbox_version",
- "vm_name": "{{ user `template` }}"
- },
- {
- "boot_command": [
- "<esc><wait>",
- "boot -s<wait>",
- "<enter><wait>",
- "<wait10><wait10>",
- "/bin/sh<enter><wait>",
- "mdmfs -s 100m md1 /tmp<enter><wait>",
- "mdmfs -s 100m md2 /mnt<enter><wait>",
- "dhclient -p /tmp/dhclient.em0.pid -l /tmp/dhclient.lease.em0 em0<enter><wait>",
- "<wait5>",
- "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `install_path`}} \u0026\u0026 bsdinstall script /tmp/installerconfig<enter><wait>"
- ],
- "boot_wait": "5s",
- "cpus": "{{ user `cpus` }}",
- "disk_size": "{{user `disk_size`}}",
- "guest_os_type": "freebsd-64",
- "headless": "{{ user `headless` }}",
- "http_directory": "{{user `http_directory`}}",
- "iso_checksum": "{{user `iso_checksum`}}",
- "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
- "memory": "{{ user `memory` }}",
- "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-vmware",
- "shutdown_command": "echo 'vagrant' | su -m root -c 'shutdown -p now'",
- "ssh_password": "vagrant",
- "ssh_port": 22,
- "ssh_timeout": "10000s",
- "ssh_username": "vagrant",
- "type": "vmware-iso",
- "vm_name": "{{ user `template` }}",
- "vmx_data": {
- "cpuid.coresPerSocket": "1"
- },
- "vmx_remove_ethernet_interfaces": true
- },
- {
- "boot_command": [
- "<esc><wait>",
- "boot -s<wait>",
- "<enter><wait>",
- "<wait10><wait10>",
- "/bin/sh<enter><wait>",
- "mdmfs -s 100m md1 /tmp<enter><wait>",
- "mdmfs -s 100m md2 /mnt<enter><wait>",
- "dhclient -p /tmp/dhclient.em0.pid -l /tmp/dhclient.lease.em0 em0<enter><wait>",
- "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `install_path`}} \u0026\u0026 bsdinstall script /tmp/installerconfig<enter><wait>"
- ],
- "boot_wait": "8s",
- "cpus": "{{ user `cpus` }}",
- "disk_size": "{{user `disk_size`}}",
- "guest_os_type": "freebsd",
- "http_directory": "{{user `http_directory`}}",
- "iso_checksum": "{{user `iso_checksum`}}",
- "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
- "memory": "{{ user `memory` }}",
- "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-parallels",
- "parallels_tools_mode": "disable",
- "prlctl": [
- [
- "set",
- "{{.Name}}",
- "--device-set",
- "cdrom0",
- "--iface",
- "ide"
- ],
- [
- "set",
- "{{.Name}}",
- "--device-del",
- "fdd0"
- ],
- [
- "set",
- "{{.Name}}",
- "--device-del",
- "parallel0"
- ]
- ],
- "prlctl_version_file": ".prlctl_version",
- "shutdown_command": "echo 'vagrant' | su -m root -c 'shutdown -p now'",
- "ssh_password": "vagrant",
- "ssh_port": 22,
- "ssh_timeout": "10000s",
- "ssh_username": "vagrant",
- "type": "parallels-iso",
- "vm_name": "{{ user `template` }}"
- },
- {
- "boot_command": [
- "<esc><wait>",
- "boot -s<wait>",
- "<enter><wait>",
- "<wait10><wait10>",
- "/bin/sh<enter><wait>",
- "mdmfs -s 100m md1 /tmp<enter><wait>",
- "mdmfs -s 100m md2 /mnt<enter><wait>",
- "dhclient -p /tmp/dhclient.vtnet0.pid -l /tmp/dhclient.lease.vtnet0 vtnet0<enter><wait>",
- "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `install_path`}} \u0026\u0026 bsdinstall script /tmp/installerconfig<enter><wait>"
- ],
- "boot_wait": "7s",
- "cpus": "{{ user `cpus` }}",
- "disk_size": "{{user `disk_size`}}",
- "headless": "{{ user `headless` }}",
- "http_directory": "{{user `http_directory`}}",
- "iso_checksum": "{{user `iso_checksum`}}",
- "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
- "memory": "{{ user `memory` }}",
- "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-qemu",
- "shutdown_command": "echo 'vagrant' | su -m root -c 'shutdown -p now'",
- "ssh_password": "vagrant",
- "ssh_port": 22,
- "ssh_timeout": "10000s",
- "ssh_username": "vagrant",
- "type": "qemu",
- "vm_name": "{{ user `template` }}"
- }
- ],
- "post-processors": [
- {
- "output": "{{ user `build_directory` }}/{{user `box_basename`}}.{{.Provider}}.box",
- "type": "vagrant",
- "vagrantfile_template": "{{template_dir}}/vagrantfile_templates/freebsd.rb"
- }
- ],
- "provisioners": [
- {
- "environment_vars": [
- "HOME_DIR=/home/vagrant",
- "http_proxy={{user `http_proxy`}}",
- "https_proxy={{user `https_proxy`}}",
- "no_proxy={{user `no_proxy`}}",
- "pkg_branch={{user `pkg_branch`}}"
- ],
- "execute_command": "echo 'vagrant' | {{.Vars}} su -m root -c 'sh -eux {{.Path}}'",
- "expect_disconnect": true,
- "scripts": [
- "{{template_dir}}/scripts/update.sh",
- "{{template_dir}}/scripts/postinstall.sh",
- "{{template_dir}}/scripts/sudoers.sh",
- "{{template_dir}}/../_common/vagrant.sh",
- "{{template_dir}}/scripts/vmtools.sh",
- "{{template_dir}}/scripts/cleanup.sh",
- "{{template_dir}}/scripts/minimize.sh"
- ],
- "type": "shell"
- }
- ],
- "variables": {
- "box_basename": "freebsd-12.1",
- "build_directory": "../../builds",
- "build_timestamp": "{{isotime \"20060102150405\"}}",
- "cpus": "2",
- "disk_size": "65536",
- "git_revision": "__unknown_git_revision__",
- "headless": "",
- "http_directory": "{{template_dir}}/http",
- "http_proxy": "{{env `http_proxy`}}",
- "https_proxy": "{{env `https_proxy`}}",
- "install_path": "freebsd-11/installerconfig",
- "iso_checksum": "aa9d34b458826486999ed3e872436b6712ae38cede5ea41de4ab923e3419d461",
- "iso_name": "FreeBSD-12.1-RELEASE-amd64-disc1.iso",
- "memory": "1024",
- "mirror": "https://download.freebsd.org/ftp",
- "mirror_directory": "releases/amd64/amd64/ISO-IMAGES/12.1",
- "name": "freebsd-12.1",
- "no_proxy": "{{env `no_proxy`}}",
- "pkg_branch": "quarterly",
- "template": "freebsd-12.1-amd64",
- "version": "TIMESTAMP"
- }
-}

DELETE
packer_templates/freebsd/freebsd-12.1-i386.json
-{
- "builders": [
- {
- "boot_command": [
- "<esc><wait>",
- "boot -s<wait>",
- "<enter><wait>",
- "<wait10><wait10>",
- "/bin/sh<enter><wait>",
- "mdmfs -s 100m md1 /tmp<enter><wait>",
- "mdmfs -s 100m md2 /mnt<enter><wait>",
- "dhclient -p /tmp/dhclient.em0.pid -l /tmp/dhclient.lease.em0 em0<enter><wait>",
- "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `install_path`}} \u0026\u0026 bsdinstall script /tmp/installerconfig<enter><wait>"
- ],
- "boot_wait": "5s",
- "cpus": "{{ user `cpus` }}",
- "disk_size": "{{user `disk_size`}}",
- "guest_additions_mode": "disable",
- "guest_os_type": "FreeBSD",
- "headless": "{{ user `headless` }}",
- "http_directory": "{{user `http_directory`}}",
- "iso_checksum": "{{user `iso_checksum`}}",
- "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
- "memory": "{{ user `memory` }}",
- "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-virtualbox",
- "shutdown_command": "echo 'vagrant' | su -m root -c 'shutdown -p now'",
- "ssh_password": "vagrant",
- "ssh_port": 22,
- "ssh_timeout": "10000s",
- "ssh_username": "vagrant",
- "type": "virtualbox-iso",
- "virtualbox_version_file": ".vbox_version",
- "vm_name": "{{ user `template` }}"
- },
- {
- "boot_command": [
- "<esc><wait>",
- "boot -s<wait>",
- "<enter><wait>",
- "<wait10><wait10>",
- "/bin/sh<enter><wait>",
- "mdmfs -s 100m md1 /tmp<enter><wait>",
- "mdmfs -s 100m md2 /mnt<enter><wait>",
- "dhclient -p /tmp/dhclient.em0.pid -l /tmp/dhclient.lease.em0 em0<enter><wait>",
- "<wait5>",
- "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `install_path`}} \u0026\u0026 bsdinstall script /tmp/installerconfig<enter><wait>"
- ],
- "boot_wait": "5s",
- "cpus": "{{ user `cpus` }}",
- "disk_size": "{{user `disk_size`}}",
- "guest_os_type": "freebsd",
- "headless": "{{ user `headless` }}",
- "http_directory": "{{user `http_directory`}}",
- "iso_checksum": "{{user `iso_checksum`}}",
- "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
- "memory": "{{ user `memory` }}",
- "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-vmware",
- "shutdown_command": "echo 'vagrant' | su -m root -c 'shutdown -p now'",
- "ssh_password": "vagrant",
- "ssh_port": 22,
- "ssh_timeout": "10000s",
- "ssh_username": "vagrant",
- "type": "vmware-iso",
- "vm_name": "{{ user `template` }}",
- "vmx_data": {
- "cpuid.coresPerSocket": "1"
- },
- "vmx_remove_ethernet_interfaces": true
- },
- {
- "boot_command": [
- "<esc><wait>",
- "boot -s<wait>",
- "<enter><wait>",
- "<wait10><wait10>",
- "/bin/sh<enter><wait>",
- "mdmfs -s 100m md1 /tmp<enter><wait>",
- "mdmfs -s 100m md2 /mnt<enter><wait>",
- "dhclient -p /tmp/dhclient.em0.pid -l /tmp/dhclient.lease.em0 em0<enter><wait>",
- "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `install_path`}} \u0026\u0026 bsdinstall script /tmp/installerconfig<enter><wait>"
- ],
- "boot_wait": "8s",
- "cpus": "{{ user `cpus` }}",
- "disk_size": "{{user `disk_size`}}",
- "guest_os_type": "freebsd",
- "http_directory": "{{user `http_directory`}}",
- "iso_checksum": "{{user `iso_checksum`}}",
- "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
- "memory": "{{ user `memory` }}",
- "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-parallels",
- "parallels_tools_mode": "disable",
- "prlctl": [
- [
- "set",
- "{{.Name}}",
- "--device-set",
- "cdrom0",
- "--iface",
- "ide"
- ],
- [
- "set",
- "{{.Name}}",
- "--device-del",
- "fdd0"
- ],
- [
- "set",
- "{{.Name}}",
- "--device-del",
- "parallel0"
- ]
- ],
- "prlctl_version_file": ".prlctl_version",
- "shutdown_command": "echo 'vagrant' | su -m root -c 'shutdown -p now'",
- "ssh_password": "vagrant",
- "ssh_port": 22,
- "ssh_timeout": "10000s",
- "ssh_username": "vagrant",
- "type": "parallels-iso",
- "vm_name": "{{ user `template` }}"
- },
- {
- "boot_command": [
- "<esc><wait>",
- "boot -s<wait>",
- "<enter><wait>",
- "<wait10><wait10>",
- "/bin/sh<enter><wait>",
- "mdmfs -s 100m md1 /tmp<enter><wait>",
- "mdmfs -s 100m md2 /mnt<enter><wait>",
- "dhclient -p /tmp/dhclient.vtnet0.pid -l /tmp/dhclient.lease.vtnet0 vtnet0<enter><wait>",
- "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `install_path`}} \u0026\u0026 bsdinstall script /tmp/installerconfig<enter><wait>"
- ],
- "boot_wait": "7s",
- "cpus": "{{ user `cpus` }}",
- "disk_size": "{{user `disk_size`}}",
- "headless": "{{ user `headless` }}",
- "http_directory": "{{user `http_directory`}}",
- "iso_checksum": "{{user `iso_checksum`}}",
- "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
- "memory": "{{ user `memory` }}",
- "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-qemu",
- "shutdown_command": "echo 'vagrant' | su -m root -c 'shutdown -p now'",
- "ssh_password": "vagrant",
- "ssh_port": 22,
- "ssh_timeout": "10000s",
- "ssh_username": "vagrant",
- "type": "qemu",
- "vm_name": "{{ user `template` }}"
- }
- ],
- "post-processors": [
- {
- "output": "{{ user `build_directory` }}/{{user `box_basename`}}.{{.Provider}}.box",
- "type": "vagrant",
- "vagrantfile_template": "{{template_dir}}/vagrantfile_templates/freebsd.rb"
- }
- ],
- "provisioners": [
- {
- "environment_vars": [
- "HOME_DIR=/home/vagrant",
- "http_proxy={{user `http_proxy`}}",
- "https_proxy={{user `https_proxy`}}",
- "no_proxy={{user `no_proxy`}}",
- "pkg_branch={{user `pkg_branch`}}"
- ],
- "execute_command": "echo 'vagrant' | {{.Vars}} su -m root -c 'sh -eux {{.Path}}'",
- "expect_disconnect": true,
- "scripts": [
- "{{template_dir}}/scripts/update.sh",
- "{{template_dir}}/scripts/postinstall.sh",
- "{{template_dir}}/scripts/sudoers.sh",
- "{{template_dir}}/../_common/vagrant.sh",
- "{{template_dir}}/scripts/vmtools.sh",
- "{{template_dir}}/scripts/cleanup.sh",
- "{{template_dir}}/scripts/minimize.sh"
- ],
- "type": "shell"
- }
- ],
- "variables": {
- "box_basename": "freebsd-12.1-i386",
- "build_directory": "../../builds",
- "build_timestamp": "{{isotime \"20060102150405\"}}",
- "cpus": "2",
- "disk_size": "40960",
- "git_revision": "__unknown_git_revision__",
- "headless": "",
- "http_directory": "{{template_dir}}/http",
- "http_proxy": "{{env `http_proxy`}}",
- "https_proxy": "{{env `https_proxy`}}",
- "install_path": "freebsd-11/installerconfig",
- "iso_checksum": "07b10e098e7c9b5e920679d3a9b3d12628f0b918c6e3962620b7f570a82cf41d",
- "iso_name": "FreeBSD-12.1-RELEASE-i386-disc1.iso",
- "memory": "1024",
- "mirror": "https://download.freebsd.org/ftp",
- "mirror_directory": "releases/i386/i386/ISO-IMAGES/12.1",
- "name": "freebsd-12.1-i386",
- "no_proxy": "{{env `no_proxy`}}",
- "pkg_branch": "quarterly",
- "template": "freebsd-12.1-i386",
- "version": "TIMESTAMP"
- }
-}

FreeBSD 12.1 is EoL'd on January 31, 2021

Signed-off-by: Li-Wen Hsu <lwhsu@lwhsu.org>