【发布时间】:2019-11-06 10:57:14
【问题描述】:
我将宅基地与 hyper-v 一起使用。 vagrant box 运行良好。
但是。 IP地址每次都变了。
我在 Homestead.yaml 文件中修复了 IP 地址。但不起作用。
我用
- 窗口 10
- Hyper-v
- 流浪者 2.2.6
我尝试了 10 倍以上的 vagrant...
homestead.yaml
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: hyperv
vagrant up 消息。
PS C:\Users\hi\dev\homestead> vagrant up
Bringing machine 'homestead' up with 'hyperv' provider...
==> homestead: Verifying Hyper-V is enabled...
==> homestead: Verifying Hyper-V is accessible...
homestead: Configuring the VM...
==> homestead: Starting the machine...
==> homestead: Waiting for the machine to report its IP address...
homestead: Timeout: 120 seconds
homestead: IP: 172.17.76.38
==> homestead: Waiting for machine to boot. This may take a few minutes...
homestead: SSH address: 172.17.76.38:22
homestead: SSH username: vagrant
homestead: SSH auth method: private key
==> homestead: Machine booted and ready!
hyper-v 机器 ip 是 172.17.76.38 ...
怎么解决???
【问题讨论】:
标签: networking vagrant ip homestead