frezbo / lab

RHCE lab setup scripts
4 stars 3 forks source link

A customization command failed: #2

Closed smidhunraj closed 6 years ago

smidhunraj commented 6 years ago

Why am i getting this error when doing vagrant up ["storageattach", :id, "--storagectl", "IDE Controller", "--port", 1, "--device", 0, "--type", "hdd", "--medium", "server.vdi"]

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: ["storageattach", "1c6e2766-4d14-4094-88ed-dfdb4bcf1e20", "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "hdd", "--medium", "server.vdi"]

Stderr: VBoxManage: error: Could not find a controller named 'IDE Controller'

Please fix this customization and try again.

smidhunraj commented 6 years ago

If i am running as root i get the result as shown here

root@midhun-Vostro-15-3568:~/lab/virtualbox# VBoxManage list vms "virtualbox_classroom_1536671628819_80412" {3ff8b351-f8e2-4bf8-850b-77d20d433ec6} "virtualbox_server_1536671937571_90783" {1c6e2766-4d14-4094-88ed-dfdb4bcf1e20} root@midhun-Vostro-15-3568:~/lab/virtualbox# ls -lZd Vagrantfile -rw-r--r-- 1 root root ? 2089 Sep 11 18:23 Vagrantfile

if i run as a user midhun iget a blank list.

Does this help statement provide any clue

smidhunraj commented 6 years ago

If i list

root@midhun-Vostro-15-3568:/home/midhun# cd /root/VirtualBox\ VMs/ root@midhun-Vostro-15-3568:~/VirtualBox VMs# ls virtualbox_classroom_1536671628819_80412 virtualbox_server_1536671937571_90783 root@midhun-Vostro-15-3568:~/VirtualBox VMs#

smidhunraj commented 6 years ago

I was using guest UBUNTU 16.04 on changing IDE CONTROLLER to IDE everything worked fine