Hi Justin and Oliver, Thanks a lot for the responses. I have a constraint of using Virtualbox, but the procedure looks similar for both Virtualbox and qemu. So, should work fine.
Thanks On Tue, Jun 12, 2012 at 1:13 AM, Oliver Francke <[email protected]>wrote: > Hi, > > perhaps I can drop in my couple of line, how I setup a VM with qemu-kvm: > ( most things I try to do in userland, need a couple of sudo's, though) > > Following is called before qemu-kvm is started ( called via pre_if.sh): > > IF=<argv[0]> > sudo /sbin/ip tuntap add dev ${IF} mode tap user fcms > > then, the same script is called from qemu itself, and does the following ( > add_if_sh): > > BRIDGE=<bridge-name> > VTAG=<vlantag> > sudo /sbin/ifconfig ${IF} 0.0.0.0 promisc up > sudo /usr/local/bin/ovs-vsctl add-port ${BRIDGE} ${IF} ${VTAG} > other_config:stp-enable=false > > and same script called via "downscript.sh" to deconfigure port: > > sudo /sbin/ip tuntap del dev ${IF} mode tap > sudo /sbin/ifconfig ${IF} down > sudo /usr/local/bin/ovs-vsctl del-port ${IF} > > qemu is called for network-setup similar to the following: > > qemu-system-x86_64 -enable-kvm <...a couple of thousands of parameters...> > -device rtl8139,mac=00:F1:70:00:37:00,**netdev=vlan0d0 -netdev > type=tap,id=vlan0d0,ifname=**tap101i0d0,script=/etc/fcms/** > add_if.sh,downscript=/etc/**fcms/downscript.sh <...even more > parameters...> > > Hope it helps ;) > > Oliver. > > > On 06/12/2012 08:05 AM, Justin Pettit wrote: > >> On Jun 11, 2012, at 4:30 PM, Abhishek Chanda wrote: >> >> I am trying to setup a topology similar to the one explained here: >>> http://openvswitch.org/**support/config-cookbooks/vlan-** >>> configuration-cookbook/<http://openvswitch.org/support/config-cookbooks/vlan-configuration-cookbook/> >>> The only difference being, for me, all VMs are in one VLAN. Once I have >>> booted the VMs, I do not see the TAP devices. So, do I have to create a TAP >>> device on the host manually and connect all VMs on that host to the device >>> (instead of the network card)? >>> >> How you get devices into the VM is really specific to your hypervisor and >> not specific to Open vSwitch. I don't run VirtualBox, but that approach >> sounds reasonable to me. In fact, here's a blog describing how to >> configure OVS with VirtualBox >> >> http://golanzakai.blogspot.**com/2012/01/openvswitch-with-** >> virtualbox.html<http://golanzakai.blogspot.com/2012/01/openvswitch-with-virtualbox.html> >> >> --Justin >> >> >> ______________________________**_________________ >> discuss mailing list >> [email protected] >> http://openvswitch.org/**mailman/listinfo/discuss<http://openvswitch.org/mailman/listinfo/discuss> >> > > > -- > > Oliver Francke > > filoo GmbH > Moltkestraße 25a > 33330 Gütersloh > HRB4355 AG Gütersloh > > Geschäftsführer: S.Grewing | J.Rehpöhler | C.Kunz > > Folgen Sie uns auf Twitter: http://twitter.com/filoogmbh > > ______________________________**_________________ > discuss mailing list > [email protected] > http://openvswitch.org/**mailman/listinfo/discuss<http://openvswitch.org/mailman/listinfo/discuss> >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
