When packaging a base box, private interface are missing

7 views
Skip to first unread message

Shankar B

unread,
Aug 24, 2018, 7:01:41 AM8/24/18
to Vagrant
Hi,

I have two nics enabled in my guest VM. One in NAT and another is Host Only Adapater.
But after packaging, i got a box and if i do vagrant init, i donot get Host only adapters.
How do i get host only in my vagrantfile. 

I tried putting Vagrantfile when packaging. But vagrantfile generated with vagrant init doesnt have my configs.
I just need to have this config ->  config.vm.network "private_network", ip: "10.10.100.101" in vagrantfile along with default configs we get from vagrant init.

D:\Vagrant_boxes>vagrant -v
Vagrant 2.1.2 

Virtual box version is 5.2.16

Thanks,

Shankar B.

Alvaro Miranda Aguilera

unread,
Sep 3, 2018, 8:35:21 AM9/3/18
to vagra...@googlegroups.com
if you share the code you use to package , and the sample vagrant file will be easier to help
Reply all
Reply to author
Forward
0 new messages