Learn how to setup a static IP address in Ubuntu.
1) Setup the network adapter setting in the vmware Virtual Machine setting.
2) In your vmware navigate to ths folder.
3) Edit the YAML file in that folder using your text editor. Note that your YAML file name might look different.
4) Try the newly edited YAML file.
sudo netplan try
5) If you are satisfied with your YAML file, applied it.
sudo netplan apply
6) Remot your Ubuntu