Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ghost opened this issue May 17, 2021 · 4 comments · Fixed by #64
Closed

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

ghost opened this issue May 17, 2021 · 4 comments · Fixed by #64
Labels
bug 🐛 Something isn't working

Comments

@ghost
Copy link

ghost commented May 17, 2021

Hi all,

I have installed all other softwares in my CentOS8. Then when I tried to use "vagrant up" to deploy the environment, i received the following errors. I have two hard drives and I am not sure if it's related.

Bringing machine 'server2' up with 'virtualbox' provider...
Bringing machine 'repo' up with 'virtualbox' provider...
Bringing machine 'server1' up with 'virtualbox' provider...
==> server2: Clearing any previously set forwarded ports...
==> server2: Clearing any previously set network interfaces...
==> server2: Preparing network interfaces based on configuration...
server2: Adapter 1: nat
server2: Adapter 2: hostonly
server2: Adapter 3: hostonly
server2: Adapter 4: hostonly
==> server2: Forwarding ports...
server2: 22 (guest) => 2222 (host) (adapter 1)
==> server2: Running 'pre-boot' VM customizations...
A customization command failed:

["storagectl", :id, "--name", "SATA Controller", "--add", "sata", "--portcount", 2]

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", "d03f3308-2840-4b76-8dd6-0c7ecd164829", "--name", "SATA Controller", "--add", "sata", "--portcount", "2"]

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 1080 of file VBoxManageStorageController.cpp

Please fix this customization and try again.

@adamdcameron
Copy link

I am getting the exact same error message as above.

@tonymwai
Copy link

Hi all.
I and new to rhcsa8env and recently installed it on an iMac. My first invocation of vagrant up worked just fine and I successfully shut down the environment. Every subsequent invocation of the command give me the same error as indicated above. I have resorted to manually starting the VM's (server 1, 2 and repo) via the VirtualBox GUI.

@rdbreak rdbreak linked a pull request Jan 10, 2022 that will close this issue
@rdbreak rdbreak added pending closer 📥 bug 🐛 Something isn't working labels Jan 10, 2022
@brian926
Copy link

brian926 commented Jan 22, 2022

This may be a hackaround, but change line 19 so vagrant will check if disk-0-1.vdi on server2 already exists before trying to create the SATA Controller,,

server2.customize ['storagectl', :id, '--name', 'SATA Controller', '--add', 'sata', '--portcount', 2]

     unless File.exist?(file_to_disk1)
    	server2.customize ['storagectl', :id, '--name', 'SATA Controller', '--add', 'sata', '--portcount', 2]
      end

@tovoro
Copy link

tovoro commented Feb 17, 2022

Thank you, this seems to work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants