How can I append my /etc/network/interfaces config in Vagrantfile ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How can I append my /etc/network/interfaces config in Vagrantfile ?

Stéphane Klein
Hi,

I've this in my Vagranfile :

config.vm.network :bridged, :mac => "080027e5f699"

When I execute "vagrant up" I've this config :

 
root@lxc:/home/vagrant# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
    post-up route del default dev $IFACE

#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth1
iface eth1 inet dhcp
    post-up route del default dev $IFACE
#VAGRANT-END

But I would like to have this :

#auto eth1
iface eth1 inet manual

auto br0
iface br0 inet dhcp
   bridge_ports eth1
   bridge_stp on
   bridge_fd 1
   bridge_maxwait 0

If I update manually the /etc/network/interfaces config file, after "vagrant up" execution, I've this lines appended once again :

#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth1
iface eth1 inet dhcp
    post-up route del default dev $IFACE
#VAGRANT-END

What is the Vagrant tips to put my "config" in Vagrantfile ?

Best regards,
Stephane

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: How can I append my /etc/network/interfaces config in Vagrantfile ?

Mike
Have you run `vagrant up` in debug mode and examined the output?

Also, what distro/basebox are you using?

-M

On Mon, Mar 4, 2013 at 9:25 AM, Stéphane Klein
<[hidden email]> wrote:

> Hi,
>
> I've this in my Vagranfile :
>
> config.vm.network :bridged, :mac => "080027e5f699"
>
> When I execute "vagrant up" I've this config :
>
>
> root@lxc:/home/vagrant# cat /etc/network/interfaces
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> allow-hotplug eth0
> iface eth0 inet dhcp
>     post-up route del default dev $IFACE
>
> #VAGRANT-BEGIN
> # The contents below are automatically generated by Vagrant. Do not modify.
> auto eth1
> iface eth1 inet dhcp
>     post-up route del default dev $IFACE
> #VAGRANT-END
>
> But I would like to have this :
>
> #auto eth1
> iface eth1 inet manual
>
> auto br0
> iface br0 inet dhcp
>    bridge_ports eth1
>    bridge_stp on
>    bridge_fd 1
>    bridge_maxwait 0
>
> If I update manually the /etc/network/interfaces config file, after "vagrant
> up" execution, I've this lines appended once again :
>
> #VAGRANT-BEGIN
> # The contents below are automatically generated by Vagrant. Do not modify.
> auto eth1
> iface eth1 inet dhcp
>     post-up route del default dev $IFACE
> #VAGRANT-END
>
> What is the Vagrant tips to put my "config" in Vagrantfile ?
>
> Best regards,
> Stephane
>
> --
> 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 [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: How can I append my /etc/network/interfaces config in Vagrantfile ?

Stéphane Klein

Le lundi 4 mars 2013 19:14:55 UTC+1, miketheman a écrit :
Have you run `vagrant up` in debug mode and examined the output?


No :(
 
Also, what distro/basebox are you using?


I use http://dl.dropbox.com/u/937870/VMs/squeeze64.box on Mac OS X.

Best regards,
Stephane

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: How can I append my /etc/network/interfaces config in Vagrantfile ?

Mike
>> Have you run `vagrant up` in debug mode and examined the output?
>>
>
> No :(

You may wish to do so, the output will provide better insight as to
what happened.

You might also want to use a service like Pastebin -
http://pastebin.com/ - to provide the output instead of putting in the
reply.

Best,
-M

On Tue, Mar 5, 2013 at 4:05 AM, Stéphane Klein
<[hidden email]> wrote:

>
> Le lundi 4 mars 2013 19:14:55 UTC+1, miketheman a écrit :
>>
>> Have you run `vagrant up` in debug mode and examined the output?
>>
>
> No :(
>
>>
>> Also, what distro/basebox are you using?
>>
>
> I use http://dl.dropbox.com/u/937870/VMs/squeeze64.box on Mac OS X.
>
> Best regards,
> Stephane
>
> --
> 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 [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.