Vikram Subramanya
2009-Jan-24 22:43 UTC
[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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vikram Subramanya
2009-Jan-24 22:47 UTC
[Xen-users] 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Carsten Schiers
2009-Jan-25 09:24 UTC
AW: [Xen-devel] Changing MAC address of Xen domU after live migration?
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:vikram.s3@cs.ucsd.edu] Gesendet: Samstag, 24. Januar 2009 23:44 An: xen-devel@lists.xensource.com 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Bastian Blank
2009-Jan-25 18:46 UTC
Re: [Xen-devel] Changing MAC address of Xen domU after live migration?
On Sat, Jan 24, 2009 at 02:43:49PM -0800, Vikram Subramanya wrote:> 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.> 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 -- Mind your own business, Spock. I''m sick of your halfbreed interference. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vikram Subramanya
2009-Jan-25 23:38 UTC
[Xen-users] Re: [Xen-devel] Changing MAC address of Xen domU after live migration?
> > 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 Xen-users@lists.xensource.com http://lists.xensource.com/xen-users