Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in version 4.0.2? Thank you

This is a multipart message in MIME format. ------=_NextPart_000_00C5_01D1ECB7.2CD482F0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I create a cluster which already enabled ovs network as you mentioned , = but when I create vm in this cluster, I can only using = ovirtmgmt/ovirtmgmt vNIC profile, which is still a Linux bridge. I found no way to add a OVS vNIC profile, I have to chose = ovirtmgmt/ovirtmgmt vNIC to setup a VM. After VM is started, the vm is = still using Linux bridge to communicate with outside, not the ovs. =20 Need I to create a ovs bridge or vport and bind it to physical NIC in = vdsm manually? =20 Hope your reply as soon as possible. Thank you Mark =20 =E5=8F=91=E4=BB=B6=E4=BA=BA: users-bounces@ovirt.org = [mailto:users-bounces@ovirt.org] =E4=BB=A3=E8=A1=A8 Meni Yakove =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2016=E5=B9=B48=E6=9C=881=E6=97=A5 = 16:42 =E6=94=B6=E4=BB=B6=E4=BA=BA: Dan Kenigsberg =E4=B8=BB=E9=A2=98: Re: [ovirt-users] [ovirt-devel] How to add ovs-based = VM in version 4.0.2? Thank you =20 On Mon, Aug 1, 2016 at 11:07 AM, Dan Kenigsberg <danken@redhat.com> = wrote: On Mon, Aug 01, 2016 at 02:02:52PM +0800, lifuqiong wrote:
Hi, I upgrade my ovirt to version 4.0.2.2, how to using ovs in this = version? Is there any instruction? Thank you
Please note and note well: OVS is not production-grade yet. It is only a preliminary tech preview, under active development. However, we'd be very happy to get your help in testing it (and possibly fixing it, too). When defining a new cluster, you should see a check box, letting you select OVS for that cluster.=20 =20 To be precise, this is not a check box. In the Edit Cluster dialog, look = at the "switch=20 type" option, and change "LEGACY" to "OVS". =20 =20 =20 After being checked, each VM network that is defined in your cluster would be implemented with OVS instead of Linux bridge. As aluded before, there are plenty of known definciencies (e.g., no persistence of ip config on VM network, no live migration, not all bond modes, etc etc). But do not hesitate to raise other issues with the devel mailing list. Happy testing! Dan. _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel =20 ------=_NextPart_000_00C5_01D1ECB7.2CD482F0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta = http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta = name=3DGenerator content=3D"Microsoft Word 14 (filtered = medium)"><style><!-- /* Font Definitions */ @font-face {font-family:=E5=AE=8B=E4=BD=93; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:=E5=AE=8B=E4=BD=93; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@=E5=AE=8B=E4=BD=93"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:=E5=AE=8B=E4=BD=93;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif";} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></head><body lang=3DZH-CN link=3Dblue = vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal = style=3D'text-indent:21.0pt'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'>I create a cluster which already enabled ovs network as you mentioned = , but when I create vm in this cluster, =C2=A0I can only using = ovirtmgmt/ovirtmgmt vNIC profile, which is still a Linux = bridge.<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'>I found no way to add a OVS vNIC profile,=C2=A0 I have to chose = ovirtmgmt/ovirtmgmt vNIC to setup a VM. After VM is started, the vm is = still using Linux bridge to communicate with outside, not the = ovs.<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'><o:p> </o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'>Need I to create a ovs bridge or vport and bind it to physical NIC in = vdsm manually?<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'><o:p> </o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'>Hope your reply as soon as possible.<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'>Thank you<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'>Mark<o:p></o:p></span></p><p class=3DMsoNormal><a = name=3D"_MailEndCompose"><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'><o:p> </o:p></span></a></p><p class=3DMsoNormal><b><span = style=3D'font-size:10.0pt'>=E5=8F=91=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US = style=3D'font-size:10.0pt'> users-bounces@ovirt.org = [mailto:users-bounces@ovirt.org] </span><b><span = style=3D'font-size:10.0pt'>=E4=BB=A3=E8=A1=A8 </span></b><span = lang=3DEN-US style=3D'font-size:10.0pt'>Meni Yakove<br></span><b><span = style=3D'font-size:10.0pt'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US = style=3D'font-size:10.0pt'> 2016</span><span = style=3D'font-size:10.0pt'>=E5=B9=B4<span = lang=3DEN-US>8</span>=E6=9C=88<span lang=3DEN-US>1</span>=E6=97=A5<span = lang=3DEN-US> 16:42<br></span><b>=E6=94=B6=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></b><span lang=3DEN-US> Dan = Kenigsberg<br></span><b>=E4=B8=BB=E9=A2=98<span = lang=3DEN-US>:</span></b><span lang=3DEN-US> Re: [ovirt-users] = [ovirt-devel] How to add ovs-based VM in version 4.0.2? Thank = you<o:p></o:p></span></span></p><p class=3DMsoNormal><span = lang=3DEN-US><o:p> </o:p></span></p><div><div><div><p = class=3DMsoNormal><span lang=3DEN-US>On Mon, Aug 1, 2016 at 11:07 AM, = Dan Kenigsberg <<a href=3D"mailto:danken@redhat.com" = target=3D"_blank">danken@redhat.com</a>> = wrote:<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US>On = Mon, Aug 01, 2016 at 02:02:52PM +0800, lifuqiong wrote:<br>> Hi, I = upgrade my ovirt to version 4.0.2.2, how to using ovs in this = version?<br>> Is there any instruction? Thank you<br><br>Please note = and note well: OVS is not production-grade yet. It is only = a<br>preliminary tech preview, under active development.<br><br>However, = we'd be very happy to get your help in testing it (and = possibly<br>fixing it, too).<br><br>When defining a new cluster, you = should see a check box, letting you<br>select OVS for that cluster. = <o:p></o:p></span></p><div><p class=3DMsoNormal><span = lang=3DEN-US><o:p> </o:p></span></p></div><div><p = class=3DMsoNormal><span lang=3DEN-US>To be precise, this is not a check = box. In the Edit Cluster dialog, look at the = "switch <o:p></o:p></span></p></div><div><p = class=3DMsoNormal><span lang=3DEN-US>type" option, and change = "LEGACY" to = "OVS".<o:p></o:p></span></p></div><div><p = class=3DMsoNormal><span = lang=3DEN-US><o:p> </o:p></span></p></div><div><p = class=3DMsoNormal><span = lang=3DEN-US><o:p> </o:p></span></p></div><div><p = class=3DMsoNormal><span = lang=3DEN-US> <o:p></o:p></span></p></div><blockquote = style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm = 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=3DMsoNormal><span = lang=3DEN-US>After being checked, each VM network that<br>is defined in = your cluster would be implemented with OVS instead of<br>Linux = bridge.<br><br>As aluded before, there are plenty of known definciencies = (e.g., no<br>persistence of ip config on VM network, no live migration, = not all bond<br>modes, etc etc). But do not hesitate to raise other = issues with the<br>devel mailing list.<br><br>Happy = testing!<br><br>Dan.<br>_______________________________________________<b= r>Devel mailing list<br><a = href=3D"mailto:Devel@ovirt.org">Devel@ovirt.org</a><br><a = href=3D"http://lists.ovirt.org/mailman/listinfo/devel" = target=3D"_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><o:p><= /o:p></span></p></blockquote></div><p class=3DMsoNormal><span = lang=3DEN-US><o:p> </o:p></span></p></div></div></div></body></html> ------=_NextPart_000_00C5_01D1ECB7.2CD482F0--

