Guys, Just for the record, my problem wasn't related to Open vSwitch or Libvirt, the problem is only with virt-manager itself.
But, I was able to create the VM using virt-manager and, at the network configuration step, I manually selected the interface name "ovsbr0" to create the VM XML file anyway. After that, I typed: "virsh edit vmname" and changed the "interface" tags to: --- <interface type='bridge'> <mac address='52:54:00:01:8b:3d'/> <source bridge='ovsbr0'/> <virtualport type='openvswitch'> <parameters interfaceid='0514a4cb-8548-37ae-12be-6ecca14cc5fd'/> </virtualport> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> --- And it is working smoothly now! Even under virt-manager, if I do not touch the network preferences... Sorry about the buzz on the wrong mailing list. Anyway, I have only one question related to Open vSwitch, in a nut shell, what the following line does? "ovs-vsctl add-port ovsbr0 ovsbr0p1 -- set interface ovsbr0p1 type=internal" ...since I'm not using it and my VM have network connectivity as expected... Best, Thiago On 18 January 2013 19:34, Martinx - ジェームズ <thiagocmarti...@gmail.com> wrote: > Mmm... That's true... Thank you anyway! > > On 18 January 2013 19:30, Ben Pfaff <b...@nicira.com> wrote: > >> Open vSwitch doesn't have any built-in integration with libvirt, but >> on the other hand libvirt does have some support for Open vSwitch, so >> perhaps you should try inquiring on a libvirt mailing list. >> >> Also, version 1.4.0 is four minor versions behind, seeing as we just >> released 1.4.4. You might try a new version. >> >> On Fri, Jan 18, 2013 at 07:22:30PM -0200, Martinx - ジェームズ wrote: >> > Hi! >> > >> > Also, I just tried this: >> > >> > ifdown ovsbr0p1 >> > ifdown eth0 >> > >> > ovs-vsctl del-port ovsbr0p1 >> > ovs-vsctl del-br ovsbr0 >> > ovs-vsctl show (empty / clean) >> > >> > ovs-vsctl add-br br0 >> > ovs-vsctl add-port br0 eth0 >> > ovs-vsctl list-br >> > >> > New /etc/network/interfaces: >> > >> > ------ >> > # The primary network interface >> > auto eth0 >> > iface eth0 inet static >> > address 10.32.14.2 >> > netmask 24 >> > # gateway 10.32.14.1 >> > >> > auto br0 >> > iface br0 inet manual >> > up ifconfig $IFACE 0.0.0.0 up >> > down ifconfig $IFACE down >> > ------ >> > >> > And now I can select the bridge (br0) on virt-manager but, same error >> when >> > I try to start it: >> > >> > "Unable to complete install: 'Unable to add bridge br0 port vnet0: >> > Operation not supported'" >> > >> > I just read this: >> > >> http://blog.allanglesit.com/2012/03/linux-kvm-ubuntu-12-04-with-openvswitch/- >> > since I'm using Ubuntu 12.04 but, no difference, same error... >> > >> > I really appreciate ANY help from you guys! >> > >> > Thanks! >> > Thiago >> > >> > On 18 January 2013 18:40, Martinx - ジェームズ <thiagocmarti...@gmail.com> >> wrote: >> > >> > > Hi! >> > > >> > > I'm trying Open vSwitch after much delay... Can't use brctl >> anymore... >> > > =P >> > > >> > > I have Ubuntu 12.04 64 bits, Open vSwitch 1.4.0+build0, with Ubuntu >> > > Cloud Archives >> > > <https://wiki.ubuntu.com/ServerTeam/CloudArchive>repository >> enabled... Which provides libvirt 0.9.13 for Ubuntu 12.04 LTS. >> > > >> > > What I'm doing? >> > > >> > > ovs-vsctl add-br ovsbr0 >> > > ovs-vsctl add-port ovsbr0 eth0 >> > > ovs-vsctl add-port ovsbr0 ovsbr0p1 -- set interface ovsbr0p1 >> type=internal >> > > >> > > My /etc/network/interfaces have: >> > > --- >> > > # The primary network interface >> > > auto eth0 >> > > iface eth0 inet manual >> > > up ifconfig $IFACE 0.0.0.0 up >> > > down ifconfig $IFACE down >> > > >> > > auto ovsbr0p1 >> > > iface ovsbr0p1 inet static >> > > address 10.32.14.2 >> > > netmask 24 >> > > --- >> > > >> > > But when open virt-manager, I can't select the ovsbr0p1 (or >> ovsbr0)... >> > > They are "unselectable" (gray)... >> > > >> > > What am I missing? >> > > >> > > I followed this guide to help me: >> > > >> http://blog.allanglesit.com/2012/10/linux-kvm-ubuntu-12-10-with-openvswitch/ >> > > >> > > When I tried to manually select the ovsbr0 or ovsbr0p1, virt-manager >> > > returns: >> > > >> > > ------ >> > > Traceback (most recent call last): >> > > File “/usr/share/virt-manager/virtManager/asyncjob.py”, line 45, in >> > > cb_wrapper >> > > callback(asyncjob, *args, **kwargs) >> > > File “/usr/share/virt-manager/virtManager/create.py”, line 1909, in >> > > do_install >> > > guest.start_install(False, meter=meter) >> > > File “/usr/lib/python2.7/dist-packages/virtinst/Guest.py”, line 1236, >> in >> > > start_install >> > > noboot) >> > > File “/usr/lib/python2.7/dist-packages/virtinst/Guest.py”, line 1304, >> in >> > > _create_guest >> > > dom = self.conn.createLinux(start_xml or final_xml, 0) >> > > File “/usr/lib/python2.7/dist-packages/libvirt.py”, line 2501, in >> > > createLinux >> > > if ret is None:raise libvirtError(‘virDomainCreateLinux() failed’, >> > > conn=self) >> > > libvirtError: Unable to add bridge ovsbr0p1 port vnet0: Operation not >> > > supported >> > > ------ >> > > >> > > I do not have openvswitch-brcompat installed. And I don't think I >> need it. >> > > >> > > Thanks! >> > > Thiago >> > > >> >> > _______________________________________________ >> > discuss mailing list >> > discuss@openvswitch.org >> > http://openvswitch.org/mailman/listinfo/discuss >> >> >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss