[ovs-discuss] Question about setting Open vSwitch on top of CentOS with XEN support
沒
guessi at gmail.com
Sat Jul 9 12:24:37 PDT 2011
On Sun, Jul 10, 2011 at 2:36 AM, Ben Pfaff <blp at nicira.com> wrote:
> On Sun, Jul 10, 2011 at 02:26:01AM +0800, 沒 wrote:
> > * first question *
> > if I want to make Domain-0 link to be connected, which port should I
> attach
> > to the virtual bridge... eth0? or peth0?
>
> I don't understand this question. You have one Ethernet port. Attach
> that one to vbr0. Where does the other one come from?
>
yes, I have a ethernet port named eth0 (when it is start without XEN kernel)
with XEN kernel startup, original eth0 was renamed as peth0, and comes out a
fake one "eth0"
and the "vbr0" is the name of my virtual bridge, created by the command "
ovs-vsctl add-br vbr0 "
>
>
> * second question *
> > do I need to attach "vif0.0" to the virtual bridge "vbr0"? (vif0.0 ->
> > interface of Domain0's eth0)
> > or there is no need to do so, just attach eth0 / peth0?
>
> If you want packets from vif0.0 to be able to reach eth0, and vice
> versa, then attach both of them to the same bridge.
>
so, I need to attach vifX.Y to my vbr0, and peth0 as well, am I correct?
> > * third question *
> > how can I attach "vif1.0" to "vbr0" before Domain-1 is been created?
>
> Normally you would attach vif1.0 to vbr0 after Domain-1 is created.
>
but, here is the point, (mention in Q4 reply)
how can VMM (Virtual Machine Manager) start a VM with a virtual bridge which
is created by OVS ?
> > * forth question *
> > with KVM support, INSTALL.KVM says that need to add scripts ovs-ifup /
> > ovs-ifdown,
> > then, with XEN support system, do we need to write scripts for ifup /
> ifdown
> > commands?
>
> Yes, you need to make the corresponding changes to Xen.
>
I've try many times, but I failed, VMM gave me error messages says:
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/createnet.py", line 351, in
finish
self.conn.create_network(xml)
File "/usr/share/virt-manager/virtManager/connection.py", line 743, in
create_network
net.create()
File "/usr/lib/python2.7/site-packages/libvirt.py", line 866, in create
if ret == -1: raise libvirtError ('virNetworkCreate() failed', net=self)
libvirtError: cannot create bridge 'virbr1': Package not installed
thanks for your reply
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20110710/1c80f5c9/attachment.htm>
More information about the discuss
mailing list