Question : CentOS 7.x Virtual Machines on Hyper-V are not creating properly via HC10 panel. What could be the reason ?
Answer : Such issue occurs if CentOS version 7 OSTemplate is not properly prepared. To configure the CentOS v7 OSTemplate the following steps must be followed :
- Disable CentOS Firewall on OSTemplate
- Install HC Hyper-V components on CentOS OSTemplate
- Install Updated Linux Integration Services (LIS)
- HC Panel Level Configurations for CentOS OSTemplates
All these steps are explained in detail below in this kb article.
Disable CentOS Firewall on OSTemplate : CentOS 7 Firewall should be disabled on OSTemplate. To disable it, follow the steps given below :
- First, stop the FirewallD service using command: sudo systemctl stop firewalld
- In second step, Disable the FirewallD service to start automatically on system boot using this command: sudo systemctl disable firewalld
Install HC Hyper-V components on CentOS 7 OSTemplate : Follow the instructions given below in order to install HC Hyper-V Components on CentOS 7 Guest OSTemplate.
- For Linux there are 2 versions of HC Hyper-V Components. Choose the one that corresponds to your operating system.
HC Hyper-V Component for 32 bit OS : http://downloads.hostingcontroller.com/utilities/hcvmcomp_x86.tar.gz
HC Hyper-V Component for 64 bit OS : http://downloads.hostingcontroller.com/utilities/hcvmcomp_x64.tar.gz
- Once you download, extract the file using the command: tar -xvzf hcvmcomp_x64.tar.gz
- After this run this command : chmod 755 ./install_hcvmcomp.sh
- And then : ./install_hcvmcomp.sh
Install Linux Integration Service (LIS) : if you run lsmod | grep hv_ command, it will show that these are installed properly. However, to install the latest updated LIS tools, following steps are required to be run on the OSTemplate in the following sequence :
- Download latest Linux Integration Services from this link : https://www.microsoft.com/en-us/download/details.aspx?id=55106
- The above URL contains ISO image, tar.gz file and PDF document instructions for the installing the latest LIS on Virtual Machine.
Note: After performing all above tasks, CentOS 7 OSTemplate is now ready to be used for provisioning of Virtual Machines via HC10 panel.
HC Panel Level Configurations for CentOS OSTemplates : In order to configure CentOS Guest OSTemplate, follow the steps given below :
- Open HC panel as Global Admin user.
- Navigate to the menu : Configurations >> Virt. Module Conf. >> OSTemplates. Here click on Add OS Template button.
- Now specify all the details which are related to your CentOS OSTemplate like its Generation, Template Size, root user and password etc. A sample of CentOS OSTemplate is given below just for example to give you an idea about the settings. These settings will differ according to the settings of your custom created OSTemplate for CentOS.