Alan Greenspan
2005-Apr-23 13:12 UTC
[Xen-users] Can a domU app determine its own domain ID
Can an app running on a domU determine the domU''s domain ID? I''m thinking of a scenario where an app might want to auto-generate a unique IP address keyed off its domain ID. Thanks, Alan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ian Pratt
2005-Apr-23 21:17 UTC
RE: [Xen-users] Can a domU app determine its own domain ID
> Can an app running on a domU determine the domU''s domain ID? > I''m thinking of a scenario where an app might want to > auto-generate a unique IP address keyed off its domain ID.Not easily, and domid''s probably aren''t the best thing to use for this anyhow. Why not just arrange to pass in some identifier on the kernel command line? It will be available as an environment variable within startup scripts. We''ve used this technique on the demo CD, for example, to pass in IP and port details of the VNC listner for the Xvnc server to connect back to. Ian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users