Skip to content

KVM Virtualized Router

Will edited this page May 14, 2018 · 9 revisions

Fedora Server 28

  1. Get everything up to date

  2. Install VIM (because that's how it goes)

  3. Add user to kvm and libvirt groups

  4. Ensure VM store is accessible to the libvirt group

    • chmod g+w /vm
  5. Add remote user SSH keys to authorized_keys

  6. Enable IOMMU

    • sudo grubby --args="intel_iommu=on" --update-kernel /boot/vmlinuz-4.16.6-302.fc28.x86_64
  7. Create VM

  8. Configure br-lan in VM to 10.0.0.1 (this is your gateway to the world)

  9. Route ETH1 from host into VM

  10. Configure eth1 in VM to use DHCP (this is your WAN port)

  11. Confirm the following:

    • Within the VM, ping from 10.0.0.1 to 192.168.1.1 (because you're doing all the setup behind your existing firewall, right?)
    • Within the VM, ping 10
  12. Via virsh

Clone this wiki locally