I'm trying to come up with a Vagrantfile pre-boot customization to do the
following:
- add a cdrom/dvd device to the base box (which doesn't define one)
- mount the virtual box linux guest additions to that device
Here's what I tried to add:
vb.customize "pre-boot", [
"storageattach", :id,
"--storagectl", "IDE Controller",
"--port", "1",
"--device", "0",
"--type", "dvddrive",
"--medium", "none",
]
When I try to 'vagrant up' it blows up immediately, complaining:
A customization command failed:
["storageattach", :id, "--storagectl", "IDE Controller", "--port", "1",
"--device", "0", "--type", "dvddrive", "--medium", "none"]
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", "1c4310b6-d5ef-4e79-bc34-ef6dcdb32b69",
"--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type",
"dvddrive", "--medium", "none"]
Stderr: VBoxManage.exe: error: No storage device attached to device slot 0
on port 1 of controller 'IDE Controller'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001),
component SessionMachine, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "DetachDevice(Bstr(pszCtl).raw(), port,
device)" at line 381 of file VBoxManageStorageController.cpp
>
Please fix this customization and try again.
I'd love to fix it. Any pointers to help decipher what it wants ?
Any help much appreciated....
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.