Can a VPN in a virtual machine be fully private?

Hi, i have the following questions:
1: My host computer has no VPN and i would like to keep it that way. I do want to have a virtual machine that is running a VPN for webbrowsing. Now i know some things about virtual machines. One time i was just browsing various malicious websites and downloading viruses for fun and actually got a antivirus message on my host saying it had detected a virus going through the virtual box lan. Meaning that it was most likely, actively monitoring the connection of the VM. This kind of makes me weary/wondering if i can actually use a VPN inside a virtual machine for private internet browsing, without anything leading back to my own ip address.
2: If it actually is safe though, should i use virtual box or vmware workstation?

virtual machines, especially when set up properly are extremely unlikely to result in what you described. (some form of privilege escalation to the host). I’m not hugely familiar with the ones you described, i use esxi and a virus isn’t going to infect the other virtual machines or the host unless you specifically set up a pathway for it to do so.

what you’ll likely want is some form of stateless operating system or creating some kind of template which you can restore from. esxi can do snapshots so its as simple as making a snapshot, trying whatever virus it was and then restoring to the previous state.

what you want to do is make sure that theres no networking or if there is, that its isolated within a private vlan or a different vlan / subnet / network. this should be enough to prevent communication and then you are off to the races. quite a few people do this with IOT style devices which they can’t trust.

tere is whonix workstation

It is far more likely much more private than using the vast majority of consumer VPN services. But you need to trust the VPS provider.

As /u/mrpops2ko said you would need to set a private vlan or pvlan if you will.

I would read this as a starting point on how to set one up this is on VMware

No, this is not possible due to the virtual machine consuming network traffic that is sourced from the same port that your PC is connected though. So while the VM does add a layer of separation, it should not be considered absolute, and this applies to virus/trojans as well.

Say i made a virtual machine in VMWare, if i used just the regular NAT on the network card i can install a VPN on the virtual machine and i am fully private on that VM? No way that any website or whatever can lead something back to my host?

i use esxi and a virus isn’t going to infect the other virtual machines or the host unless you specifically set up a pathway for it to do so.

Rowhammer to name one. But there are more.

I agree. Its just that i cannot change my username and i have had this account since i was a teen. Definitely was a bit dumber back then than now haha.

You improved as a person? Nice. I would have pulled the cowardly option and said I liked the Red Alert games

I own the whole collection. I tried playing them but its hard to get into them.