The first thing I tried was:
Code: Select all
$> VBoxManage guestcontrol vagrant-php1 updateadditions --source /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
VBoxManage: error: Guest additions update failed VBoxManage: error: Detected guest OS (Linux) does not support automatic Guest Additions updating, please update manually VBoxManage: error: Details: code VBOX_E_NOT_SUPPORTED (0x80bb0009), component GuestSession, interface IGuestSession VBoxManage: error: Context: "RTEXITCODE handleCtrlUpdateAdditions(GCTLCMDCTX*)" at line 3343 of file VBoxManageGuestCtrl.cpp VBoxManage: error: Error details: VBoxManage: error: Detected guest OS (Linux) does not support automatic Guest Additions updating, please update manually VBoxManage: error: Details: code VBOX_E_NOT_SUPPORTED (0x80bb0009), component GuestSession, interface IGuestSessionThe next thing I tried was:
Code: Select all
$> VBoxManage storageattach vagrant-php1 --type dvddrive --medium /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso --storagectl IDE --port 0 --device 0
VBoxManage: error: No drive attached to device slot 0 on port 0 of controller 'IDE' VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component SessionMachine, interface IMachine, callee nsISupports VBoxManage: error: Context: "MountMedium(Bstr(pszCtl).raw(), port, device, pMedium2Mount, fForceUnmount)" at line 731 of file VBoxManageStorageController.cppI need to do this via the command line as I want Vagrant to automate this when it brings up a new VM. Is there a way to do this?
Thanks in advance.