Mohit Dhingra
2012-Feb-10 14:52 UTC
Query - Issue creating VMs when not using bridge that Xen created, but using ovswitch.
*Hello,* I have installed Xen as Hypervisor with OpenSUSE running in Dom0. I want to use ovswitch (ovs) instead of the bridges that Xen created. In order to do so, I installed ovs in dom0 just like for the plain Linux. Xen has replaced eth0 with peth0, and has created a bridge named eth0. And eth0 is connected peth0 interface , vif2.0 interface (VM), and everything is working fine. Now I delete the VM. Now, for OVS, I have deleted the bridge eth0, I have created an ovs bridge named br0 using ovs-vsctl and connected it with peth0. I comment the lines for network bridging & vif bridging. #(network-script network-bridge) #(vif-script vif-bridge) And restart the xend. Then, when I create a VM( By Yast), I get an error, Failed to start the VM. Error: Device 0 (vif) could not be connected. hotplug scripts not working What should I do, if I want to run OVS as my bridge, and XEN VMs. * ---------------------------- Thanks & Regards Mohit Dhingra * _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson
2012-Feb-10 19:32 UTC
Re: Query - Issue creating VMs when not using bridge that Xen created, but using ovswitch.
Mohit Dhingra wrote:>Xen has replaced eth0 with peth0, and has created a bridge named >eth0. And eth0 is connected peth0 interface , vif2.0 interface (VM), >and everything is working fine. Now I delete the VM. > >Now, for OVS, I have deleted the bridge eth0, I have created an ovs >bridge named br0 using ovs-vsctl and connected it with peth0. >I comment the lines for network bridging & vif bridging. >#(network-script network-bridge) >#(vif-script vif-bridge) >And restart the xend.You will need a vif-script defined - and unless you find someone who''s already done one, then you''ll have to write it yourself. "network-script" is deprecated in favour of using host OS tools - so you are correct to comment that out. But "vif-script" will be needed - and it will need to do whatever is required to create a VIF and connect it to the right virtual switch. -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books.
Mohit Dhingra
2012-Feb-12 18:03 UTC
Re: Query - Issue creating VMs when not using bridge that Xen created, but using ovswitch.
Thanks Simon. Yes I have done like what you said (commented out (network-script network-bridge) , but not vif-bridge), and that makes sense as well because I need to configure virtual interfaces. And, I just relplaced one line in xen-network-common.sh brctl addif ${bridge} ${dev} with ovs-vsctl add-port ${bridge} ${dev} And, I am able to connect virtual interfaces with new bridge eth0 (created manually by me by ovs-vsctl). Everything works fine :) :) But QoS controls by ovs tools are not being reflected in the connection to VMs :( I set maximum ingress rate of 1Mbps, but still I get 90Mbps in Netperf test. Also,I want to put it in a script, which should run before xen scripts at the boot time, (run level 3 & 5, right? And why twice ?). Where should I put up the my script, and how do I make sure it runs before Xen scripts. Also, I put up few echo statements in xen script file, where do i see the print? which log file? * ---------------------------- Thanks & Regards Mohit Dhingra +919611190435* On 11 February 2012 01:02, Simon Hobson <linux@thehobsons.co.uk> wrote:> Mohit Dhingra wrote: > > Xen has replaced eth0 with peth0, and has created a bridge named eth0. >> And eth0 is connected peth0 interface , vif2.0 interface (VM), and >> everything is working fine. Now I delete the VM. >> >> Now, for OVS, I have deleted the bridge eth0, I have created an ovs >> bridge named br0 using ovs-vsctl and connected it with peth0. >> I comment the lines for network bridging & vif bridging. >> #(network-script network-bridge) >> #(vif-script vif-bridge) >> And restart the xend. >> > > You will need a vif-script defined - and unless you find someone who''s > already done one, then you''ll have to write it yourself. "network-script" > is deprecated in favour of using host OS tools - so you are correct to > comment that out. > > But "vif-script" will be needed - and it will need to do whatever is > required to create a VIF and connect it to the right virtual switch. > > -- > Simon Hobson > > Visit http://www.**magpiesnestpublishing.co.uk/<http://www.magpiesnestpublishing.co.uk/>for books by acclaimed > author Gladys Hobson. Novels - poetry - short stories - ideal as > Christmas stocking fillers. Some available as e-books. > > ______________________________**_________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/**xen-users<http://lists.xensource.com/xen-users> >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Seemingly Similar Threads
- create ovs port without root
- Re: create ovs port without root
- Re: libvirt + openvswitch, <parameters interfaceid='x'/> seems less-than-useful?
- libvirt + openvswitch, <parameters interfaceid='x'/> seems less-than-useful?
- Error starting domain: internal error: Unable to add port vnet0 to OVS bridge br0