PACC Week 6 Report
This week I was working on connection between Guests that are located at different Hosts. The solution that worked was Bridged networking (“shared physical device”).
Host configuration
- Stop network manager
sudo stop network-manager
- Create two files with only the word ’exit’ in them. These files are:
/etc/default/NetworkManager /etc/default/NetworkManagerDispatcher
- Altering the interface config
- Take down the interface that will be bridged
sudo ifdown eth0
- Edit /etc/network/interfaces
iface br0 inet dhcp bridge_ports eth0 bridge_stp on bridge_maxwait 0
auto lo br0 iface lo inet loopback
- Then
sudo ifup br0
- Edit /etc/sysctl.conf
net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-arptables = 0
- Load the settings
sysctl -p /etc/sysctl.conf
- Edit /etc/rc.local
/sbin/sysctl -p /etc/sysctl.conf iptables -A FORWARD -p tcp –tcp-flags SYN,RST SYN -j TCPMSS –clamp-mss-to-pmtu exit 0
- To verify changes
tail /proc/sys/net/bridge/* iptables -L FORWARD
- Sample output
root@sst7422-20:/home/sstadmin# brctl show bridge name bridge id STP enabled interfaces br0 8000.180373447ce9 yes eth0 vnet1 virbr0 8000.fe54006bbb40 yes vnet0
Guest configuration
virsh edit
Also I tryed to forward incoming connections from Host to Guest, but it was unsuccessful. I couldn´t start VM and got 512 error message. Usefull link.