Hello Fuhui,
As far as I've read in the virsh man page, `virsh net-define` and `virsh
net-create` have similar functionality.
After you use the `virsh net-define ovs_nat.xml` the ovs_nat network is
created and connected to ovsbr0. Then when you use the `virsh net-create
ovs_nat.xml` you basically tell libvirt to create a new network with the
exact same name and identifier to add to ovsbr0 (although you already
have it).
IMO try using only `virsh net-define` and then `virsh net-start ovs_nat`
since the define creates a persistent network but doesn't start it.
Have a nice day,
Andrei
On 09/09/2013 08:48 AM, Fuhui Li wrote:
Foget that, I have resolved it, but another question happened: when I
use ovs-vsctl create ovsbr0,
[root@Mic ovs]# ovs-vsctl show
0a6f41ed-415a-4868-a41a-592145adb1c7
Bridge "ovsbr0"
Port "ovsbr0"
Interface "ovsbr0"
type: internal
and then I want to use this network by virsh, error happens as below:
[root@Mic ovs]# virsh net-define /etc/libvirt/qemu/networks/ovs_nat.xml
Network ovs_nat defined from /etc/libvirt/qemu/networks/ovs_nat.xml
[root@Mic ovs]# virsh net-create /etc/libvirt/qemu/networks/ovs_nat.xml
error: Failed to create network from
/etc/libvirt/qemu/networks/ovs_nat.xml
error: internal error Network is already in use by interface ovsbr0
The content of ovs_nat.xml is:
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made
using:
virsh net-edit ovs_nat
or other application using the libvirt API.
-->
<network>
<name>ovs_nat</name>
<uuid>0a6f41ed-415a-4868-a41a-592145adb1c7</uuid>
<forward mode='nat'/>
<bridge name='ovsbr0' stp='on' delay='0' />
<ip address='192.168.100.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.100.2' end='192.168.100.254' />
</dhcp>
</ip>
<virtualport type='openvswitch'/>
</network>
Hope your response. Thanks a lot.
On Fri, Sep 6, 2013 at 3:12 PM, Fuhui Li <gdbless...@gmail.com
<mailto:gdbless...@gmail.com>> wrote:
Hi ovs members, I got this issue below, may you give me some tips
to resolve this ?
Thanks a lot.
[root@Mic ~]# ovs-vswitchd --pidfile --detach
2013-09-06T06:51:55Z|00001|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
connecting...
2013-09-06T06:51:55Z|00002|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
connected
2013-09-06T06:51:55Z|00003|ovsdb_idl|WARN|syntax
"{"details":"ipfix is not a valid column name","error":"syntax
error","syntax":"[\"controller\",\"datapath_id\",\"datapath_type\",\"fail_mode\",\"flood_vlans\",\"flow_tables\",\"ipfix\",\"mirrors\",\"name\",\"netflow\",\"other_config\",\"ports\",\"protocols\",\"sflow\",\"status\",\"stp_enable\"]"}":
syntax error: <table-updates> includes unknown table "error"
my env:
[root@Mic ovs]# uname -r
2.6.32-131.0.15.el6.x86_64
[root@Mic ovs]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)
[root@Mic ovs]# libvirtd -v
2013-09-06 07:04:25.316+0000: 3484: info : libvirt version: 0.10.2
[root@Mic ovs]# ovs-vsctl --version
ovs-vsctl (Open vSwitch) 2.0.90
Compiled Sep 5 2013 16:24:36
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss
--
Andrei Andone
SOFTVISION | 57 Republicii Street, 400489 Cluj-Napoca, Romania
Email: andrei.and...@softvision.ro <mailto:andrei.and...@softvision.ro>
| Web: www.softvision.ro <http://www.softvision.ro>
The content of this communication is classified as SOFTVISION
Confidential and Proprietary Information.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss