dotless-de/vagrant-vbguest — Issue #5: Platform based ISO detection
Author: dcarley
Created: 2012-01-31 09:28:07+00:00
State: open

I've had endless trouble with ISO detection on new VB 4.1 installs. `VirtualBox::DVD.all.find` only works once the Additions ISO has been attached to a VM and gets added to the "virtual media library". There's no longer a way to add an ISO to the library using `VBoxManage`.

How do you feel about making educated guesses on the ISO path based on the host platform? Say..

@iso_path = if Vagrant::Util::Platform.linux?
"/usr/share/virtualbox/VBoxGuestAdditions.iso"
elsif Vagrant::Util::Platform.darwin?
"/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso"
end