On Tue, Aug 2, 2016 at 7:12 AM, lifuqiong <lifuqiong@cncloudsec.com> wrote:
I create a cluster which already enabled ovs network as you mentioned , but when I create vm in this cluster, I can only using ovirtmgmt/ovirtmgmt vNIC profile, which is still a Linux bridge.
I found no way to add a OVS vNIC profile, I have to chose ovirtmgmt/ovirtmgmt vNIC to setup a VM. After VM is started, the vm is still using Linux bridge to communicate with outside, not the ovs.
Need I to create a ovs bridge or vport and bind it to physical NIC in vdsm manually?
Hope your reply as soon as possible.
Thank you
Mark
*发件人:* users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] *代表 *Meni Yakove *发送时间:* 2016年8月1日 16:42 *收件人:* Dan Kenigsberg *主题:* Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in version 4.0.2? Thank you
On Mon, Aug 1, 2016 at 11:07 AM, Dan Kenigsberg <danken@redhat.com> wrote:
On Mon, Aug 01, 2016 at 02:02:52PM +0800, lifuqiong wrote:
Hi, I upgrade my ovirt to version 4.0.2.2, how to using ovs in this version? Is there any instruction? Thank you
Please note and note well: OVS is not production-grade yet. It is only a preliminary tech preview, under active development.
However, we'd be very happy to get your help in testing it (and possibly fixing it, too).
When defining a new cluster, you should see a check box, letting you select OVS for that cluster.
To be precise, this is not a check box. In the Edit Cluster dialog, look at the "switch
type" option, and change "LEGACY" to "OVS".
After being checked, each VM network that is defined in your cluster would be implemented with OVS instead of Linux bridge.
As aluded before, there are plenty of known definciencies (e.g., no persistence of ip config on VM network, no live migration, not all bond modes, etc etc). But do not hesitate to raise other issues with the devel mailing list.
Happy testing!
Dan. _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

