diff --git a/plugins/providers/virtualbox/synced_folder.rb b/plugins/providers/virtualbox/synced_folder.rb index 5ae14e63f..4a3ed916b 100644 --- a/plugins/providers/virtualbox/synced_folder.rb +++ b/plugins/providers/virtualbox/synced_folder.rb @@ -5,9 +5,12 @@ module VagrantPlugins class SyncedFolder < Vagrant.plugin("2", :synced_folder) def usable?(machine, raise_errors=false) # These synced folders only work if the provider if VirtualBox - machine.provider_name == :virtualbox && - machine.provider_config && - machine.provider_config.functional_vboxsf + return false if machine.provider_name != :virtualbox + + # This only happens with `vagrant package --base`. Sigh. + return true if !machine.provider_config + + machine.provider_config.functional_vboxsf end def prepare(machine, folders, _opts)