From 9ad2aa3bf25d482375b2ae5e81970ea1f87f235f Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Fri, 4 Mar 2022 16:58:12 -0300 Subject: [PATCH] Temporary workaround until next version of VB is out --- packer.pkr.hcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packer.pkr.hcl b/packer.pkr.hcl index 3917c36..bc4ef0f 100644 --- a/packer.pkr.hcl +++ b/packer.pkr.hcl @@ -17,7 +17,7 @@ source "qemu" "freebsd" { } source "virtualbox-iso" "freebsd" { - boot_command = ["", "boot -s", "", "/bin/sh", "mdmfs -s 100m md /tmp", "dhclient -l /tmp/dhclient.lease.vtnet0 vtnet0", "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/installerconfig", "FILESYSTEM=${var.filesystem}", "export FILESYSTEM", "ZFS_COMPRESSION=${var.zfs_compression}", "export ZFS_COMPRESSION", "RC_CONF_FILE=${var.rc_conf_file}", "export RC_CONF_FILE", "bsdinstall script /tmp/installerconfig"] + boot_command = ["FS1:", "EFI\\BOOT\\BOOTx64.efi", "", "boot -s", "", "/bin/sh", "mdmfs -s 100m md /tmp", "dhclient -l /tmp/dhclient.lease.vtnet0 vtnet0", "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/installerconfig", "FILESYSTEM=${var.filesystem}", "export FILESYSTEM", "RC_CONF_FILE=${var.rc_conf_file}", "export RC_CONF_FILE", "bsdinstall script /tmp/installerconfig"] boot_wait = "10s" cpus = "${var.cpus}" chipset = "ich9" @@ -42,7 +42,7 @@ source "virtualbox-iso" "freebsd" { ssh_port = 22 ssh_timeout = "1000s" ssh_username = "root" - vboxmanage = [["modifyvm", "{{ .Name }}", "--mouse", "usbmultitouch", "--pae", "off"], ["storagectl", "{{ .Name }}", "--name", "IDE Controller", "--remove"]] + vboxmanage = [["modifyvm", "{{ .Name }}", "--mouse", "usbmultitouch", "--pae", "off"], ["storageattach", "{{ .Name }}", "--storagectl", "VirtIO Controller", "--port", "1", "--type", "hdd"], ["storagectl", "{{ .Name }}", "--name", "IDE Controller", "--remove"]] virtualbox_version_file = ".vbox_version" vm_name = "box" }