Don't work ssh in a VM Centos [closed]

Solution 1:

Your guest OS (the CentOS VM) does not have an IP independent of the host OS (Ubuntu). If you want to ssh into the guest, you will need to set up either NAT networking or a bridged network interface in your hypervisor.