[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] failed to get IP for guest vm during running test-amd64-amd64-xl job
On Tue, 2014-07-29 at 08:24 +0000, Pang, LongtaoX wrote: > Since my DHCP Server is another Machine which is separate from OSSTest > Controller Machine, I execute the command "nc -l -k 6666 > < /var/lib/dhcp/dhcpd.leases" to spite out the lease file on port > 6666. On my OSSTest Controller Machine, update > HostProp_DhcpWatchMethod setting in ~/.xen-osstest/config as: [...] > So, do you ever meet this question before? Is it a issue of something wrong > about my setting? The nc command you used is one shot. You've used -k which makes it listen again, but you've only piped dhcpd.leases to stdin once, so the second connection won't have anything to say. osstest needs to be able to retrieve the leases repeatedly. I don't know how to get netcat to do what you want. We have it setup using inetd, e.g. in /etc/inetd.conf: 5556 stream tcp nowait nobody /bin/cat cat /var/lib/dhcp3/dhcpd.leases You might be able to build something with a shell while loop instead of -k, but I would imagine it wouldn't be very robust against multiple osstest sessions running in parallel. Some netcat variants support -c to execute a command on connect, which you might be able to use together with -k. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |