lib/vagrant-windows-hyperv/monkey_patch/plugins/synced_folders/smb/synced_folders.rb
# FIXME:
# This is a workaround to enable the guest VM to access the SMB share
# set in the host.
This is a workaround to enable the guest VM to access the SMB share
set in the host.
This is a workaround to enable the guest VM to access the SMB share set in the host .
def enable(machine, folders, nfsopts)
        response = machine.provider.driver.get_host_ip
        host_ip = response["host_ip"]
        if machine.config.vm.guest == :windows
          folders.each do |id, data|
            machine.ui.output "#{data[:hostpath]} ==>"
            machine.ui.output "\\\\#{host_ip}\\#{data[:smb_id]}"
          end
        guest_startup_script(machine, folders, host_ip)
        else
          original_enable(machine, folders, nfsopts)
        end
      end
def enable ( machine , folders , nfsopts ) response = machine . provider . driver . get_host_ip host_ip = response [ "host_ip" ] if machine . config . vm . guest == :windows folders . each do | id , data | machine . ui . output "#{data[:hostpath]} ==>" machine . ui . output "\\\\#{host_ip}\\#{data[:smb_id]}" end guest_startup_script ( machine , folders , host_ip ) else original_enable ( machine , folders , nfsopts ) end end
FIXME:
This is a workaround to enable the guest VM to access the SMB share
set in the host.
FIXME : This is a workaround to enable the guest VM to access the SMB share set in the host .
machine
<not_specific>
folders
<not_specific>
nfsopts
<not_specific>