* Fwd: Virtual Guest MAC-Address Isolation [not found] <781002149.12201281192436442.JavaMail.root@mail> @ 2010-08-07 14:51 ` Robert Rebstock 0 siblings, 0 replies; 4+ messages in thread From: Robert Rebstock @ 2010-08-07 14:51 UTC (permalink / raw) To: kvm, qemu-devel, vde-users (Partially reposted (again); I had yet another error. Sorry for the noise.) Hello all, can anyone recommend a better way to achive (guest agnostic) MAC-address isolation in qemu/kvm than with usermode/slirp networking? It's too slow. I have multiple guests on the same host, all requiring identical MAC-addresses. My current debian setup is as follows: /etc/network/interfaces: auto lo iface lo inet loopback auto br0 iface br0 inet static address 192.168.0.1 netmask 255.255.255.0 gateway 192.168.0.254 metric 1 bridge_ports eth0 eth1 bridge_stp off bridge_fd 0 bridge_maxwait 0 post-up echo 600 > /proc/sys/net/ipv4/tcp_keepalive_time post-up echo 50 > /proc/sys/net/ipv4/tcp_keepalive_probes post-up echo 10 > /proc/sys/net/ipv4/tcp_keepalive_intvl auto natbr0 iface natbr0 inet static address 10.0.2.2 netmask 255.255.255.0 metric 1 bridge_ports dummy0 bridge_stp off bridge_fd 0 bridge_maxwait 0 pre-up modprobe ip_conntrack_tftp pre-up modprobe ip_conntrack_ftp pre-up modprobe ip_nat_tftp pre-up modprobe ip_nat_ftp up echo "`route -n | sed -n 's/^0\.0\.0\.0 .* \(.*\)$/\1/p'`" > /var/run/${IFACE}_route up /usr/sbin/dnsmasq --interface=${IFACE} --except-interface=lo --bind-interfaces --user=nobody \ --dhcp-range=natbr0,10.0.2.15,10.0.2.15,255.255.255.0,10.0.2.255,72h \ --domain=localnet --pid-file=/var/run/${IFACE}_dnsmasq.pid --conf-file up echo 1 > /proc/sys/net/ipv4/ip_forward up iptables -A FORWARD -s 10.0.2.0/24 -j ACCEPT up iptables -A FORWARD -d 10.0.2.0/24 -j ACCEPT post-up iptables -t nat -A POSTROUTING -o natbr0 -j MASQUERADE post-up echo 600 > /proc/sys/net/ipv4/tcp_keepalive_time post-up echo 50 > /proc/sys/net/ipv4/tcp_keepalive_probes post-up echo 10 > /proc/sys/net/ipv4/tcp_keepalive_intvl down iptables -D FORWARD -s 10.0.2.0/24 -j ACCEPT down iptables -D FORWARD -d 10.0.2.0/24 -j ACCEPT down iptables -t nat -D POSTROUTING -o natbr0 -j MASQUERADE post-down kill -s TERM `cat /var/run/${IFACE}_dnsmasq.pid` && rm -f /var/run/${IFACE}_dnsmasq.pid post-down rm -f /var/run/${IFACE}_route where my "server boxes" are connected as: /etc/qemu-kvm/qemu-ifup-br: #!/bin/sh BRIDGE=br0 /sbin/ifconfig $1 0.0.0.0 up /usr/sbin/brctl addif $BRIDGE $1 if they need full connectivity, or as: /etc/qemu-kvm/qemu-ifup-natbr: #!/bin/sh BRIDGE=natbr0 /sbin/ifconfig $1 0.0.0.0 up /usr/sbin/brctl addif $BRIDGE $1 /sbin/iptables -t nat -A POSTROUTING -o "`route -n | sed -n 's/^0\.0\.0\.0 .* \(.*\)$/\1/p'`" -j MASQUERADE || : "hidden" behind NAT. Only my "client boxes" (multiple virtual client boxes on the same server - currently setup using usermode networking) need identical MACs. They don't need to "talk" to one another, but they do need to be able to talk to the servers and the "outside world". I'm hoping that maybe someone that's a little more "network savvy" can give me a tip in the right direction. vlans, ebtables, iptables, ppp, funky NAT setups, etc... Thanks, and best regards, Robert PS. Please BCC me, as I am not on the list. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] Fwd: Virtual Guest MAC-Address Isolation @ 2010-08-07 14:51 ` Robert Rebstock 0 siblings, 0 replies; 4+ messages in thread From: Robert Rebstock @ 2010-08-07 14:51 UTC (permalink / raw) To: kvm, qemu-devel, vde-users (Partially reposted (again); I had yet another error. Sorry for the noise.) Hello all, can anyone recommend a better way to achive (guest agnostic) MAC-address isolation in qemu/kvm than with usermode/slirp networking? It's too slow. I have multiple guests on the same host, all requiring identical MAC-addresses. My current debian setup is as follows: /etc/network/interfaces: auto lo iface lo inet loopback auto br0 iface br0 inet static address 192.168.0.1 netmask 255.255.255.0 gateway 192.168.0.254 metric 1 bridge_ports eth0 eth1 bridge_stp off bridge_fd 0 bridge_maxwait 0 post-up echo 600 > /proc/sys/net/ipv4/tcp_keepalive_time post-up echo 50 > /proc/sys/net/ipv4/tcp_keepalive_probes post-up echo 10 > /proc/sys/net/ipv4/tcp_keepalive_intvl auto natbr0 iface natbr0 inet static address 10.0.2.2 netmask 255.255.255.0 metric 1 bridge_ports dummy0 bridge_stp off bridge_fd 0 bridge_maxwait 0 pre-up modprobe ip_conntrack_tftp pre-up modprobe ip_conntrack_ftp pre-up modprobe ip_nat_tftp pre-up modprobe ip_nat_ftp up echo "`route -n | sed -n 's/^0\.0\.0\.0 .* \(.*\)$/\1/p'`" > /var/run/${IFACE}_route up /usr/sbin/dnsmasq --interface=${IFACE} --except-interface=lo --bind-interfaces --user=nobody \ --dhcp-range=natbr0,10.0.2.15,10.0.2.15,255.255.255.0,10.0.2.255,72h \ --domain=localnet --pid-file=/var/run/${IFACE}_dnsmasq.pid --conf-file up echo 1 > /proc/sys/net/ipv4/ip_forward up iptables -A FORWARD -s 10.0.2.0/24 -j ACCEPT up iptables -A FORWARD -d 10.0.2.0/24 -j ACCEPT post-up iptables -t nat -A POSTROUTING -o natbr0 -j MASQUERADE post-up echo 600 > /proc/sys/net/ipv4/tcp_keepalive_time post-up echo 50 > /proc/sys/net/ipv4/tcp_keepalive_probes post-up echo 10 > /proc/sys/net/ipv4/tcp_keepalive_intvl down iptables -D FORWARD -s 10.0.2.0/24 -j ACCEPT down iptables -D FORWARD -d 10.0.2.0/24 -j ACCEPT down iptables -t nat -D POSTROUTING -o natbr0 -j MASQUERADE post-down kill -s TERM `cat /var/run/${IFACE}_dnsmasq.pid` && rm -f /var/run/${IFACE}_dnsmasq.pid post-down rm -f /var/run/${IFACE}_route where my "server boxes" are connected as: /etc/qemu-kvm/qemu-ifup-br: #!/bin/sh BRIDGE=br0 /sbin/ifconfig $1 0.0.0.0 up /usr/sbin/brctl addif $BRIDGE $1 if they need full connectivity, or as: /etc/qemu-kvm/qemu-ifup-natbr: #!/bin/sh BRIDGE=natbr0 /sbin/ifconfig $1 0.0.0.0 up /usr/sbin/brctl addif $BRIDGE $1 /sbin/iptables -t nat -A POSTROUTING -o "`route -n | sed -n 's/^0\.0\.0\.0 .* \(.*\)$/\1/p'`" -j MASQUERADE || : "hidden" behind NAT. Only my "client boxes" (multiple virtual client boxes on the same server - currently setup using usermode networking) need identical MACs. They don't need to "talk" to one another, but they do need to be able to talk to the servers and the "outside world". I'm hoping that maybe someone that's a little more "network savvy" can give me a tip in the right direction. vlans, ebtables, iptables, ppp, funky NAT setups, etc... Thanks, and best regards, Robert PS. Please BCC me, as I am not on the list. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Question about using multiple Qemu emulation devices/NICs at one time 2010-08-07 14:51 ` [Qemu-devel] " Robert Rebstock @ 2010-08-19 0:33 ` Anjali Kulkarni -1 siblings, 0 replies; 4+ messages in thread From: Anjali Kulkarni @ 2010-08-19 0:33 UTC (permalink / raw) To: kvm@vger.kernel.org, qemu-devel@nongnu.org Hi, Has anyone tried to use many Qemu devices/NICs at one time with the same guest? Ie let the guest think it has say 3 or 4 virtual NICs? I see that after about 2, it seems to be a little unstable - I got a em0 watchdog timeout once. So, I wanted to know is there any known issue with having more than 2 emulated devices at one time? Has anyone used many, and what's the max that anyone has used with stability? Anjali ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] Question about using multiple Qemu emulation devices/NICs at one time @ 2010-08-19 0:33 ` Anjali Kulkarni 0 siblings, 0 replies; 4+ messages in thread From: Anjali Kulkarni @ 2010-08-19 0:33 UTC (permalink / raw) To: kvm@vger.kernel.org, qemu-devel@nongnu.org Hi, Has anyone tried to use many Qemu devices/NICs at one time with the same guest? Ie let the guest think it has say 3 or 4 virtual NICs? I see that after about 2, it seems to be a little unstable - I got a em0 watchdog timeout once. So, I wanted to know is there any known issue with having more than 2 emulated devices at one time? Has anyone used many, and what's the max that anyone has used with stability? Anjali ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-08-19 0:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <781002149.12201281192436442.JavaMail.root@mail>
2010-08-07 14:51 ` Fwd: Virtual Guest MAC-Address Isolation Robert Rebstock
2010-08-07 14:51 ` [Qemu-devel] " Robert Rebstock
2010-08-19 0:33 ` Question about using multiple Qemu emulation devices/NICs at one time Anjali Kulkarni
2010-08-19 0:33 ` [Qemu-devel] " Anjali Kulkarni
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.