I am trying to setup a centos 7.2 virtual machine to obtain a dynamic IP address automatically.
Settings in VMM:
- Guest operating system has been set to CentOS 7 (64 bit)
- Standard network adapter with "Dynamic IP" selected (I have read a number of articles that indicate I must first delete the network adapter and setup a legacy one, as most of these articles is outdated I am not sure)
When I installed the OS, I turned "Networking" on but did not specify any IP addresses or IP setup during installation.
BOOTPROTO is set to DHCP and ONBOOT=yes in /etc/sysconfig/network-scripts/ifcfg-eth0
Doing a ifcfg indcates that the adapter is active but no IPv4 details has been set nor has it obtained an IP address from Hyper-V
What else do I need to do?