Created
January 11, 2022 18:28
-
-
Save vinyar/cf8e14199fa9484938005efe76df786b to your computer and use it in GitHub Desktop.
Quick notes on Vagrantfile and Kitchen.yml settings for VPN connectivity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Muhammad chef issues: | |
How to setup port forwarding: | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
config.vm.network "private_network", ip: "172.16.10.101" | |
config.vm.define "monitor01" do |vm01| | |
vm01.vm.hostname = "monitor01" | |
vm01.vm.network "private_network", ip: "192.168.121.101", virtualbox__intnet: "priv" | |
vm01.vm.network "public_network", bridge: 'wlp0s20f3' | |
vm01.vm.network :forwarded_port, host: 4567, guest: 80 | |
vm01.vm.provider "virtualbox" do |v| | |
v.customize ["modifyvm", :id, "--memory", "1024"] | |
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"] | |
# v.gui = true | |
end | |
end | |
You may need some plugin - it hasn't been a problem in the past, but perhaps it is in 2022 | |
if Vagrant.has_plugin?("vagrant-vbguest") | |
config.vbguest.auto_update = false | |
config.vbguest.no_install = true | |
config.vbguest.no_remote = true | |
end | |
------------ | |
Kitchen.yml version | |
customize: | |
memory: 2048 | |
natdnshostresolver1: "on" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment