ok first things first, i think ill remove the cw becuase idfk
So this is how i want to do this:
So far i have managed to setup an IPVTAP on my wireless interface and it works onlye one way: can ping devices on my LAN but they can't ping the virtual machine itself; it just doesn't expose the ports on the ip
i am indeed that fucking stupid holy shit.
Ok so it now works and with internet access too! with the exception of my host pc, i can't ping my router form my host no more and ports are still not working on the host and honestly im not gonna bother, im probably going to route ssh through a unix socket and be done with it.
I also stopped using dhcpcd because i'm to lazy to sync the vm ip and the host ipvtap ip
ok, day 2.
I'm going to mess with the vm a bit more and then i'm going to study for finals.
ok i gave up with the unix socket and tried to fix communicationg host-guest but came across this [superuser.com] which explains that macvtap and ipvtap just don't allow host-guest communication by nature so I'll need to user another interface to communicate with the vm which actually comes in pretty handy for testing dns resolution with pihole for requests on different interfaces
finally have time for this again
got the interface for host-vm communication up and running with the libvirt nat bridge, i mean i have it at hand why not use it? (this totally wont come back to torment me).
Weird thing is that by using -netdev bridge...
qemu doesn't assign an ip to the tap in the host and idk if it is a requirement cuz i did setup the ipvtap interface with an ip on the host and an ip on the vm.
Idk how qemu sets up the tap interface behind scenes, maybe because of iptables shenanigans and the NAT thing
Can someone explain how it works? I guess not having an IP on the host tap interface makes more sense than having one
anyways it works
im not messing with it more
but it does feel little bloated to have an IP on the host
Just had the worst experience so far making this work.
So i forgot to mention that i am doing this with a LUKS encrypted rootfs and obyusly i need to unlock it first before i had an ssh connection.
I tried doing this with TPM 2 and long story short: don't
So I'm just gonna use this [github.com] and be done with it.
Tomorrow i will finally be able to do the thing this whole vm was for in the first place: to test Fedora Server so i know if i want to migrate to it on my main server
ok so testing alpine now and gotta say so far it has been less of a hassle with the whole networking thing and the APK package manager is rapidly becoming one of my favorites, straight to the point, understandable options (except for the 'add' one that installs packages imo just call it install).
@CivilizedGuide The image shows a terminal window displaying network scan results. The top section shows Nmap scan results indicating one IP address (192.168.122.2) is up, with latency of 3 seconds. It also lists open ports 22 (ssh) and 9090 (zeus-admin), along with many filtered ports. The scan took 81.33 seconds. The bottom section shows network interface information for interfaces "wlp0s20f3" and "tap0", including IP addresses, MAC addresses, and other network configuration details. Timestamps are visible in both sections.
Provided by @altbot, generated using Gemini