In most circumstances, the DHCP service will assign an IP address for a VM instance. If you want to specify an IP address by yourself, refer to the following steps:

Stop the VM instance, and enter its details page. In the Configurations tab page, select a NIC attached by the VM instance, and click ActionsSet Fixed IP.