Skip to contentSkip to conversation

Changing MAC address of Xen domU after live migration?

DISCUSSION Vikram Subramanya 3 participants 4 messages Jan 24, 2009 – Jan 25, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

For my experiment on live migration of Xen VMs, I want the MAC address of the migrated VM (domU) to change soon after migration, but just before the Gratuitous ARP reply is sent. Do you know where in the code/scripts I can add this feature?

Thanks,
Vikram

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

Hi,

you could specify e.g.:

vif = [

        'mac=00:16:3E:2A:F7:18,bridge=intern',
        'mac=00:16:3E:77:AD:AA,bridge=extern',
        'mac=00:16:3E:61:A5:4F,bridge=dmz',
        'mac=00:16:3E:64:45:2A,bridge=wlan'

]

In your DomU's configuration files.

BR,
Carsten.

Von: Vikram Subramanya [mailto:[email protected]]
Gesendet: Samstag, 24. Januar 2009 23:44
An: [email protected]
Betreff: [Xen-devel] Changing MAC address of Xen domU after live migration?

Hi,

For my experiment on live migration of Xen VMs, I want the MAC address of the migrated VM (domU) to change soon after migration, but just before the Gratuitous ARP reply is sent. Do you know where in the code/scripts I can add this feature?

Thanks,
Vikram

#3 lore raw
Quoted 10 lines

you could specify e.g.:

vif = [

       'mac=00:16:3E:2A:F7:18,bridge=intern',
       'mac=00:16:3E:77:AD:AA,bridge=extern',
       'mac=00:16:3E:61:A5:4F,bridge=dmz',
       'mac=00:16:3E:64:45:2A,bridge=wlan'

]

Thanks for your reply, but unfortunately Xen treats the various options in vif as AND instead of OR. Which means that it expects bridges intern AND extern AND dmz AND wlan on each physical host.

In my first host which had bridge 'intern,' I got this error when I tried booting Xen DomU.

"Error: Device 2 (vif) could not be connected. Could not find bridge device extern"

I want to Xen DomU to choose the bridge that is available (and not expect all the bridges to be present) on the Dom0 it is currently on, even after migration.

I am in the following situation now:

- When DomU is on 10.2.0.2, it should have mac=00:00:10:02:00:02.
- When it migrates to 10.3.0.1, it should have mac=00:00:10:03:00:01.

How can I get around this problem? Thanks a lot for your timely help!

Vikram

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

#4 lore raw
In reply to Vikram Subramanya
Quoted 3 lines · Vikram Subramanya

For my experiment on live migration of Xen VMs, I want the MAC address of the migrated VM (domU) to change soon after migration, but just before the Gratuitous ARP reply is sent.

Care to explain why? Upstream kernels will not send an ARP in this case anyway.

Quoted 2 lines

Do you know where in the code/scripts I can
add this feature?

You can remove the network interface before suspend and readd it after the migration.

Bastian

Signature · 1 line
Mind your own business, Spock.  I'm sick of your halfbreed interference.