我有一个windows 10主机,我想为我的流浪箱设置同步文件夹。在我的流浪者档案中,我有:
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/bionic64"
config.vm.synced_folder "./data", "/vagrant_data"
end
当我启动(或重新加载(我的盒子时,我会收到凭据提示:
PS D:Vagrantsfirst> vagrant reload
==> default: Attempting graceful shutdown of VM...
default: Configuring the VM...
default: Setting VM Enhanced session transport type to disabled/default (VMBus)
==> default: Starting the machine...
==> default: Waiting for the machine to report its IP address...
default: Timeout: 120 seconds
default: IP: 172.27.23.149
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 172.27.23.149:22
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Preparing SMB shared folders...
default: You will be asked for the username and password to use for the SMB
default: folders shortly. Please use the proper username/password of your
default: account.
default:
default: Username (user[@domain]):
无论是哪种格式,我试图指定我的微软凭据,它都会被拒绝。我尝试了使用和不使用windows PIN。假设我的Microsoft帐户是username@outlook.com
,密码是mypass
。我的windows计算机上的工作组名称是WORKGROUP
。
我找到了一个解决方案:
- 禁用Windows PIN和
- 作为用户名使用我的";本地";windows用户名(由windows环境变量
%username%
确定,该变量似乎也等于在C:UsersUSERNAME
下命名的文件夹。请注意,这与我的Microsoft帐户用户名相同(和 - 使用我的Microsoft帐户密码作为密码