[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] IP mismatch in redirection using user-net dhcp

From: Yann Dirson
Subject: [Qemu-devel] IP mismatch in redirection using user-net dhcp
Date: Mon, 16 Jan 2006 16:17:01 +0100 (CET)
User-agent: SquirrelMail/1.4.5

For some as-yet-unknown reason, the IP assigned by the user-net DHCP
server occasionally switches to  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 booting
with SDL display, I find out the IP is

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:", even
though the attributed IP is  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", and possibly make that the default for
single-NIC VMs ?

Yann Dirson <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]