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

[Xen-users] Find domID from domU


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Pepe Barbe <elventear@xxxxxxxxx>
  • Date: Thu, 8 May 2008 15:38:53 -0500
  • Delivery-date: Thu, 08 May 2008 13:39:41 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; b=HgioPJQp4Fhb5cp2EjtvqcmFL+eXfMqIR099isDx7rg1tx68TtizzRXmAldkJSq7srTvr7Sg5LJXF3UKL587CgGf6aAikcZ6G6r8aNO8pZw1RBvVkfP0cy8YdX4OKPI/EEpxzVbLo+uImnn7bu53M5K61W9hfmt9tkKWYKEzhKU=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello,

I am trying to write a script to add to the proper bridge any vif that is brought up trying to use a domU as a backend.

After much researching, I don't know if I have found the proper solution but, at least, a viable one.

I see that I can read the bridge name in xenstore from the following key:

/local/domain/<domid>/backend/vif/<vif num>/bridge

But I have found two obstacles to this solution.

First, by default a domU cannot list /local/domain, so the only way to find my domID would be to guess, up to the maximum number of domain IDs that Xen can have, which is a horrid solution. I can change the permissions so that key can be listed, and then I can try to read the different domain IDs until one succeeds, which would be a better way of guessing my own domID.

So my question is. Is there a deterministic way of reading the proper key /local/domain/<domid>/backend/vif/<vif num>/bridge from the domU, or a way to determine my domID in a deterministic fashion or change the the default permissions, so that if I ever reboot my dom0 I can bring everything back automatically.

Thanks,
Pepe

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.