1. The virtual machine should use bridge mode;
2. The virtual machine needs to manually set the IP address;
3. To turn off the firewall, if the firewall of the virtual machine is turned on, the host machine will not be able to ping the virtual machine.