Closed sim2github closed 10 years ago
BTW: nice to mention about editing hosts
file
192.168.33.33 yii2.local
192.168.33.33 admin.yii2.local
192.168.33.33 phpmyadmin.yii2.local
192.168.33.33 adminer.yii2.local
Thanks @sim2github
Fixed vagrant plugin install vagrant-hostsupdater vagrant-vbguest vagrant-cachier
and vb.customize ["modifyvm", :id, "--cpus", "1" ]
.
And added some note about hosts
file "in case if vagrant-hostsupdater failed".
But as for 33 subnet I have some doubts, mostly people do not have very complex network configurations and it will work for them. In case like yours - user is advanced enough to handle this collision on his own. But I will talk with sysadmins for deeper understanding of this question.
P.S.: Mostly people using 192.168.. configuration, so only 1 of 254 chance to have problem with creation virtual adapter with IP 192.168.33.1. It is not critical, but i have one. Any way route to VM be shortest: localhost->Virtual Adapter(10.10.10.1)->Virtual Machine(10.10.10.10). So changes to config.vm.network "private_network", ip: "10.10.10.10"
and 'allowedIPs' => ['127.0.0.1', '::1', '10.10.10.1']
in configs works fine to me.
vagrant plugin install vagrant-hostsupdater vagrant-vbguest vagrant-cachier
vb.customize ["modifyvm", :id, "--cpus", "1" ]
must be by default, because it is minimal requirement and supported by all OSconfig.vm.network "private_network", ip: "192.168.33.33"
to more random 172.16.0.0 or 10.0.0.0 submask