Hi,
Please check the Windows Defender Firewall rules make sure ICMP is allowed. You can follow the steps in the below link.
To access internet, you have to change the type of the virtual switch to external or no physical NIC is connected to the virtual switch.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.