vagrant error: Stderr: VBoxManage: error: Storage controller named 'SATA Controller' already exists

Author: dbl001Created Jul 10, 2015Updated Aug 24, 2020

The nupic/coreos-vagrant virtual box is getting errors:

David-Laxers-MacBook-Pro:coreos-vagrant davidlaxer$ vagrant box update ==> core-01: Checking for updates to 'coreos-alpha' core-01: Latest installed version: 735.0.0 core-01: Version constraints: >= 308.0.1 core-01: Provider: virtualbox ==> core-01: Updating 'coreos-alpha' with provider 'virtualbox' from version ==> core-01: '735.0.0' to '738.1.0'... ==> core-01: Loading metadata for box 'http://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json' ==> core-01: Adding box 'coreos-alpha' (v738.1.0) for provider: virtualbox core-01: Downloading: http://alpha.release.core-os.net/amd64-usr/738.1.0/coreos_production_vagrant.box core-01: Calculating and comparing box checksum... ==> core-01: Successfully added box 'coreos-alpha' (v738.1.0) for 'virtualbox'! David-Laxers-MacBook-Pro:coreos-vagrant davidlaxer$ vagrant up Bringing machine 'core-01' up with 'virtualbox' provider... ==> core-01: Checking if box 'coreos-alpha' is up to date... ==> core-01: VirtualBox VM is already running. David-Laxers-MacBook-Pro:coreos-vagrant davidlaxer$ vagrant ssh

David-Laxers-MacBook-Pro:coreos-vagrant davidlaxer$ vagrant ssh David-Laxers-MacBook-Pro:coreos-vagrant davidlaxer$ vagrant status Current machine states:

core-01 running (virtualbox)

The VM is running. To stop this VM, you can run vagrant halt to shut it down forcefully, or you can run vagrant suspend to simply suspend the virtual machine. In either case, to restart it again, simply run vagrant up. David-Laxers-MacBook-Pro:coreos-vagrant davidlaxer$ vagrant ssh-config Host core-01 HostName 127.0.0.1 User core Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /Users/davidlaxer/.vagrant.d/insecure_private_key IdentitiesOnly yes LogLevel FATAL

David-Laxers-MacBook-Pro:coreos-vagrant davidlaxer$ vagrant reload ==> core-01: Attempting graceful shutdown of VM... core-01: Guest communication could not be established! This is usually because core-01: SSH is not running, the authentication information was changed, core-01: or some other networking issue. Vagrant will force halt, if core-01: capable. ==> core-01: Forcing shutdown of VM... ==> core-01: Checking if box 'coreos-alpha' is up to date... ==> core-01: Clearing any previously set forwarded ports... ==> core-01: Clearing any previously set network interfaces... ==> core-01: Preparing network interfaces based on configuration... core-01: Adapter 1: nat core-01: Adapter 2: hostonly ==> core-01: Forwarding ports... core-01: 8888 => 8001 (adapter 1) core-01: 22 => 2222 (adapter 1) ==> core-01: Running 'pre-boot' VM customizations... A customization command failed:

["storagectl", :id, "--name", "SATA Controller", "--add", "sata", "--controller", "IntelAHCI"]

The following error was experienced:

<Vagrant::Errors::VBoxManageError: There was an error while executing VBoxManage, a CLI used by Vagrant

for controlling VirtualBox. The command and stderr is shown below.

Command: ["storagectl", "12ca0fa0-9b7c-4808-a176-42214f5f00b8", "--name", "SATA Controller", "--add", "sata", "--controller", "IntelAHCI"]

Stderr: VBoxManage: error: Storage controller named 'SATA Controller' already exists VBoxManage: error: Details: code VBOX_E_OBJECT_IN_USE (0x80bb000c), component SessionMachine, interface IMachine, callee nsISupports VBoxManage: error: Context: "AddStorageController(Bstr(pszCtl).raw(), StorageBus_SATA, ctl.asOutParam())" at line 1044 of file VBoxManageStorageController.cpp

Please fix this customization and try again.