Skip to content

rodolfoalmeid/QEMU-KVM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

QEMU-KVM

Configuring Bridge using Network Manager

https://www.youtube.com/watch?v=amTJHm19ts0

sudo nm-connection-editor 

Ubuntu Firewall Blocking KVM Netowrk

The technique to use to make this work on 22.04 was to edit /etc/ufw/sysctl.conf to have:

Don't filter packets to our libvirt guests

net.bridge.bridge-nf-call-ip6tables = 0

net.bridge.bridge-nf-call-iptables = 0

net.bridge.bridge-nf-call-arptables = 0

The problem is on later releases of Ubuntu these are not available until the 'bridge' module is loaded. ufw startup happens extremely early in the boot process-- intentionally before networking comes up. If the bridge module is loaded after ufw starts, it set the sysctl values to its default values-- ie, all '1', which breaks libvirt.

DHCP issue on VMs

WHen running VMs on KVM, VMs were getting IP 169.254.x.x, which means that DCHP is not working.

The commands bellow will permit DHCP to forward packets to VMs running on KVM.

sudo sysctl -w "net.ipv4.ip_forward=1"
sudo iptables -P FORWARD ACCEPT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published