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

Re: Getting domU vif's MAC address from dom0


  • To: xen-users@xxxxxxxxxxxxxxxxxxxx
  • From: Håkon Alstadheim <hakon@xxxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Thu, 26 Sep 2024 15:28:08 +0200
  • Delivery-date: Thu, 26 Sep 2024 13:29:03 +0000
  • Dkim-filter: OpenDKIM Filter v2.11.0 altibox-smtp1.altibox.no 4599010640EB
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>



Den 26.09.2024 12:17, skrev Andy Smith:
Hi,

On Thu, Sep 26, 2024 at 05:53:48AM +0000, Klaus Darilion wrote:
Is there an easy way of programmatically obtaining the domU-side MAC of
a vif, from the dom0?

Why not doing it the other way round and specify the MAC address in the Xen 
config file of the VM?

I already do that, hence I said this in my original email:

     I can also parse it out of the domU's config file, but that seems
     quite hacky.

The same info is in xenstore so if there is an easy way to read that,
that seems better.
If you want mac of domid 1, it's:
xenstore-read /libxl/1/device/vif/0/mac

So you want to 'route' into the VM instead of the usual 'switching' approach 
with a Linux bridge?

I do use routed networking, yes.

Thanks,
Andy




 


Rackspace

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