Skip to content

Instantly share code, notes, and snippets.

@VTacius
Last active September 9, 2021 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VTacius/1334c4eb8a5c80af9afc486a7e777b9f to your computer and use it in GitHub Desktop.
Save VTacius/1334c4eb8a5c80af9afc486a7e777b9f to your computer and use it in GitHub Desktop.
Arch Linux como servidor de virtualización con KVM usando una Interfaz Inalámbrica como bridge
pacman -S qemu virt-manager virt-viewer iptables-nft dnsmasq nftables

Los últimos tres iptables-nft dnsmasq nftables son para evitar el siguiente problemas a la hora de crear la red

error: Failed to start network default
error: internal error: Failed to initialize a valid firewall backend

El bridge debe crearse usando el siguiente archivo de configuración

<network connections='1'>
  <name>natural</name>
  <forward dev='wlp0s20f3' mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
    <interface dev='wlp0s20f3'/>
  </forward>
  <bridge name='virbr1' stp='on' delay='0'/>
  <ip address='10.168.25.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='10.168.25.10' end='10.168.25.50'/>
    </dhcp>
  </ip>
</network>

Y configurándole:

virsh net-define --file natural.xml
virsh net-autostart natural.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment