[ovs-discuss] change switch vm is attached to at runtime

Ben Pfaff blp at nicira.com
Thu Mar 24 16:17:58 UTC 2011


On Thu, Mar 24, 2011 at 09:12:25AM -0700, Tom Brown wrote:
> I'm just starting out with openvswitch. I installed it and can attach vm's
> to a vswitch. Now, I would like to simulate a user unplugging a network
> cable from one switch and plugging into another. So, if I have vswitch1 and
> vswitch2, I would like to be able to move a vm connection from vswtich1 to
> vswitch2 without shutting down the vm. Is this possible? Is it more a
> function of the vm? I'm using kvm, by the way.

If the vm's network device is "vif" and you want to move it from br0
to br1:
	ovs-vsctl del-port vif -- add-port br1 vif



More information about the discuss mailing list