Web Developer

A little something about everything...

Step by Step install of CentOS7 on Microsoft Hyper-V Server with Linux Integration Services Version 4.0

Step by Step install of CentOS7 on Microsoft Hyper-V Server

  1. Create new VHD Generation 1
  2. Install from iso
  3. Configure network
    • Check, "Automatically connect to this network when it is available"
    • If manual IP allocation configure IPv4 & IPv5 as needed.
  4. Set root password
  5. Finish install

Download and install Linux Integration Services 4.0 from microsoft

  1. Download Linux IC4.0
  2. attach the ISO from HyperV
  3. run the following commands:
    # mount /dev/cdrom /media
    # cd /media
    # ./install.sh
    # reboot
Update Network settings
  1. right click on the virtual machine and click settinsg then expand network adapter select advanced features and note the mac address.
  2. run the following commands:
    # vi /etc/sysconfig/network-scripts/ifcfg-eth0
  3. use "i" to insert text, (esc) to exit and ":wq" to write your changes to make the file look like this:
    TYPE="Ethernet"
    BOOTPROTO=none
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=no
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_FAILURE_FATAL=no
    NAME=eth0
    UUID=(leave this as is)
    DEVICE="eth0"
    ONBOOT=yes
    HWADDR=(MAC ADDRESS, This should match what is configured in Hyper-V)
    Networking=yes
    IPADDR=(YOUR SERVER IP)
    PREFIX=30
    GATEWAY=(YOUR DEFAULT GATEWAY)
    DNS1=(PRIMARY DNS SERVER IP)
    DNS2=(SECONDARY DNS SERVER IP)
    IPV6_PEERDNS=yes
    IPV6_PEERROUTES=yes
    IPV6+PRIVACY=no
  4. now restart the network:
    service network restart
Instalation should be complete

Installing webmin on CentOS7 using the CentOS-7-x86_64-Minimal-1511.iso image

Installing webmin on CentOS7

  • Run the following commands:
    # yum update
    Is this ok [y/d/N]: y
    Is this ok [y/d/N]: y
    # cat > /etc/yum.repos.d/webmin.repo << EOF
  • Edit the file as follows:
    [Webmin]
    name=Webmin Distribution Neutral
    #baseurl=http://download.webmin.com/download/yum
    mirrorlist=http://download.webmin.com/download/yum/mirrorlist
    enabled=1
    EOF
  • Now run
    # rpm --import http://www.webmin.com/jcameron-key.asc
  • Install webmin
    # yum install webmin
    Is this ok [y/d/N]: y
  • Now open port 10000 to access webmin, to open for all IP's for example
    # iptables -I INPUT -p tcp --dport 10000 -j ACCEPT
Completed.