[libvirt-users] openvswitch port with no ip

I used openvswitch with virt-intall I defined a network <network> <name>private</name> <bridge name='virbr0'/> <forward mode='bridge'/> <virtualport type='openvswitch'/> </network> But get no ip for the ovs port when I launch the instance. Is this correct? ci-info: +++++++++++++++++++++++++Net device info++++++++++++++++++++++++++ ci-info: +--------+------+--------------+-------------+-------------------+ ci-info: | Device | Up | Address | Mask | Hw-Address | ci-info: +--------+------+--------------+-------------+-------------------+ ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | ci-info: | eth1 | True | . | . | 52:54:00:24:16:29 | ci-info: | eth0 | True | 172.16.5.136 | 255.255.0.0 | 52:54:00:44:01:28 | In the bridge port vnet1 get assigned to virbr0 Bridge "virbr0" Port "virbr0" Interface "virbr0" type: internal Port "vnet1" Interface "vnet1" And i launch the instance the following way virt-install --name probe9 --ram 4096 --vcpus=4 --check-cpu --os-type=linux --import --disk /data/KVM/Probe2-cloud3.qcow2,format=qcow2 --network network=ext --network network=private --graphics vnc,listen=0.0.0.0 --noautoconsole --disk vol=default/configuration2.iso,bus=virtio Regards

On 01/21/2015 12:38 PM, Yaron Illouz wrote:
I used openvswitch with virt-intall
I defined a network
<network>
<name>private</name>
<bridge name='virbr0'/>
<forward mode='bridge'/>
<virtualport type='openvswitch'/>
</network>
But get no ip for the ovs port when I launch the instance. Is this correct?
ci-info: +++++++++++++++++++++++++Net device info++++++++++++++++++++++++++
ci-info: +--------+------+--------------+-------------+-------------------+
ci-info: | Device | Up | Address | Mask | Hw-Address |
ci-info: +--------+------+--------------+-------------+-------------------+
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . |
ci-info: | eth1 | True | . | . | 52:54:00:24:16:29 |
ci-info: | eth0 | True | 172.16.5.136 | 255.255.0.0 | 52:54:00:44:01:28 |
In the bridge port vnet1 get assigned to virbr0
Bridge "virbr0"
Port "virbr0"
Interface "virbr0"
type: internal
Port "vnet1"
Interface "vnet1"
Are you certain you have a dhcp server that is listening on the network segment connected to your ovs bridge named "virbr0"? (note that you must have created that bridge outside of libvirt, as a libvirt network can only reference an already-existing OVS bridge; it doesn't know how to create them. It also won't run a dhcp server for an ovs bridge, you'll have to do that separately too).
participants (2)
-
Laine Stump
-
Yaron Illouz