diff --git a/packer/main.pkr.hcl b/packer/main.pkr.hcl index 1d7b6b89..5bb4c1a9 100644 --- a/packer/main.pkr.hcl +++ b/packer/main.pkr.hcl @@ -20,11 +20,12 @@ source "virtualbox-iso" "base-build" { gfx_controller = "vmsvga" gfx_accelerate_3d = true hard_drive_discard = true - hard_drive_interface = "sata" + hard_drive_interface = "virtio" hard_drive_nonrotational = true headless = "${var.headless}" http_directory = "http" - iso_interface = "sata" + iso_interface = "virtio" + nic_type = "virtio" rtc_time_base = "UTC" sata_port_count = 2 sound = "${var.audio}" @@ -62,11 +63,11 @@ source "virtualbox-iso" "base-build" { ["modifyvm", "{{ .Name }}", "--pae", "on"], ["modifyvm", "{{ .Name }}", "--vrde", "off"], ["storagectl", "{{ .Name }}", "--name", "IDE Controller", "--remove"], - ["storagectl", "{{ .Name }}", "--name", "SATA Controller", "--hostiocache", "on"] + ["storagectl", "{{ .Name }}", "--name", "VirtIO Controller", "--hostiocache", "on"] ] vboxmanage_post = [ ["modifyvm", "{{.Name}}", "--nat-localhostreachable1", "off"], - ["storageattach", "{{ .Name }}", "--storagectl", "SATA Controller", "--port", "1", "--type", "dvddrive", "--medium", "emptydrive"] + ["storageattach", "{{ .Name }}", "--storagectl", "VirtIO Controller", "--port", "1", "--type", "dvddrive", "--medium", "emptydrive"] ] }