Hi , Did you synced network/s after you moved the host to the ovs type cluster? It seems like you didn't..) Go to 'Hosts' main tab' and choose the host, go to 'Network Interfaces' sub tab and press the 'Sync All Networks' , now the networks should be synced to host as ovs switch type. Run the vm and check the xml. It should look something like this: <source bridge='vdsmbr_nRL3asDq'/> <virtualport type='openvswitch'> thanks On Tue, Aug 2, 2016 at 9:37 AM, Meni Yakove <myakove@redhat.com> wrote:
On Tue, Aug 2, 2016 at 7:12 AM, lifuqiong <lifuqiong@cncloudsec.com> wrote:
I create a cluster which already enabled ovs network as you mentioned , but when I create vm in this cluster, I can only using ovirtmgmt/ovirtmgmt vNIC profile, which is still a Linux bridge.
I found no way to add a OVS vNIC profile, I have to chose ovirtmgmt/ovirtmgmt vNIC to setup a VM. After VM is started, the vm is still using Linux bridge to communicate with outside, not the ovs.
Need I to create a ovs bridge or vport and bind it to physical NIC in vdsm manually?
Hope your reply as soon as possible.
Thank you
Mark
*发件人:* users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] *代表 *Meni Yakove *发送时间:* 2016年8月1日 16:42 *收件人:* Dan Kenigsberg *主题:* Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in version 4.0.2? Thank you
On Mon, Aug 1, 2016 at 11:07 AM, Dan Kenigsberg <danken@redhat.com> wrote:
On Mon, Aug 01, 2016 at 02:02:52PM +0800, lifuqiong wrote:
Hi, I upgrade my ovirt to version 4.0.2.2, how to using ovs in this version? Is there any instruction? Thank you
Please note and note well: OVS is not production-grade yet. It is only a preliminary tech preview, under active development.
However, we'd be very happy to get your help in testing it (and possibly fixing it, too).
When defining a new cluster, you should see a check box, letting you select OVS for that cluster.
To be precise, this is not a check box. In the Edit Cluster dialog, look at the "switch
type" option, and change "LEGACY" to "OVS".
After being checked, each VM network that is defined in your cluster would be implemented with OVS instead of Linux bridge.
As aluded before, there are plenty of known definciencies (e.g., no persistence of ip config on VM network, no live migration, not all bond modes, etc etc). But do not hesitate to raise other issues with the devel mailing list.
Happy testing!
Dan. _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
-- Michael Burman RedHat Israel, RHEV-M QE Network Team Mobile: 054-5355725 IRC: mburman

If the host was a part of legacy cluster you must do manual cleanup of all networks. Currently VDSM cannot change Linux bridges into OVS ones (this will be implemented soon). Make sure that you are adding clean hosts (with NIC interface/s only) to OVS cluster. Regards, Petr 2016-08-02 10:01 GMT+02:00 Michael Burman <mburman@redhat.com>:
Hi ,
Did you synced network/s after you moved the host to the ovs type cluster? It seems like you didn't..) Go to 'Hosts' main tab' and choose the host, go to 'Network Interfaces' sub tab and press the 'Sync All Networks' , now the networks should be synced to host as ovs switch type. Run the vm and check the xml. It should look something like this:
<source bridge='vdsmbr_nRL3asDq'/> <virtualport type='openvswitch'>
thanks
On Tue, Aug 2, 2016 at 9:37 AM, Meni Yakove <myakove@redhat.com> wrote:
On Tue, Aug 2, 2016 at 7:12 AM, lifuqiong <lifuqiong@cncloudsec.com> wrote:
I create a cluster which already enabled ovs network as you mentioned , but when I create vm in this cluster, I can only using ovirtmgmt/ovirtmgmt vNIC profile, which is still a Linux bridge.
I found no way to add a OVS vNIC profile, I have to chose ovirtmgmt/ovirtmgmt vNIC to setup a VM. After VM is started, the vm is still using Linux bridge to communicate with outside, not the ovs.
Need I to create a ovs bridge or vport and bind it to physical NIC in vdsm manually?
Hope your reply as soon as possible.
Thank you
Mark
发件人: users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] 代表 Meni Yakove 发送时间: 2016年8月1日 16:42 收件人: Dan Kenigsberg 主题: Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in version 4.0.2? Thank you
On Mon, Aug 1, 2016 at 11:07 AM, Dan Kenigsberg <danken@redhat.com> wrote:
On Mon, Aug 01, 2016 at 02:02:52PM +0800, lifuqiong wrote:
Hi, I upgrade my ovirt to version 4.0.2.2, how to using ovs in this version? Is there any instruction? Thank you
Please note and note well: OVS is not production-grade yet. It is only a preliminary tech preview, under active development.
However, we'd be very happy to get your help in testing it (and possibly fixing it, too).
When defining a new cluster, you should see a check box, letting you select OVS for that cluster.
To be precise, this is not a check box. In the Edit Cluster dialog, look at the "switch
type" option, and change "LEGACY" to "OVS".
After being checked, each VM network that is defined in your cluster would be implemented with OVS instead of Linux bridge.
As aluded before, there are plenty of known definciencies (e.g., no persistence of ip config on VM network, no live migration, not all bond modes, etc etc). But do not hesitate to raise other issues with the devel mailing list.
Happy testing!
Dan. _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
-- Michael Burman RedHat Israel, RHEV-M QE Network Team
Mobile: 054-5355725 IRC: mburman
participants (4)
-
lifuqiong
-
Meni Yakove
-
Michael Burman
-
Petr Horacek