Here are the Steps:
- Download CentOS 6.9-minimal.iso start VM, Choose Media > DVD Drive and "Insert Disk..." then install and reboot.
- Download LinuxICv4.2.5.iso, Choose Media > DVD Drive and "Insert Disk..."
mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cd /mnt/cdrom
./install.sh
umount /mnt/cdrom
- Now update your network settings via vi
vi /etc/sysconfig/network-scripts/ifcfg-eth0
use "i" to insert text, (esc) to exit and ":wq" to write your changes.
It should look something like this:
DEVICE="eth0"
HWADDR=(MAC ADDRESS, This should match what is configured in Hyper-V)
TYPE="Ethernet"
UUID={don't change this}
ONBOOT="yes"
BOOTPROTO=none
IPADDR=(YOUR SERVER IP)
GATEWAY=(YOUR DEFAULT GATEWAY)
DNS1=(PRIMARY DNS SERVER IP)
DNS2=(SECONDARY DNS SERVER IP)
Networking=yes
Start the network by using...
service network restart
Now you can update using yum:
#yum update
Is this ok [y/N]: y
That's it, your done.