KVM guest DNS 查詢問題

之前在KVM 用了很久一段時間都沒有什麼問題,這幾天遇上了一個怪事,就是 Hypervisor 上網都正常,但 Guest VM 中可以Ping 內網及公網 IP, 但就是無法解析名稱,之前一開始還懷疑宿舍網路有問題,但沒有道理這幾天才這樣,也懷欵自己是不是遇上了什麼奇怪的封網行動(內地國慶節的特性),找了一個下午終於找到了原因及解法,記錄一下.

解法:

# cat >> /etc/sysctl.conf <<EOF
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
EOF
# sysctl -p /etc/sysctl.conf

參考來源:
https://wiki.libvirt.org/page/Networking
https://www.centos.org/forums/viewtopic.php?t=26562

 

Author: jerryw1974

learning and focus on computer science, cloud infrastructure, virtualization and information security, technical, networking,platform system and cyber-security related topic.