[Debian] Re: Bug#514001: vzctl: Make /etc/network/interfaces head and tail customizable

Kir Kolyshkin kir at openvz.org
Fri Feb 6 17:57:19 EST 2009


Hi Ivan, Ola,

Thanks for the suggestion and the patch, makes sense.

Committed to git (with the appropriate change in comment). Will appear 
in vzctl-3.0.24.

http://git.openvz.org/?p=vzctl;a=commit;h=4059ec910609421087bb9143d1de8424a81ad4d0

Ola Lundqvist wrote:
> Hi Ivan
>
> This would probably be a good thing. I'll check this when lenny is released
> and also inform upstream about this (cc:ed).
>
> Best regards,
>
> // Ola
>
> On Tue, Feb 03, 2009 at 09:35:49AM +0100, Ivan Vilata i Balaguer wrote:
>   
>> Package: vzctl
>> Version: 3.0.22-14
>> Severity: wishlist
>> Tags: patch
>>
>>
>> ``/etc/vz/dists/scripts/debian-add_ip.sh`` generates the virtual machine's
>> ``/etc/network/interfaces`` by appending virtual interface configuration to the
>> VM's ``/etc/network/interfaces.template``.  Besides the name being quite
>> misleading (it's not a template at all), there are serious problems if one just
>> wants to enable an additional interface *after* the other ones (e.g. for
>> setting a new alias on ``venet0`` for private communication with the host).
>>
>> The attached patch enables the use of ``/etc/network/interfaces.head`` as well
>> as ``/etc/network/interfaces.tail``.  The first one is appended to the
>> resulting ``interfaces`` file *before* the virtual interface info (and before
>> the so-called "template"), and the second one is appended at the end.
>>
>> Thanks!
>>
>> -- System Information:
>> Debian Release: 5.0
>>   APT prefers unstable
>>   APT policy: (500, 'unstable')
>> Architecture: amd64 (x86_64)
>>
>> Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
>> Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
>> Shell: /bin/sh linked to /bin/bash
>>
>> Versions of packages vzctl depends on:
>> ii  iproute                     20080725-2   networking and traffic control too
>> ii  libc6                       2.7-18       GNU C Library: Shared libraries
>> ii  vzquota                     3.0.11-1iti1 server virtualization solution - q
>>
>> Versions of packages vzctl recommends:
>> ii  rsync                         3.0.5-1    fast remote file copy program (lik
>>
>> Versions of packages vzctl suggests:
>> pn  linux-patch-openvz            <none>     (no description available)
>>
>> -- no debconf information
>>     
>
>
>
>   



More information about the Debian mailing list