Enable windows guest capabilities using winssh communicator

This commit is contained in:
Chris Roberts 2017-05-04 18:48:35 -07:00
parent 62edaf5623
commit ee79dd0575
3 changed files with 2 additions and 6 deletions

View File

@ -9,10 +9,6 @@ module VagrantPlugins
@@logger = Log4r::Logger.new("vagrant::guest::windows::configure_networks")
def self.configure_networks(machine, networks)
if machine.config.vm.communicator != :winrm
raise Errors::NetworkWinRMRequired
end
@@logger.debug("Networks: #{networks.inspect}")
guest_network = GuestNetwork.new(machine.communicate)

View File

@ -34,7 +34,7 @@ module VagrantPlugins
vm_provider_unc_path: vm_provider_unc_base + name,
})
if machine.config.vm.communicator == :winrm
if machine.config.vm.communicator == :winrm || machine.config.vm.communicator == :winssh
machine.communicate.execute(script, shell: :powershell)
else
# Convert script to double byte unicode string then base64 encode

View File

@ -28,7 +28,7 @@ if( (Test-Path "$MountPoint") -and (Test-ReparsePoint "$MountPoint") )
}
elseif(Test-Path $MountPoint)
{
Write-Debug "Mount point already exists and is not a symbolic link"
Write-Error "Mount point already exists and is not a symbolic link"
exit 1
}