[ovs-discuss] Installing VM on KVM hypervisor in Ubuntu 14.04 with OVS bridge

Gurucharan Shetty shettyg at nicira.com
Mon Oct 5 17:11:45 UTC 2015


All of your output looks correct. The next thing to do is to show your
entire vm xml file. Also, ovs runs as root. So your need to start your
vm as a root.

On Mon, Oct 5, 2015 at 9:56 AM, Ramana Reddy <gtvrreddy at gmail.com> wrote:
>
>
> On Mon, Oct 5, 2015 at 9:38 PM, Gurucharan Shetty <shettyg at nicira.com>
> wrote:
>>
>> On Mon, Oct 5, 2015 at 1:03 AM, Ramana Reddy <gtvrreddy at gmail.com> wrote:
>> > Hi all,
>> >
>> > I installed a VM in NAT mode using virt-manager and edited the xml file
>> > as
>> > per the
>> > instructions  given in this link:
>> >
>> >
>> > http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.Libvirt;hb=HEAD
>> >
>> > Basically It tells the following modofications:
>> >
>> > And change it to something like this:
>> >
>> >  ...
>> >  <interface type='bridge'>
>> >   <mac address='52:54:00:71:b1:b6'/>
>> >   <source bridge='ovsbr'/>
>> >   <virtualport type='openvswitch'/>
>> >   <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
>> > function='0x0'/>
>> >  </interface>
>> >  ...
>> >
>> > After modifications, I started VM. But its throwing the errors: Unable
>> > to
>> > complete install: 'Unable to add bridge br0 port vnet0: Operation not
>> > supported'
>> >
>>
>> I suppose 'dpkg -l | grep libvirt' shows version number greater than
>> 0.9.11?
>> Also, have you already created your bridge "br0"? i.e. do you see it
>> in 'ovs-vsctl show' ?
>>
>> Do you also have ovs-vswitchd seen in 'ps -ef | grep ovs'
>
>
> Hi Gurucharan,
>
> Thanks for your reply. Here is the output:
> $dpkg -l  | grep libvirt
> ii  libvirt-bin
> 1.2.2-0ubuntu13.1.14                               amd64        programs for
> the libvirt library
> ii  libvirt0
> 1.2.2-0ubuntu13.1.14                                amd64        library for
> interfacing with different virtualization systems
> ii  libvirtodbc0                                       6.1.6+repack-0ubuntu3
> amd64        high-performance database - ODBC libraries
> ii  python-libvirt                                     1.2.2-0ubuntu2
> amd64        libvirt Python bindings
>
> Yes, I created the br0 using ovs-vsctl command.
> $sudo ovs-vsctl show
> 92d0c0b6-bbbb-4f86-aebd-ec4cc33653a3
>     Bridge "br0"
>         Port "br0"
>             Interface "br0"
>                 type: internal
>         Port "eth0"
>             Interface "eth0"
> $ps -ef | grep ovs
> root      2637  1849  0 22:11 ?        00:00:00 ovsdb-server
> --remote=punix:/usr/local/var/run/openvswitch/db.sock
> --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach
> root      2642  1849  0 22:11 ?        00:00:01 ovs-vswitchd --pidfile
> --detach
> ramanar   5743  2469  0 22:26 pts/5    00:00:00 grep --color=auto ovs
>
>
>



More information about the discuss mailing list