Sunday, September 22, 2019

static ip, port forwarding and shared folders

staticip: 3+static ipaddress added with network name and gui added to machine

Vagrantfile

staticip(Private)+portforwarding: When we create private IP with VM, it won't be accessible from other network machines, but we can use he host machine's IP address using port forwarding.

Vagrantfile

There is shared folders option to add a shared folder between host and VM.

To disable automatic folder sync, in vagrant file update below line.:
config.vm.synced_folder ".", "/vagrant", disabled: true

Lists all drives:
#sudo df -h

No comments:

Post a Comment