Need to migrate from VirtualBox to virt-manager/KVM. Was able to install virt-manager, convert and boot some VDIs, but have been unable to make networking work in the VM.
Many of the network types available in virt-manager seem to require iptables (despite documentation saying it can also work with firewalld and firewalld being installed and active). However, this system intentionally does not have any iptables binary installed, because my nftables-based firewall contains some rules that are incompatible with iptables. (If I understand correctly, firewalld sets up nftables rules that work alongside and after my main nftables firewall.)
Host system is Xubuntu 22.04. Several guest types are involved, but at the moment I'm trying to make networking work on a Xubuntu 22.04 guest.
With Bridge or Macvtap, the VM at least boots, but in neither case can I get networking working - NetworkManager in the guest just continuously tries and fails to connect.
For Bridge I'm using nm-connection-editor to set up the bridge interface, and tried several different configurations. In case it's relevant, the host gets networking via Wi-Fi.
Would like to achieve the effects of 3 networking types from VirtualBox:
How to get these types of networking in virt-manager without having any iptables binary present on the system?
Thanks for any help.
Many of the network types available in virt-manager seem to require iptables (despite documentation saying it can also work with firewalld and firewalld being installed and active). However, this system intentionally does not have any iptables binary installed, because my nftables-based firewall contains some rules that are incompatible with iptables. (If I understand correctly, firewalld sets up nftables rules that work alongside and after my main nftables firewall.)
Host system is Xubuntu 22.04. Several guest types are involved, but at the moment I'm trying to make networking work on a Xubuntu 22.04 guest.
With Bridge or Macvtap, the VM at least boots, but in neither case can I get networking working - NetworkManager in the guest just continuously tries and fails to connect.
For Bridge I'm using nm-connection-editor to set up the bridge interface, and tried several different configurations. In case it's relevant, the host gets networking via Wi-Fi.
Would like to achieve the effects of 3 networking types from VirtualBox:
- NAT: for Internet access with traffic to/from the VM filtered by the host's firewall,
- Bridged: for when the VM should act as another physical machine on the same network as the host, without the host's firewall applying to the VM's traffic,
- Host-only networking: for cases where networking is needed to connect to something on the host or another VM, but where allowing Internet access would be unsafe.
How to get these types of networking in virt-manager without having any iptables binary present on the system?
Thanks for any help.