linux isnt immune to viruses even though its not as bad as windows
what should i do to be safe if i have a safe browser, vm, but pirate and download risky things? i know its a vm but i still dont want to have to delete everything in the vm if something happens. also the malware doesnt go to the router and spread rigt???


Depends on your VM. qemu, by default, isolates each VM on a subnet. It’s a PITA when you actually need the VM to be able to see the LAN.
It’s been a while since I’ve tested the defaults, but if your VM has internet access it would also have access to the LAN right? From the perspective of the VM it’s all the same, just sending requests to the router. Unless QEMU specifically blocks requests to LAN network ranges.