From 3ee6c9a399e8788caa10a8d2814073ff1eea00fe Mon Sep 17 00:00:00 2001 From: "Julian C. Dunn" Date: Sat, 1 Feb 2014 14:54:05 +0100 Subject: [PATCH 1/2] Updated to RELEASE from RC4. --- packer/freebsd-10.0-amd64.json | 8 ++++---- packer/freebsd-10.0-i386.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packer/freebsd-10.0-amd64.json b/packer/freebsd-10.0-amd64.json index 0f5f0aec9..8e115f1c3 100644 --- a/packer/freebsd-10.0-amd64.json +++ b/packer/freebsd-10.0-amd64.json @@ -39,9 +39,9 @@ "disk_size": 10140, "guest_os_type": "FreeBSD_64", "http_directory": "http", - "iso_checksum": "5f231601641cabb518d6d3e6c608400bd2d865fe08c79dc6cdfbc9f48c532b94", + "iso_checksum": "9c377b4a4e63443c0b210080694de26133e6a276eddb07c7e00e1c9aebd84109", "iso_checksum_type": "sha256", - "iso_url": "{{user `mirror`}}/releases/amd64/amd64/ISO-IMAGES/10.0/FreeBSD-10.0-RC4-amd64-disc1.iso", + "iso_url": "{{user `mirror`}}/releases/amd64/amd64/ISO-IMAGES/10.0/FreeBSD-10.0-RELEASE-amd64-disc1.iso", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_port": 22, @@ -78,9 +78,9 @@ "disk_size": 10140, "guest_os_type": "freebsd-64", "http_directory": "http", - "iso_checksum": "5f231601641cabb518d6d3e6c608400bd2d865fe08c79dc6cdfbc9f48c532b94", + "iso_checksum": "9c377b4a4e63443c0b210080694de26133e6a276eddb07c7e00e1c9aebd84109", "iso_checksum_type": "sha256", - "iso_url": "{{user `mirror`}}/releases/amd64/amd64/ISO-IMAGES/10.0/FreeBSD-10.0-RC4-amd64-disc1.iso", + "iso_url": "{{user `mirror`}}/releases/amd64/amd64/ISO-IMAGES/10.0/FreeBSD-10.0-RELEASE-amd64-disc1.iso", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_port": 22, diff --git a/packer/freebsd-10.0-i386.json b/packer/freebsd-10.0-i386.json index 5a182ef6c..084bb22a1 100644 --- a/packer/freebsd-10.0-i386.json +++ b/packer/freebsd-10.0-i386.json @@ -39,9 +39,9 @@ "disk_size": 10140, "guest_os_type": "FreeBSD", "http_directory": "http", - "iso_checksum": "0cfebb47d4930b093790a7b488f6ca503032386f9b0716f88404b9640cdd9423", + "iso_checksum": "2c09643b3f79c703e424c03408882369025cec655c24a6d81ee073081ee75ebc", "iso_checksum_type": "sha256", - "iso_url": "{{user `mirror`}}/releases/i386/i386/ISO-IMAGES/10.0/FreeBSD-10.0-RC4-i386-disc1.iso", + "iso_url": "{{user `mirror`}}/releases/i386/i386/ISO-IMAGES/10.0/FreeBSD-10.0-RELEASE-i386-disc1.iso", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_port": 22, @@ -78,9 +78,9 @@ "disk_size": 10140, "guest_os_type": "freebsd", "http_directory": "http", - "iso_checksum": "0cfebb47d4930b093790a7b488f6ca503032386f9b0716f88404b9640cdd9423", + "iso_checksum": "2c09643b3f79c703e424c03408882369025cec655c24a6d81ee073081ee75ebc", "iso_checksum_type": "sha256", - "iso_url": "{{user `mirror`}}/releases/i386/i386/ISO-IMAGES/10.0/FreeBSD-10.0-RC4-i386-disc1.iso", + "iso_url": "{{user `mirror`}}/releases/i386/i386/ISO-IMAGES/10.0/FreeBSD-10.0-RELEASE-i386-disc1.iso", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_port": 22, From eb3991cd3171701840522a999b9f6b37ed5074df Mon Sep 17 00:00:00 2001 From: "Julian C. Dunn" Date: Sat, 1 Feb 2014 15:00:45 +0100 Subject: [PATCH 2/2] Install all virtio kernel modules --- packer/scripts/freebsd/vmtools.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packer/scripts/freebsd/vmtools.sh b/packer/scripts/freebsd/vmtools.sh index bac55c579..9a2f34e9b 100644 --- a/packer/scripts/freebsd/vmtools.sh +++ b/packer/scripts/freebsd/vmtools.sh @@ -20,6 +20,12 @@ if [ $PACKER_BUILDER_TYPE == 'virtualbox' ]; then echo 'vboxguest_enable="YES"' >> /etc/rc.conf echo 'vboxservice_enable="YES"' >> /etc/rc.conf + echo 'virtio_blk_load="YES"' >> /boot/loader.conf + if [ $freebsd_major -gt 9 ]; then + # Appeared in FreeBSD 10 + echo 'virtio_scsi_load="YES"' >> /boot/loader.conf + fi + echo 'virtio_balloon_load="YES"' >> /boot/loader.conf echo 'if_vtnet_load="YES"' >> /boot/loader.conf echo 'ifconfig_vtnet0_name="em0"' >> /etc/rc.conf