[xen-tools-dev] [PATCH] Use dom0 resolv.conf when chrooting
Stéphane Jourdois
sjourdois at gmail.com
Thu Jul 15 15:15:31 CEST 2010
Hi,
Thanks for merging my first patches and adding me to AUTHORS :)
I updated my merge-request after a rebase on your tree.
Another commit is on my tree (not in the merge-request for the moment)
to provide the roles/resolv script as mentionned before.
When those will be reviewed (and merged/rejected), I'm going to
implement further patches to permit configuration of multiple vifs.
I'm still asking myself how to do it so that :
- config file remains simple to edit ;
- old config files continue to work as before ;
I see two solutions :
- add ip2,netmask2,...,ip3,netmask3,etc :
this is _not_ beautiful code, but works, and xen doesn't support
more than 3 vifs anyway.
- add a new config option "vif = {ip, netmask, broadcast, gateway}"
where gateway can be empty
_deprecate_ options "ip", "netmask", "gateway", "broadcast", but
use them if they are present.
this is my preferred solution.
Feel free to comment as usually !
Stéphane (kwisatz) Jourdois.
Le 15 juillet 2010 09:47, Stéphane Jourdois <sjourdois at gmail.com> a écrit :
> Hi,
> Yes, this one is not trivial as it changes the way xen-tools works.
> I think that xen-tools should not modify the installed guest without request from the user, and roles are there to do such modifications...
> I'll provide a role.d file to this effect.
> Thx for comments and merge :)
> --
> /// Stephane Jourdois /"\ ASCII RIBBON CAMPAIGN \\\
> ((( Consultant securite \ / AGAINST HTML MAIL )))
> \\\ 157 Bd Davout X ///
> \\\ 75020 Paris / \ +33 6 8643 3085 ///
>
> -----Original Message-----
> From: Axel Beckert <abe at deuxchevaux.org>
> Sender: xen-tools-dev-bounces at xen-tools.org
> Date: Thu, 15 Jul 2010 09:40:33
> To: <xen-tools-dev at xen-tools.org>
> Subject: Re: [xen-tools-dev] [PATCH] Use dom0 resolv.conf when chrooting
>
> On Sat, Jul 10, 2010 at 12:52:16PM +0200, Stéphane Jourdois wrote:
>> Temporarily use resolv.conf from dom0 when chrooting into domU,
>> to be able to run apt-get and yum inside chroot.
>>
>> This permits to use different nameservers in domU, and does not
>> break install nor offline update from dom0.
>
> This also removes the general copying of /etc/resolv.conf to the DomU.
> Not sure if that breaks some setups. But the feature is a good one, so
> I merged it. We may have to add an option for just copying
> /etc/resolv.conf from the DomU. It may comtain some other options like
> search domain, etc., too.
>
> Kind regards, Axel
> --
> /~\ Plain Text Ribbon Campaign | Axel Beckert
> \ / Say No to HTML in E-Mail and News | abe at deuxchevaux.org (Mail)
> X See http://www.asciiribbon.org/ | abe at noone.org (Mail+Jabber)
> / \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
> _______________________________________________
> xen-tools-dev mailing list
> xen-tools-dev at xen-tools.org
> https://xen-tools.org/mailman/listinfo/xen-tools-dev
>
More information about the xen-tools-dev
mailing list