On Sun, Dec 7, 2014 at 6:17 PM, Dmitry Antipov <dmanti...@yandex.ru> wrote:
> (This question may be not quite acceptable for this list - I'm not sure 
> whether
> this is VDE or QEMU issue, and sorry for possible inconveniences).
>
> I'm using QEMU 2.1.1 to emulate SPARC system and have vde network between two
> VMs and host system, organized as shown:
>
>                host
>                tap0
>          + 192.168.100.254 +
>          |                 |
>          |                 |
>          vm0               vm1
>          eth0              eth0
>      192.168.100.1 --- 192.168.100.2
>
> On host, I'm running vde_switch and extra stuff as:
>
> vde_switch -tap tap0 -daemon -mod 660 -group [group]
> ip addr add 192.168.100.254/24 dev tap0
> ip link set tap0 up
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o [external network 
> iface] -j MASQUERADE
>
> VMs are running with:
>
> qemu-system-sparc -m 256 -net nic -net vde -hda vm0.img
> qemu-system-sparc -m 256 -net nic -net vde -hda vm1.img
>
> Everything looks good, but...
>
> ...the problem: I need to build redundant network by using the same method, 
> i.e.
> improve the network shown above with:
>
>                host
>                tap1
>          + 192.168.101.254 +
>          |                 |
>          |                 |
>          vm0               vm1
>          eth1              eth1
>      192.168.101.1 --- 192.168.101.2
>
> I'm trying to run two vde switches:
>
> vde_switch -sock /tmp/vde0 -tap tap0 -daemon -mod 660 -group [group]
> vde_switch -sock /tmp/vde1 -tap tap1 -daemon -mod 660 -group [group]
>
> and run VMs with:
>
> qemu-system-sparc -m 256 -net nic,vlan=1 -net vde,sock=/tmp/vde0,vlan=1 -net 
> nic,vlan=2 -net vde,sock=/tmp/vde1,vlan=2 -hda vm0.img
>

Hello Dmitry,

here are parameters I used to use. I'm sorry, but you will have to
fill in the blanks. Also, dropping some parameters is possible, I'm
sure.

" -netdev vde,id=hostnet0,sock=%s%s \
-device %s,netdev=hostnet0,id=net%i,mac=%s,multifunction=on%s" \
"$br" "$br_opt" "$net_model" "$i" "$net_mac" "$net_opt"

I can look those up if necessary, though.

I believe the reason is you're using old/wrong parameters there or missing some.

Z.

--
Zdenek Styblik
email: zdenek.styb...@gmail.com
jabber: zdenek.styb...@gmail.com




> but the result is:
>
> Warning: hub port hub2port0 has no peer
> Warning: lan 2 with no nics
> Warning: netdev hub2port0 has no peer
> Warning: requested NIC (anonymous, model unspecified) was not created (not 
> supported by this machine?)
>
> Is it possible to build redundant network as described above?
>
> Thanks in advance,
> Dmitry
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> vde-users mailing list
> vde-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vde-users

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
vde-users mailing list
vde-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vde-users

Reply via email to