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

Re: [Xen-users] Re: Live VM migration



As far as I know, open vswitch not 'smart', it simply allow to control flow of frames (not packets!). I don't know if xapi somehow transmit new/old packets to old/new VM location, but anyway, this is not OVS works. You can see what happens to OVS in /etc/xensource/scripts/vif file (it's shell script to process plug/unplug).

The magic is the grace arp, guest sending from newer location to reconfigure all switches on net to send new frames to new location. Some kernels (f.e. current centos 6) are broken and have difficulties with migration. Others (f.e. 3.0 and most -xen kernels) works fine with this.

The migration process (for PV) is very cooperative process, I think you can easily detects migration process and reacts to it (by issuing dhclient command f.e.). I don't know details, but I think they can be easily digged out from xapi source. My assumption is the xenstore usage, you can create application for domU which will subscribe for changes for this key (key shall be digged out from xapi sources) and reacts to it.

On 23.08.2011 19:07, Payal Shah wrote:
Hi,
I guess I didn't rephrase the question properly. I'm aware that we could do live VM migration with different susbnets. I wanted to know that with the help of Open vSwitch, can we migrate to VM to a new subnet and the Open vSwitch is smart enough to route the packets to the new subnet. Will the Open vSwitch be aware that the VM is in a new subnet??? Also is there any way that the VM could get an ip from the new subnet if there is a dhcp configured, and can Open vSwitch route packets to the new VM???
I hope this makes sense.. Thank you for the previous responses


On Tue, Aug 23, 2011 at 5:11 AM, George Shuklin-4 [via Xen] <ml-node+4726239-1420815721-238104@xxxxxxxxxxxxx> wrote:
I do hear about guys who change route tables on router (one /32 route
per VM) according to VM migration. I think this can be used, but it
require very tight integration between router reconfiguration and vm
migration.

Technically OVS is just switch, not a router, so you can migrate VM
between different ip networks.

XCP do require to have same 'network' object on source and destination
hosts but no one says they need to have same gateway.


Ð ÐÐ., 22/08/2011 Ð 10:50 -0500, Payal Shah ÐÐÑÐÑ:

> Hello ,
> Thank you for the reply. I got the results I was expecting.
>
>
> I had one more question regarding open vSwitch and live VM migration.
> Live VM migration requires that both the hosts should be in the same
> subnet. If the hosts are in different subnets then how can we do live
> VM migration? Can open vSwitch be used in this scenario?? Or is there
> any other virtual switch that can route the packets as per the new
> subnet?
>
>
> Thank you in advance
>
>
> On Wed, Aug 3, 2011 at 8:39 PM, George Shuklin
> <[hidden email]> wrote:
> Â Â Â Â On XCP (1.1b, may be in XCP 1.0) there is a note in
> Â Â Â Â xensource.log about %% of migration.
> Â Â Â Â
> Â Â Â Â And you can do xentrace in dom0 to see all hypercalls (but you
> Â Â Â Â must understand what they means to get needed information).
> Â Â Â Â
> Â Â Â Â On 04.08.2011 00:42, Payal wrote:
> Â Â Â Â
> Â Â Â Â
> Â Â Â Â Â Â Â Â I have two hosts as Xen Server named host A and host B
> Â Â Â Â Â Â Â Â in the same network. A
> Â Â Â Â Â Â Â Â VM is created on Host A. Host A and B have a shared
> Â Â Â Â Â Â Â Â storage using NFS. While
> Â Â Â Â Â Â Â Â doing migration from host A to host B, how can I see
> Â Â Â Â Â Â Â Â the memory pages being
> Â Â Â Â Â Â Â Â migrated.
> Â Â Â Â Â Â Â Â If I run a small continuous program on the VM residing
> Â Â Â Â Â Â Â Â on host A, will the
> Â Â Â Â Â Â Â Â migration complete first or the sript running will
> Â Â Â Â Â Â Â Â complete first? How can I
> Â Â Â Â Â Â Â Â see that data is going in clear text? Is there a tool
> Â Â Â Â Â Â Â Â to see the packets
> Â Â Â Â Â Â Â Â going through? I tried using wireshark and spanning
> Â Â Â Â Â Â Â Â the ports, but I
> Â Â Â Â Â Â Â Â couldn't infer much. ANy help on this appreciated.
> Â Â Â Â Â Â Â Â Thank you,
> Â Â Â Â Â Â Â Â
> Â Â Â Â Â Â Â Â --
> Â Â Â Â Â Â Â Â View this message in context:
> Â Â Â Â Â Â Â Â http://xen.1045712.n5.nabble.com/Live-VM-migration-tp4664019p4664019.html
> Â Â Â Â Â Â Â Â Sent from the Xen - User mailing list archive at
> Â Â Â Â Â Â Â Â Nabble.com.
> Â Â Â Â Â Â Â Â
> Â Â Â Â Â Â Â Â _______________________________________________
> Â Â Â Â Â Â Â Â Xen-users mailing list
> Â Â Â Â Â Â Â Â [hidden email]
> Â Â Â Â Â Â Â Â http://lists.xensource.com/xen-users
> Â Â Â Â
> Â Â Â Â _______________________________________________
> Â Â Â Â Xen-users mailing list
> Â Â Â Â [hidden email]
> Â Â Â Â http://lists.xensource.com/xen-users
> Â Â Â Â
>
>
>
>
> --
> Payal Shah
> Dream as if you'll live forever, live as if you'll die today.
>
>
>




_______________________________________________
Xen-users mailing list
[hidden email]
If you reply to this email, your message will be added to the discussion below:
http://xen.1045712.n5.nabble.com/Live-VM-migration-tp4664019p4726239.html
To unsubscribe from Live VM migration, click here.



--
Payal Shah
Dream as if you'll live forever, live as if you'll die today.


_______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
_______________________________________________
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®.