you can override any file you require with a provision script.
control the files you need like resolv.conf will be the best.
Post by Russ DillIt's working, but because I need it to be the interface use for the
default route and DNS, but still have ssh access to vagrant via the
NAT I had to fib to vagrant quite a bit.
use_dhcp_assigned_default_route doesn't seem to be working with
private_network, and even if it was the NAT dns entry would be the
first resolv.conf entry.
config.vm.network "private_network", adapter: 1, intnet: true,
auto_config: false
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--nic1", "generic"]
vb.customize ["modifyvm", :id, "--nicgenericdrv1", "UDPTunnel"]
vb.customize ["modifyvm", :id, "--nicproperty1", "dest=127.0.0.1"]
vb.customize ["modifyvm", :id, "--nicproperty1", "dport=22222"]
vb.customize ["modifyvm", :id, "--nic2", "nat"]
vb.customize ["modifyvm", :id, "--natpf2",
"ssh,tcp,127.0.0.1,2222,,22"]
end
On Wed, Oct 10, 2018 at 11:05 AM Alvaro Miranda Aguilera
https://www.vagrantup.com/docs/virtualbox/configuration.html#vboxmanage-customizations
Post by Russ DillVBoxManage modifyvm "VM 01 on host 1" --nicgenericdrv0 UDPTunnel
VBoxManage modifyvm "VM 01 on host 1" --nicproperty0 dest=10.0.0.2
VBoxManage modifyvm "VM 01 on host 1" --nicproperty0 sport=10001
VBoxManage modifyvm "VM 01 on host 1" --nicproperty0 dport=10002
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--nicgenericdrv0", "UDPTunnel"]
v.customize ["modifyvm", :id, "--nicproperty0", "dest=10.0.0.2"]
v.customize ["modifyvm", :id, "--nicproperty0", "sport=10001"]
v.customize ["modifyvm", :id, "--nicproperty0", "dport=10002"]
end
Post by Russ DillVBoxManage modifyvm "VM 01 on host 1" --nicgenericdrv0 UDPTunnel
VBoxManage modifyvm "VM 01 on host 1" --nicproperty0 dest=10.0.0.2
VBoxManage modifyvm "VM 01 on host 1" --nicproperty0 sport=10001
VBoxManage modifyvm "VM 01 on host 1" --nicproperty0 dport=10002
VDE is configured similarly. The genericdrv name is VDE instead and the
property to be set is network.
Post by Russ DillPost by Russ DillOn Tuesday, October 9, 2018 at 1:28:21 PM UTC-7, Alvaro Miranda
Post by Alvaro Miranda AguileraCan you do this with commands with VBoxManage?
Post by Russ DillI'm trying to connect my Vagrant VM to a UDP tunneled Ethernet
<Adapter slot="0" enabled="true" MACAddress="080027F350AA"
cable="true" type="82540EM">
Post by Russ DillPost by Russ DillPost by Alvaro Miranda AguileraPost by Russ Dill<GenericInterface driver="UDPTunnel">
<Property name="dest" value="127.0.0.1"/>
<Property name="dport" value="22225"/>
<Property name="sport" value="22226"/>
</GenericInterface>
</Adapter>
However, I'm not sure what the Vagrantfile syntax for such a thing
would be. Is such a thing currently possible under Vagrant? Do I need to
modify Vagrant to make something like this work?
Guidelines - https://www.hashicorp.com/community-guidelines.html.
Behavior in violation of those guidelines may result in your removal from
this mailing list.
Post by Russ DillPost by Russ DillPost by Alvaro Miranda AguileraPost by Russ DillGitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google
Groups "Vagrant" group.
Post by Russ DillPost by Russ DillPost by Alvaro Miranda AguileraPost by Russ DillTo unsubscribe from this group and stop receiving emails from it,
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/29168c82-ce4a-4d3f-b882-351d19f0ca82%40googlegroups.com
.
Post by Russ DillPost by Russ DillPost by Alvaro Miranda AguileraPost by Russ DillFor more options, visit https://groups.google.com/d/optout.
--
Alvaro
--
This mailing list is governed under the HashiCorp Community Guidelines
- https://www.hashicorp.com/community-guidelines.html. Behavior in
violation of those guidelines may result in your removal from this mailing
list.
Post by Russ DillPost by Russ DillGitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google
Groups "Vagrant" group.
Post by Russ DillPost by Russ DillTo unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/a568fd81-e40f-4412-93ee-8f2b976cb9fa%40googlegroups.com
.
Post by Russ DillPost by Russ DillFor more options, visit https://groups.google.com/d/optout.
--
Alvaro
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in
violation of those guidelines may result in your removal from this mailing
list.
Post by Russ DillGitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to a topic in the
Google Groups "Vagrant" group.
Post by Russ DillTo unsubscribe from this topic, visit
https://groups.google.com/d/topic/vagrant-up/ZzOQI06RlAs/unsubscribe.
Post by Russ DillTo unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezDAn%3DO-qhTe-trVnn2o_xjAQTWb%3DhYMtiSZOaWxxM8OA%40mail.gmail.com
.
Post by Russ DillFor more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in
violation of those guidelines may result in your removal from this mailing
list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/CA%2BBv8XY3qmDx2ZZQrpPm%2BYV5AXwwDG5_O74ayB9nweCGqM7vNQ%40mail.gmail.com
.
For more options, visit https://groups.google.com/d/optout.
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyByD9f3COgHzFohYFTiNZCWYmBddDXcD-f1ZZE4ZJ6yA%40mail.gmail.com.