From b7907760969e98233796bdfde82cf18e27c96596 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Fri, 1 Nov 2019 14:43:59 +0100 Subject: [PATCH] vbox iso: use NVMe Controller when the hard drive interface if pcie --- builder/virtualbox/iso/step_create_disk.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder/virtualbox/iso/step_create_disk.go b/builder/virtualbox/iso/step_create_disk.go index b70a65b93..1a8a80ad6 100644 --- a/builder/virtualbox/iso/step_create_disk.go +++ b/builder/virtualbox/iso/step_create_disk.go @@ -92,6 +92,10 @@ func (s *stepCreateDisk) Run(ctx context.Context, state multistep.StateBag) mult controllerName = "SCSI Controller" } + if config.HardDriveInterface == "pcie" { + controllerName = "NVMe Controller" + } + nonrotational := "off" if config.HardDriveNonrotational { nonrotational = "on"