From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pekka Enberg Subject: Re: [PATCH 2/2] kvm tools: Use host's resolv.conf within the guest Date: Thu, 15 Sep 2011 09:22:56 +0300 Message-ID: <4E7199C0.4000701@cs.helsinki.fi> References: <1316017706-12348-1-git-send-email-levinsasha928@gmail.com> <1316017706-12348-2-git-send-email-levinsasha928@gmail.com> <1316065006.3743.0.camel@lappy> <4E7190B4.1060306@cs.helsinki.fi> <1316066419.3743.5.camel@lappy> <1316066656.3743.6.camel@lappy> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com To: Sasha Levin Return-path: Received: from courier.cs.helsinki.fi ([128.214.9.1]:48653 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754403Ab1IOGW6 (ORCPT ); Thu, 15 Sep 2011 02:22:58 -0400 In-Reply-To: <1316066656.3743.6.camel@lappy> Sender: kvm-owner@vger.kernel.org List-ID: On 9/15/11 9:04 AM, Sasha Levin wrote: > On Thu, 2011-09-15 at 09:04 +0300, Pekka Enberg wrote: >> On Thu, Sep 15, 2011 at 9:00 AM, Sasha Levin wrote: >>> Hm? If you it to the host's resolv.conf, a guest can edit host's file, >>> no? >>> >>> Might even be not on purpose... For example, simply running dhcpcd on >>> the guest. >> >> How is that going to happen if you're not running kvmtool as root? > > In that case, dhcpcd in the guest will simply break because it can't > modify resolv.conf, no? Yes. Why is that a problem? You're not supposed to launch a dhcp client when using shared rootfs because kvmtool takes care of that for you. Pekka