Hello, xianxian!
1. Log in to the VM OS using any method, open the VM console, and edit the NICfile.
vi /etc/sysconfig/network-scripts/ifcfg-ethxxx
2. Add PEERDNS=no and save the settings.
3. Restart the network service for the modification to take effect.
systemctl restart network
4. Modify the /etc/resolv.conf file as required.
Hope this helps!