Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EyWTK-0004P5-Kw for qemu-devel@nongnu.org; Mon, 16 Jan 2006 10:40:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EyVF1-0001cA-B6 for qemu-devel@nongnu.org; Mon, 16 Jan 2006 09:21:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EyVD7-00016R-0h for qemu-devel@nongnu.org; Mon, 16 Jan 2006 09:19:53 -0500 Received: from [80.67.174.57] (helo=filer2.altern.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EyVGd-0006Rb-52 for qemu-devel@nongnu.org; Mon, 16 Jan 2006 09:23:31 -0500 Message-ID: <38931.62.160.59.37.1137424621.squirrel@mail.altern.org> Date: Mon, 16 Jan 2006 16:17:01 +0100 (CET) From: "Yann Dirson" MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] IP mismatch in redirection using user-net dhcp Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org For some as-yet-unknown reason, the IP assigned by the user-net DHCP server occasionally switches to 10.0.2.16. I suspect this happens while renewing the lease while I'm away, since that would explain why the headless VM is unreachable when I come back on mondays - then when bootin= g with SDL display, I find out the IP is 10.0.2.16. This would not be a problem at all, if the port redirections would know about that, but a tcpdump in the VM shows that my "-redir tcp:10080::10080" is indeed taken as "tcp:10080:10.0.2.15:10080", even though the attributed IP is 10.0.2.16. Not sure how qemu could be taught to do something sensible here, without breaking multi-NIC setups. But with some luck we should not have to bother with it, if only the problem is just that the lease renewal is broken. Bringing the (gentoo/dhcpcd) VM back on its feet seems to require all of the following steps, which is quite error-prone (and time-consuming when = a single step is missed;): - "dhcpcd -k", which clears /var/cache/dhcpcd-eth0.cache - removing /var/lib/dhcpc/* - restarting qemu itself so that it forgets about the lease as well Would it make sense to be able to tell qemu "do not ever issue a lease on an IP different from 10.0.2.15", and possibly make that the default for single-NIC VMs ? --=20 Yann Dirson