[PVE-User] Persistent changes in Container bridge network interface
lara sanz
lara.sanz.15 at gmail.com
Wed Jan 2 16:12:48 CET 2013
Hi all,
I solved my problem.
First I created a new file /etc/network /interfaces.head where I introduced
the interface configuration.
*auto eth0*
*iface eth0 inet dhcp*
*
*
When I restarted the container interface to up correctly , at this point
I encountered a new problem, the system has failed to load configuration
and has not up any of the other interfaces, even the hostname was incorrect.
I deleted the file /etc/network /interfaces.head nd created a new / etc
/ network / interfaces.tail with the interface configuration.
*auto eth0*
*iface eth0 inet dhcp*
I restarted the container and it worked correctly, successfully created the
new interface and all the others that were already set up, also was correct
hostname.
Are there any known problem when configuring the new interfaces with the
file
/etc /network /interfaces.head?
2012/12/20 lara sanz <lara.sanz.15 at gmail.com>
> Hi all ,
>
>
> I created a Container in Proxmox server, Container is debian 6 , in this
> container I have one bridge interface, eth1,
> when I change interface configuration in file /etc/network/interface in
> to container, interface run correctly, but when the container restart
> these changes are lost.
>
> In /etc/network/interface I can show this message:
>
> # This configuration file is auto-generated.
> #
> # WARNING: Do not edit this file, your changes will be lost.
> # Please create/edit /etc/network/interfaces.head and
> # /etc/network/interfaces.tail instead, their contents will be
> # inserted at the beginning and at the end of this file, respectively.
> #
> # NOTE: it is NOT guaranteed that the contents of
> /etc/network/interfaces.tail
> # will be at the very end of this file.
>
>
> I try create files :
> /etc/network/interfaces.head and /etc/network/interfaces.tail
>
> With the same configuration as /etc/network/interface, but does'nt work.
>
> I also followed te following manuals:
>
> http://wiki.openvz.org/Virtual_Ethernet_device
>
> http://pve.proxmox.com/wiki/Vzctl_manual
>
> I tried the following:
>
> vzctl set 101 --netif_add eth0 --save
>
>
> When reboot container changes in bridged network interface lost.
>
> I need these changes to be persistent though the container is restartet.
>
> know any manual or howto?
>
> As I can make changes persistent?
>
> Thank you very much for your time
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20130102/ed0c736a/attachment.htm>
More information about the pve-user
mailing list