Please find the latest version of these slides at:
gnt-network?
gnt-network supportsnf-network + nfdhcpdgnt-networkNIC configuration
mode=bridged. brctl addif only? firewall?Management
gnt-network: Who does what?masterd: config.data integrity
external scripts and hooks: ping vm1.ganeti.example.com
nodedbrctl, iptables, ebtables, ip rule, etc.dhclient, etc.)gnt-network + external scriptsgnt-network alone is nothing more than a nice config.datasnf-network: node level scripts and hooksnfdhcpd: node level DHCP server based on NFQUEUEkvm-ifup, vif-ganeti)nfdhcpd binding filesinotify on specific directory for binding filesgnt-networkCreate and connect a new network
gnt-network add --network 192.168.1.0/24 --gateway 192.168.1.1 --tags nfdhcpd net1 gnt-network connect net1 bridged prv0
Create an instance inside this network
gnt-instance add --net 0:ip=pool,network=net1 ... inst1 gnt-instance info inst1 gnt-network info net1
gnt-network + snf-*Use snf-network and nfdhcdpd
apt-get install snf-network nfdhcdpd iptables -t mangle -A PREROUTING -i prv+ -p udp -m udp --dport 67 \ -j NFQUEUE --queue-num 42 ip addr add 192.168.1.1/24 dev prv0
Test connectivity
gnt-instance reboot inst1 ping 192.168.1.2
