Fedora Server 28
Get everything up to date
Install VIM (because that's how it goes)
Add user to kvm and libvirt groups
Ensure VM store is accessible to the libvirt group
chmod g+w /vm
Add remote user SSH keys to authorized_keys
Enable IOMMU
sudo grubby --args="intel_iommu=on" --update-kernel /boot/vmlinuz-4.16.6-302.fc28.x86_64
Create VM
Use OpenWRT 18.06.0
Configure network
eth0 is attached to the bridge. Later, all other physical interfaces except WAN will be as well. Configure the bridge to use 10.0.0.1
eth1 or whatever is "WAN" and set to use DHCP
On the host:
$ sudo virsh net-edit <network>
<network ipv6='yes'> <name>vmnet</name> <uuid>56273237-b81e-4385-a559-4956722dbf9a</uuid> <bridge name='virbr0' stp='on' delay='0'/> <mac address='52:54:00:3f:57:6b'/> <domain name='vmnet'/> <ip address='10.0.0.2' netmask='255.255.255.0'> </ip> </network>
<network ipv6='yes'>
<name>vmnet</name>
<uuid>56273237-b81e-4385-a559-4956722dbf9a</uuid>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:3f:57:6b'/>
<domain name='vmnet'/>
<ip address='10.0.0.2' netmask='255.255.255.0'>
</ip>
</network>
$ sudo virsh net-destroy <network> $ sudo virsh net-start <network>
$ sudo virsh net-destroy <network>
$ sudo virsh net-start <network>
You may need to restart the VM to make KVM happy.
There was an error while loading. Please reload this page.