Mailing List Archive

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
RE: Can a domU app determine its own domain ID [ In reply to ]
> 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