Set up "host-only" networking with virt-manager / QEMU/KVM

Hello

I am trying to set up a virtual machine that is only accessible from the host.

I have possibly tried every single guide that involved creating a bridge network but none of them worked. Whatever I do, I cannot access my vm from he host and I have already sunk countless hours into trying to get this to work.

At his point im out of ideas.

Does anyone know how to do this?
I would appreciate any help.

And just as I post this I get it to work.
In case anyone has the same issue, this worked for me:

When I wish to do that type networking I create the VM using bridged networking and use the virbr0 default bridge device.
On the VM I see this with ip a

2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 52:54:00:ee:74:96 brd ff:ff:ff:ff:ff:ff
    inet 192.168.124.40/24 brd 192.168.124.255 scope global dynamic noprefixroute enp1s0
       valid_lft 3580sec preferred_lft 3580sec
    inet6 fe80::8402:10df:1993:34/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

and on the host the address for virbr0 becomes 192.168.124.1 so I can use those 2 addresses to communicate between the host and VM.

By default NAT is enabled on the host so the VM has access to the internet for updates but external machines cannot access the VM unless one adds a specific route to the gateway router. NAT can be disabled on the host as well if total isolation of the VM is preferred.

Changing the network on the vm can be done here
image
and the virbr0 device is always already configured on the host when using qemu.