Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Cloud OSS - Hyper-V Service Manager

How to Create Guest OS (Linux) Templates in Hyper-V

...

 

27) In the Configure Settings tab, click on Next.

Fig 31. Choosing storage location



28) In the Add Properties tab, choose CentOS Linux 6 (64 bit) on the OS drop-down list and click on Next.

Fig 32. Choosing an Operating System



29) Finally, click on Create in the Summary tab.

Fig 33. Settings confirmation and VM creation



30) Wait until the VM creation is completed and close the Jobs window.

Image RemovedImage Added

Fig 34. VM creation in progress



31) As soon as the VM is created, it will be listed in SCVMM console as belonging to a Hyper-V Cluster and/or a Hyper-V node.

Fig 35. New VM listed



32) Click on Power On to start the Virtual Machine. Notice that the status of the VM changes to "Starting" and then "Running".

   

Fig 36. Start the New VM


 

Fig 37. VM is starting


 

Fig 38. VM is running                                                                                                  



33) Click on Connect or View->Connect via Console in order to connect to the console.

 

Fig 39. Connect to VM via Console

 

 

34) Choose to "Install or upgrade an existing system" and press Enter.

...

37) Choose your preferred Language and Keyboard layout. Once you choose, click on Next.

 

Fig 43. Preferred language                                                                                   


Image Modified

Fig 44. Preferred keyboard layout



38) In the Type of Devices page, select "Basic Storage Devices" and click on Next. In the pop-up window, click on "Yes, discard any data".

...

40) Click on the "Configure Network" button and edit the "System eth0" network interface. Configure the IPv4 settings so that you can access the template later on. 


Note
iconfalse

Configure the IPv4 settings of your choice in the highlighted fields, as shown in the example below.

 

Fig 48. Network configuration                                                                              


Image Modified

Fig 49. System etho network settings



41) Select the appropriate time zone and click on "Next". In the following screen set a "Root" password.

 

Fig 50. Time settings                                                                                         


Image Modified

Fig 51. Setting root password



42) In the following screen select "Use All Space" and click on "Next". In the pop-up window, click on "Write changes to disk".

 

Fig 52. Partitioning                                                                                            


Image RemovedImage Added

Fig 53. Write changes to disk



43) Choose installation type (Since this is going to be a server template, we choose the "Basic Server" option). The installation process will begin once we click on "Next".

...

44) When the installation process is over, click on "Reboot".

Image RemovedImage Added

Fig 56. Rebooting upon successful installation

 

 

 

4. Preparing the Virtual Machine for Template

...

46) While the Virtual Machine is turned off, go to VMM console, right click on the VM and click on Properties.

Fig 58. Setting VM's Properties



47) Go to Hardware Configuration, click on the "Legacy Network Adapter" and then click on Remove in order to remove it. In the pop-up window click on Yes.

...

49) Turn the Virtual Machine on and login as root. By default CentOS and Oracle Linux do not enable the network adapter on startup. If you run the command "ifconfig" you will only find the loopback adapter listed.

Fig 62. Running ifconfig


50) Also, by default the first adapter will be eth0. However, if we attempt to enable it by using the "ifconfig eth0 up" command we will receive a "no such device" error message as shown in the figure below:

Fig 63. Attempting to bring etho interface up

 

Note
iconfalse

This is because eth0 is assigned to the legacy adapter we just removed. In order to fix this we need to clear the existing adapter rules, and update the configuration file for eth0.

...

67) In the Identity tab, Specify machine name for this VM clone and click on "Next".

Fig 81. Specifying clone machine name 


68) In the Configure Hardware tab click on Availability below Advanced and check the "Make this Virtual Machine High Available" option. Click on Next 

...

74) Go to VMM, click on Library, then right-click on the Library main folder and click on Explore.

Image RemovedImage Added

Fig 89. Explore VMM Library

...

76) Select Library in SCVMM console on the bottom left. On the upper left of the SCVMM console, right click on Templates and choose "Create VM Template".

Fig 91. Creating a VM Template



77) In the Select Source tab, choose "Use an existing VM template or a virtual hard disk stored in the library" and click on Browse.

...

78)Select the VHD file you pasted in step 75. Click on OK and then click on Next

Fig 93. Selecting VHD file from the Library


79) In the Identity tab, specify VM template's name, choose Generation 1 from the drop-down list and click on Next.

   

Fig 94. Specifying VM Template name and Generation                                                                   


80) In the Configure Hardware tab, in Cloud Capability Profile section, check Hyper-V.

Image Modified

Fig 95. Select Cloud Capability Profile



81) Set Memory to at least 1024 MB and click on Next.

...

83) In the Application Configuration tab and in the SQL Server Configuration tab click on Next.

Image RemovedImage Added

   Fig 98. Application Configuration                                                 


Image RemovedImage Added

Fig 99. SQL Server Configuration

...