我试图在Windows 10上设置Vagrant。
我有Vagrant 2.0.1,Virtual Box 5.2.4和Guest Additions 5.2.4。
我遇到了问题,而Virtual Box和Guest Additions的版本并不相同,但是现在我已经互相买了它们,我仍然会收到错误。
我也是以管理员身份运行Git Bash。这是git bash的输出。
vagrantfile是通过Puphpet生成的,我在puphpet设置中并没有真正改变。我为共享文件夹添加了SMB,因为它推荐了这个。我没有提供用户名或密码,并且在vagrant up
期间提示两者时,我只是将它们留空。
我已经看过并阅读过有关SO的其他文章,并且没有任何运气。
$ vagrant up Bringing machine 'machine1' up with 'virtualbox' provider...
==> machine1: Importing base box 'bento/ubuntu-16.04'...
==> machine1: Matching MAC address for NAT networking...
==> machine1: Checking if box 'bento/ubuntu-16.04' is up to date...
==> machine1: Setting the name of the VM: Ubuntu_machine1_1517300867334_22288
==> machine1: Preparing SMB shared folders...
machine1: You will be asked for the username and password to use for the SMB
machine1: folders shortly. Please use the proper username/password of your
machine1: Windows account.
machine1:
machine1: Username:
machine1: Password (will be hidden): Error! Your console doesn't support hiding input. We'll ask for input again below, but we WILL NOT be able to hide input. If this is a problem for you, ctrl-C to exit and fix your stdin.
machine1: Password (will be hidden):
==> machine1: Clearing any previously set network interfaces...
==> machine1: Preparing network interfaces based on configuration...
machine1: Adapter 1: nat
machine1: Adapter 2: hostonly
==> machine1: Forwarding ports...
machine1: 22 (guest) => 5741 (host) (adapter 1)
machine1: 22 (guest) => 2222 (host) (adapter 1)
==> machine1: Running 'pre-boot' VM customizations...
==> machine1: Booting VM...
==> machine1: Waiting for machine to boot. This may take a few minutes...
machine1: SSH address: 127.0.0.1:2222
machine1: SSH username: vagrant
machine1: SSH auth method: private key
==> machine1: Machine booted and ready! [machine1] GuestAdditions 5.2.4 running --- OK.
==> machine1: Checking for guest additions in VM...
==> machine1: Setting hostname...
==> machine1: Configuring and enabling network interfaces...
==> machine1: Mounting SMB shared folders...
machine1: E:/Simon/Sites => /var/www Failed to mount folders in Linux guest. This is usually because the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly. The command attempted was:
PASSWORDHIDDENmPASSWORDHIDDENoPASSWORDHIDDENuPASSWORDHIDDENnPASSWORDHIDDENtPASSWORDHIDDEN PASSWORDHIDDEN-PASSWORDHIDDENtPASSWORDHIDDEN PASSWORDHIDDENcPASSWORDHIDDENiPASSWORDHIDDENfPASSWORDHIDDENsPASSWORDHIDDEN PASSWORDHIDDEN-PASSWORDHIDDENoPASSWORDHIDDEN PASSWORDHIDDENuPASSWORDHIDDENiPASSWORDHIDDENdPASSWORDHIDDEN=PASSWORDHIDDEN3PASSWORDHIDDEN3PASSWORDHIDDEN,PASSWORDHIDDENgPASSWORDHIDDENiPASSWORDHIDDENdPASSWORDHIDDEN=PASSWORDHIDDEN3PASSWORDHIDDEN3PASSWORDHIDDEN,PASSWORDHIDDENmPASSWORDHIDDENfPASSWORDHIDDENsPASSWORDHIDDENyPASSWORDHIDDENmPASSWORDHIDDENlPASSWORDHIDDENiPASSWORDHIDDENnPASSWORDHIDDENkPASSWORDHIDDENsPASSWORDHIDDEN,PASSWORDHIDDENdPASSWORDHIDDENiPASSWORDHIDDENrPASSWORDHIDDEN_PASSWORDHIDDENmPASSWORDHIDDENoPASSWORDHIDDENdPASSWORDHIDDENePASSWORDHIDDEN=PASSWORDHIDDEN0PASSWORDHIDDEN7PASSWORDHIDDEN7PASSWORDHIDDEN5PASSWORDHIDDEN,PASSWORDHIDDENfPASSWORDHIDDENiPASSWORDHIDDENlPASSWORDHIDDENePASSWORDHIDDEN_PASSWORDHIDDENmPASSWORDHIDDENoPASSWORDHIDDENdPASSWORDHIDDENePASSWORDHIDDEN=PASSWORDHIDDEN0PASSWORDHIDDEN6PASSWORDHIDDEN6PASSWORDHIDDEN4PASSWORDHIDDEN,PASSWORDHIDDENvPASSWORDHIDDENePASSWORDHIDDENrPASSWORDHIDDENsPASSWORDHIDDEN=PASSWORDHIDDEN3PASSWORDHIDDEN.PASSWORDHIDDEN0PASSWORDHIDDEN,PASSWORDHIDDENsPASSWORDHIDDENePASSWORDHIDDENcPASSWORDHIDDEN=PASSWORDHIDDENnPASSWORDHIDDENtPASSWORDHIDDENlPASSWORDHIDDENmPASSWORDHIDDEN,PASSWORDHIDDENcPASSWORDHIDDENrPASSWORDHIDDENePASSWORDHIDDENdPASSWORDHIDDENePASSWORDHIDDENnPASSWORDHIDDENtPASSWORDHIDDENiPASSWORDHIDDENaPASSWORDHIDDENlPASSWORDHIDDENsPASSWORDHIDDEN=PASSWORDHIDDEN/PASSWORDHIDDENePASSWORDHIDDENtPASSWORDHIDDENcPASSWORDHIDDEN/PASSWORDHIDDENsPASSWORDHIDDENmPASSWORDHIDDENbPASSWORDHIDDEN_PASSWORDHIDDENcPASSWORDHIDDENrPASSWORDHIDDENePASSWORDHIDDENdPASSWORDHIDDENsPASSWORDHIDDEN_PASSWORDHIDDENbPASSWORDHIDDEN6PASSWORDHIDDEN5PASSWORDHIDDEN0PASSWORDHIDDENcPASSWORDHIDDEN4PASSWORDHIDDEN2PASSWORDHIDDEN2PASSWORDHIDDENePASSWORDHIDDEN5PASSWORDHIDDEN5PASSWORDHIDDENbPASSWORDHIDDEN2PASSWORDHIDDENcPASSWORDHIDDENfPASSWORDHIDDEN1PASSWORDHIDDEN4PASSWORDHIDDENfPASSWORDHIDDENaPASSWORDHIDDEN0PASSWORDHIDDEN5PASSWORDHIDDENcPASSWORDHIDDEN1PASSWORDHIDDEN8PASSWORDHIDDEN6PASSWORDHIDDENfPASSWORDHIDDEN0PASSWORDHIDDEN3PASSWORDHIDDEN4PASSWORDHIDDEN7PASSWORDHIDDEN3PASSWORDHIDDENcPASSWORDHIDDEN PASSWORDHIDDEN/PASSWORDHIDDEN/PASSWORDHIDDEN1PASSWORDHIDDEN9PASSWORDHIDDEN2PASSWORDHIDDEN.PASSWORDHIDDEN1PASSWORDHIDDEN6PASSWORDHIDDEN8PASSWORDHIDDEN.PASSWORDHIDDEN1PASSWORDHIDDEN.PASSWORDHIDDEN7PASSWORDHIDDEN0PASSWORDHIDDEN/PASSWORDHIDDENbPASSWORDHIDDEN6PASSWORDHIDDEN5PASSWORDHIDDEN0PASSWORDHIDDENcPASSWORDHIDDEN4PASSWORDHIDDEN2PASSWORDHIDDEN2PASSWORDHIDDENePASSWORDHIDDEN5PASSWORDHIDDEN5PASSWORDHIDDENbPASSWORDHIDDEN2PASSWORDHIDDENcPASSWORDHIDDENfPASSWORDHIDDEN1PASSWORDHIDDEN4PASSWORDHIDDENfPASSWORDHIDDENaPASSWORDHIDDEN0PASSWORDHIDDEN5PASSWORDHIDDENcPASSWORDHIDDEN1PASSWORDHIDDEN8PASSWORDHIDDEN6PASSWORDHIDDENfPASSWORDHIDDEN0PASSWORDHIDDEN3PASSWORDHIDDEN4PASSWORDHIDDEN7PASSWORDHIDDEN3PASSWORDHIDDENcPASSWORDHIDDEN PASSWORDHIDDEN/PASSWORDHIDDENvPASSWORDHIDDENaPASSWORDHIDDENrPASSWORDHIDDEN/PASSWORDHIDDENwPASSWORDHIDDENwPASSWORDHIDDENwPASSWORDHIDDEN
The error output from the last command was:
mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
谢谢!
答案 0 :(得分:0)
因此,仔细阅读后,它要求的用户名/密码是您的Windows用户名和密码。现在,如果您已经完成设置过程并在线创建了Windows帐户,那么在Windows 10中这没有任何帮助。如果您遇到与我相同的问题,请务必检查帐户管理下的帐户设置,然后转到本地帐户"为自己创建一个本地帐户。系统会提示您提供密码(需要密码,因为PIN也不起作用)。登录此用户,然后再次尝试提供新凭据。
我希望这有助于某人。