updating guest additions on headless box

Discussions about using Linux guests in VirtualBox.
Post Reply
strycat
Posts: 7
Joined: 6. Feb 2013, 18:32

updating guest additions on headless box

Post by strycat »

I'm trying to follow the instructions given in viewtopic.php?f=7&t=18012

The first thing I tried was:

Code: Select all

$> VBoxManage guestcontrol vagrant-php1 updateadditions --source /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
which failed with the following error:
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 IGuestSession
The 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
which also failed with this error:
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.cpp
I 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: updating guest additions on headless box

Post by Perryg »

Sorry but we don't support vagrant. They change too many things and use special scripts that are unknown to us making it too time consuming to diagnose.

vagrant support
Post Reply