Hi, $subject says pretty much all, this patch updates netfront and makes it store the network addresses of the interfaces in xenstore, so it''s much easier to figure what IP some virtual machine has and (for example) ssh into it. comments? Gerd _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2005-Dec-21 15:49 UTC
Re: [Xen-devel] [patch, rfc] put IP addresses into xenstore
On 21 Dec 2005, at 15:35, Gerd Knorr wrote:> $subject says pretty much all, this patch updates netfront and makes > it store the network addresses of the interfaces in xenstore, so it''s > much easier to figure what IP some virtual machine has and (for > example) ssh into it.I would expect most setups will have a central authority assigning IP addresses to domains, either via DHCP or boot-time IP p''n''p. That would seem to be a better place to get domain-to-IP binding info from rather than trusting the domU itself. Unfortunately it''s also slightly outside teh current scope of the dom0 tool stack. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Gerd Knorr
2005-Dec-21 16:40 UTC
Re: [Xen-devel] [patch, rfc] put IP addresses into xenstore
Keir Fraser wrote:> > I would expect most setups will have a central authority assigning IP > addresses to domains, either via DHCP or boot-time IP p''n''p. That would > seem to be a better place to get domain-to-IP binding info from rather > than trusting the domU itself.How do you do that? Assuming there is a dhcp server handing out IP addresses (pretty common these days I think). Is there some way to ask the dhcp server whenever there is a valid lease for a given mac address? Other suggestions to figure the IP address for a given domain?> Unfortunately it''s also slightly outside > teh current scope of the dom0 tool stack.But unfortunaly there also seems to be no other standard way, thats why I''ve tried to simply place the addresses in xenstore ... cheers, Gerd _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Charles Duffy
2005-Dec-21 20:37 UTC
[Xen-devel] Re: [patch, rfc] put IP addresses into xenstore
Gerd Knorr wrote:> How do you do that? Assuming there is a dhcp server handing out IP > addresses (pretty common these days I think). Is there some way to ask > the dhcp server whenever there is a valid lease for a given mac address? > Other suggestions to figure the IP address for a given domain?It''s fairly common practice to keep this information in DNS -- either having your DHCP server issue dynamic DNS updates for <hostname>.dhcp.<domainname> or <ethernet-address>.dhcp.<domainname> or somesuch. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel