vagrant 启动windows 7 box 问题
我在MAC启动win7的box,是可以启动起来的,但是目录无法同步。
在终端上 default: WinRM transport: plaintext 每次到这就停止不动了,也不好排查原因。
终端启动过程:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 5985 (guest) => 55985 (host) (adapter 1)
default: 5986 (guest) => 55986 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: WinRM address: 127.0.0.1:55985
default: WinRM username: vagrant
default: WinRM execution_time_limit: PT2H
default: WinRM transport: plaintext
到这就不动了
vagrantfile 配置如下:
Vagrant.configure(2) do |config|
config.vm.box = "win7"
config.vm.guest = :windows
config.vm.communicator = "winrm"
#config.winrm.username = ""
# config.winrm.password = ""
config.vm.boot_timeout = 600
# config.vm.network :forwarded_port, guest: 3389, host: 3389
# config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true
config.vm.synced_folder "/Users/jians/php/www", "C:/"
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "2048"
vb.cpus = 2
vb.name = "Windows_Vagrant"
end
end
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已找到问题答案:
https://gist.github.com/andre...