iJackUA / try-yii2

Try Yii2 with Vagrant VM + Ansible provisioning = Complete readymade virtual server playground
MIT License
49 stars 49 forks source link

IMHO #1

Closed sim2github closed 10 years ago

sim2github commented 10 years ago
sim2github commented 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
iJackUA commented 10 years ago

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.

sim2github commented 10 years ago

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.