can I install linux centos and ubuntu in a differnt partition created on VMWARE as virtual machine running second generation procesors such as Intel i7
Install them as separate VM's, and it'll work just fine. There's no point trying to dual boot inside a virtual machine. Any modern system will run multiple VM's simultaneously without breaking a sweat.