[xen-tools-dev] [PATCH] Use dom0 resolv.conf when chrooting
Stéphane Jourdois
sjourdois at gmail.com
Thu Jul 15 16:03:18 CEST 2010
2010/7/15 Dmitry Nedospasov <dmitry at nedos.net>:
> On Thu, Jul 15, 2010 at 09:40:33AM +0200, Axel Beckert wrote:
>> 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.
>
> I think the ideal sollution would be to copy the resolv.conf unless
> specified otherwise. On all my setups, the domU's get the correct
> resolv.conf by copying dom0's resolv.conf.
I provided a roles/resolv file to do exactly that, but IMHO properly...
We could then allow a special (and default) value "host" for the
nameserver option, that would just call the roles script...
I'll add this patch to my tree immediatly if you agree.
Cheers.
PS: I respectfully disagree with you on the fact that we should mofidy
the guest when unless told so : IMHO, we should NOT modify the guest
unless asked (explicitly or at a pinch implicitly) to do so in the
config file !
More information about the xen-tools-dev
mailing list