@@ -68,7 +68,7 @@ func (s *stepCreateDisk) Run(ctx context.Context, state multistep.StateBag) mult
6868 // Add the IDE controller so we can later attach the disk.
6969 // When the hard disk controller is not IDE, this device is still used
7070 // by VirtualBox to deliver the guest extensions.
71- err := driver .VBoxManage ("storagectl" , vmName , "--name" , "IDE Controller " , "--add" , "ide" )
71+ err := driver .VBoxManage ("storagectl" , vmName , "--name" , "IDE" , "--add" , "ide" )
7272 if err != nil {
7373 err := fmt .Errorf ("Error creating disk controller: %s" , err )
7474 state .Put ("error" , err )
@@ -80,7 +80,7 @@ func (s *stepCreateDisk) Run(ctx context.Context, state multistep.StateBag) mult
8080 // the IDE controller above because some other things (disks) require
8181 // that.
8282 if config .HardDriveInterface == "sata" || config .ISOInterface == "sata" {
83- if err := driver .CreateSATAController (vmName , "SATA Controller " , config .SATAPortCount ); err != nil {
83+ if err := driver .CreateSATAController (vmName , "SATA" , config .SATAPortCount ); err != nil {
8484 err := fmt .Errorf ("Error creating disk controller: %s" , err )
8585 state .Put ("error" , err )
8686 ui .Error (err .Error ())
@@ -92,7 +92,7 @@ func (s *stepCreateDisk) Run(ctx context.Context, state multistep.StateBag) mult
9292 // the VirtIO controller above because some other things (disks) require
9393 // that.
9494 if config .HardDriveInterface == "virtio" || config .ISOInterface == "virtio" {
95- if err := driver .CreateVirtIOController (vmName , "VirtIO Controller " ); err != nil {
95+ if err := driver .CreateVirtIOController (vmName , "VirtioSCSI " ); err != nil {
9696 err := fmt .Errorf ("Error creating disk controller: %s" , err )
9797 state .Put ("error" , err )
9898 ui .Error (err .Error ())
@@ -101,14 +101,14 @@ func (s *stepCreateDisk) Run(ctx context.Context, state multistep.StateBag) mult
101101 }
102102
103103 if config .HardDriveInterface == "scsi" {
104- if err := driver .CreateSCSIController (vmName , "SCSI Controller " ); err != nil {
104+ if err := driver .CreateSCSIController (vmName , "SCSI" ); err != nil {
105105 err := fmt .Errorf ("Error creating disk controller: %s" , err )
106106 state .Put ("error" , err )
107107 ui .Error (err .Error ())
108108 return multistep .ActionHalt
109109 }
110110 } else if config .HardDriveInterface == "pcie" {
111- if err := driver .CreateNVMeController (vmName , "NVMe Controller " , config .NVMePortCount ); err != nil {
111+ if err := driver .CreateNVMeController (vmName , "NVMe" , config .NVMePortCount ); err != nil {
112112 err := fmt .Errorf ("Error creating NVMe controller: %s" , err )
113113 state .Put ("error" , err )
114114 ui .Error (err .Error ())
@@ -117,15 +117,15 @@ func (s *stepCreateDisk) Run(ctx context.Context, state multistep.StateBag) mult
117117 }
118118
119119 // Attach the disk to the controller
120- controllerName := "IDE Controller "
120+ controllerName := "IDE"
121121 if config .HardDriveInterface == "sata" {
122- controllerName = "SATA Controller "
122+ controllerName = "SATA"
123123 } else if config .HardDriveInterface == "scsi" {
124- controllerName = "SCSI Controller "
124+ controllerName = "SCSI"
125125 } else if config .HardDriveInterface == "virtio" {
126- controllerName = "VirtIO Controller "
126+ controllerName = "VirtioSCSI "
127127 } else if config .HardDriveInterface == "pcie" {
128- controllerName = "NVMe Controller "
128+ controllerName = "NVMe"
129129 }
130130
131131 nonrotational := "off"
0 commit comments