hi
I am using Ubuntu 22.04.2 LTS
and trying to install a new VM using
Code:
virt-install -n bookworm --description "VM with Debian 12 bookworm" --os-type=Linux --os-variant=debianbullseye --ram=2048 --vcpus=2 --disk path=/vol/sys/dsk/libvirt/imgs/bookworm.qcow2,bus=virtio,size=10 --graphics none --location /vol/sys/dsk/libvirt/imgs/debian-bookworm-DI-rc4-amd64-netinst.iso --extra-args console=ttyS0 --network bridge:br0
This will not find the main router on my network, and the installation can be only completed from the cdrom image. I had to setup a static address (which I set to a free address on the same LAN as my host)
After some reading I understand there is a filter clean-traffic-gateway which needs to be configured with GATEWAY_MAC, the mac of the LAN router/gateway
Code:
<interface type='bridge'>
<mac address='52:54:00:39:11:fe'/>
<source bridge='br0'/>
<model type='virtio'/>
<filterref filter='clean-traffic-gateway'>
<parameter name='GATEWAY_MAC' value='81:33:88:7b:gf:22'/>
</filterref>
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
</interface>
I restarted libvirtd and then re-loaded the VM, and it loads, and it can ping my host from inside it, but will not ping the main router...
Any information on how to do this ? I could not find much documentation on the topic, the problem is that the IPtables on the host is blocking the VM's access to the main router, and some nwfilter setting should be able to address this problem, but I cannot get it
Ghat