you just need to define the vlan in your vm network nic config.
Could you please provide us with example on how to achieve this? This is very confusing. I've been working with this for 2 days now and still can't make it work.
Here's the steps I followed.
1. Created a vSwitch Bond1 (GUI)
2. Created a vSwitch Bridge vmbr1 (GUI)
edit /etc/network/interfaces
# network interface settings
auto vlan10
iface vlan10 inet manual
vlan_raw_device bond1
auto vlan100
iface vlan100 inet manual
vlan_raw_device bond1
auto vlan125
iface vlan125 inet manual
vlan_raw_device bond1
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
iface eth1 inet manual
auto eth2
iface eth2 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
auto eth3
iface eth3 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
auto bond1
iface bond1 inet manual
slaves eth2 eth3
bond_miimon 100
bond_mode 802.3ad
bond_xmit_hash_policy layer3+4
auto vmbr0
iface vmbr0 inet static
address 192.168.125.13
netmask 255.255.255.0
gateway 192.168.125.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 192.168.100.222
netmask 255.255.255.0
broadcast 192.168.100.255
ovs_type OVSBridge
ovs_port vmbr1
ovs_extra set Bridge vmbr0 netflow
# up ifconfig $IFACE 0.0.0.0 up
# down ifconfig $IFACE down
# ifconfig
root@prox13:~# ifconfig | more
eth0 Link encap:Ethernet HWaddr 00:1b:21:3a:7d:78
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8652 errors:0 dropped:0 overruns:0 frame:0
TX packets:2345 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1825337 (1.7 MiB) TX bytes:1050979 (1.0 MiB)
Memory:e2420000-e2440000
eth2 Link encap:Ethernet HWaddr 00:15:17:27:f0:92
UP BROADCAST SLAVE MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:20 Memory:e2600000-e2620000
eth3 Link encap:Ethernet HWaddr 00:15:17:27:f0:92
UP BROADCAST SLAVE MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:e2400000-e2420000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6485 errors:0 dropped:0 overruns:0 frame:0
TX packets:6485 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:877379 (856.8 KiB) TX bytes:877379 (856.8 KiB)
vmbr0 Link encap:Ethernet HWaddr 00:1b:21:3a:7d:78
inet addr:192.168.125.13 Bcast:192.168.125.255 Mask:255.255.255.0
inet6 addr: fe80::21b:21ff:fe3a:7d78/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7965 errors:0 dropped:0 overruns:0 frame:0
TX packets:2368 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1446676 (1.3 MiB) TX bytes:1054640 (1.0 MiB)
vmbr1 Link encap:Ethernet HWaddr aa:97:37:49:c9:45
inet addr:192.168.100.222 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::a897:37ff:fe49:c945/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
root@prox13:~# ovs-appctl bond/show bond1
no such bond
ovs-appctl: ovs-vswitchd: server returned reply code 501
But still, I cannot ping the vmbr1 ip 192.168.100.222 from a remote host. I noticed that the bond1 interface is not ACTIVE. How can I fix this?