How to add 2nd Hostonly private NIC in Vagrant box?

10 views
Skip to first unread message

Robert Wang

unread,
Jan 23, 2018, 7:19:19 PM1/23/18
to Vagrant
Most of time we build Vagrant box without specific NIC, by default Vagrant add NAT NIC when launch vm using box,but sometime want to do pre-config on private network inside box.

Tried it but when import box,found there is only NAT NIC there, seems private NIC removed when build box.

Any idea is this for purpose or any solution I didn't know yet?

Many thanks.

BR/
Robert


Alvaro Miranda Aguilera

unread,
Jan 24, 2018, 9:53:40 PM1/24/18
to vagra...@googlegroups.com
hello

network is reset on each vagrant up.

the package box need to have the first interface confgured with dhcp

use the vagrant networking to add either private or public

you can add multiples interfaces this way

first nic / nat should be there since its what vagrant uses to configure the guest

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.
 
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 email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/8582fe86-44e3-4edf-929a-091bbcabd688%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages