Configuring Vagrant to use DHCP on local host & connecting to resources on remote networks - Server Fault
is there alternative way configure vagrant use dhcp ip address on local network our project can accessed other devices testing, while allowing vm reach remote networks ubuntu repos?
currently running vagrant on ubuntu 16.04 , in order test our app, have configured vagrant use "public_network" using "dhcp" allow assigned ip address on our lan.
e.g. have added vagrantfile
config.vm.network "public_network", type: "dhcp" this works our needs allow testing on other oses , mobile devices. however, when trying use composer add packages project, or trying use apt update or install fails various messages "network not reachable" or "failed open stream" etc.
once realized line in vagrantfile causing error, commented out , able install or update needed. hoping there better way than, halting vagrant box each time, commenting out config, spinning up, adding packages, going , reversing process each time make app available on local network again.
Comments
Post a Comment