Sunday, December 19, 2021

QEMU/KVM/virt-manager guest can't access network in bridged mode with iptables

I could not access the network in a guest VM using bridged networking. To fix I had to set the following in iptables:

# iptables -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT
# ip6tables -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT

Sound stops working in Linux

If your sound stops working in linux, you may see errors about being unable to connect to ALSA, or mplayer might say "Audio device got stuck!". If you don't want to reboot, killing pulseaudio will usually do the trick:

$ pulseaudio -k